Zimbra offers Open Source email server software and shared calendar for Linux and the Mac
Go Back   Zimbra :: Forums > Zimbra Collaboration Suite > Migration

Welcome to the Zimbra :: Forums!
Welcome, if you would like to post a comment please register. We also encourage you to explore all things Zimbra with our team and members of the community.

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 10-22-2009, 06:24 PM
Intermediate Member
 
Posts: 24
Default [SOLVED] Return-Path changed after upgrade

Hi all,

I have upgraded Zimbra 5.0.10 to 6.0.1. Everything works fine except one thing. As username we have a local name like (example) user@domain.lan.

To send e-mail we use real email addresses. We have added these addresses through the option menu: email -> accounts we have a real email address like (example) user@domain.com.

After the upgrade the Return-Path have changes. Before the upgrade the Return-Path was the real e-mail address used by the FROM field. After the upgrade the Return-Path have changed to the local email address a.k.a. the username. Because this is as a fake email address email is rejected by several mail servers.

Is there a way to manipulate the Return-Path? I think it has something to do with the Postfix configuration. But I can't find a solution.

Hope someone can help me with this.
__________________
Kind regards,
Daniël Westhoek
Reply With Quote
  #2 (permalink)  
Old 10-22-2009, 06:40 PM
Intermediate Member
 
Posts: 24
Default

Sorry Found the solution. Use Domain Masquerading

Domain Masquerading

If you want mail from user@domain.com or user@zimbra.domain.com to appear to come from user@example.com, you can set the canonical address for the entire domain.

zmprov md domain.com zimbraMailCatchAllAddress @domain.com zimbraMailCatchAllCanonicalAddress @example.com
zmprov md zimbra.domain.com zimbraMailCatchAllAddress @zimbra.domain.com zimbraMailCatchAllCanonicalAddress @example.com
__________________
Kind regards,
Daniël Westhoek
Reply With Quote
  #3 (permalink)  
Old 10-29-2009, 02:26 AM
Intermediate Member
 
Posts: 24
Default

Well.... is wasn't the solution after all. So I will ask again for a solution.

Her is the problem after upgrading from 5.0.10 to 6.0.1:

My company has 20 users only a few of them have a real e-mail address. Most of them doesn't have a real e-mail address. But internal it has to be possible to send e-mail to each other and make use of the groupware possibilities of Zimbra. So we decided to use fake, non existing e-mail address for internal usage. Everyone had an internal e-mail address like: abc@domain.lan. (the first three characters at the front are the first tree charachters of the persons name, so John gets an internal e-mail address like joh@domain.lan. With this solution we can e-mail to each other internally.

For the real big world we use a couple of e-mail addresses like sales@domain.com, finance@domain.com, etc. Per user I have set up the e-mail address on which he/she can send e-mail out. (through OPTIONS -> Accounts -> Primary Accounts Settings -> Messages sent from this account have the following settings (choose the name that appears in the "From" field of email messages)

For example, when John sends an e-mail to the "real world" his Name and E-mail address in the From appears like "John Doe" sales@domain.com.

After upgrade from 5.0.10 to 6.0.1 we get a lot of bounce mail. Why? After a little search I figured out that the return-path in the e-mail header has changed. In the 5.0.10 situation the option return-path get the real e-mail adres, like sales@domain.com. But in 6.0.1 the option return-path get the internal e-mail address line joh@domain.lan. Because joh@domain.lan doesn't exists in the real world it is signed as SPAM and get bounced.

I used domain masquerade (se above post) to appear domain.lan as domain.com. But that changes only the domain part of the e-mail address. so when John now sends e-mail the return-path is like joh@domain.com. And I want it to be sales@domain.com. Why? because we still get bounce mail when a mailserver is very strict in looking at SPAM. When it appears that joh@domain.com doesn't exists (and that's true) the e-mail will be bounced.

So what I want is the old situation, where the option return-path likely was the information added through OPTIONS -> Accounts -> Primary Accounts Settings -> Messages sent from this account have the following settings (choose the name that appears in the "From" field of email messages.

I really hope someone can help me further with this one.
__________________
Kind regards,
Daniël Westhoek

Last edited by danielw; 10-29-2009 at 02:32 AM..
Reply With Quote
  #5 (permalink)  
Old 10-29-2009, 02:43 AM
Intermediate Member
 
Posts: 24
Default

Thanks for you reply, but that's exact what I don't want.

The problem I have is that I not want return-path to be the primary (logged in user) e-mail address, but the e-mail address I have added through OPTIONS -> Accounts -> Primary Accounts Settings -> Messages sent from this account have the following settings (choose the name that appears in the "From" field of email messages.

So, I think you can say that I want return-path to be the send-on-behalf address. (not sure if I really can call it send-on-behalf) This was so in version 5.0.10.
__________________
Kind regards,
Daniël Westhoek
Reply With Quote
  #6 (permalink)  
Old 10-29-2009, 03:00 AM
Intermediate Member
 
Posts: 24
Default

Found it. Use Canonical Address. See: Canonical Address
__________________
Kind regards,
Daniël Westhoek
Reply With Quote
  #7 (permalink)  
Old 10-29-2009, 03:15 AM
Moderator
 
Posts: 7,929
Default

I am not sure if that will fix it though ... Return Path gets written by Postfix just before delivery by the clean up agent. Let us know how you get on.
__________________
Reply With Quote
  #8 (permalink)  
Old 10-29-2009, 03:33 AM
Intermediate Member
 
Posts: 24
Default

I'm testing it right now. And now it works just like I want.

When I put sales@domain.com in the canonical address (user account properties in the admin interface) and John Doe sends out an e-mail return-path gives: sales@domain.com. When I remove the canonical address return-path gives joh@domain.com

So it seems to work fine for mine situation now.

The only problem you can face with this solution is that when you use different persona with different e-mail addresses, that will not work anymore.This is because it always uses the e-mail address used in the canonical address. So keep that in mind when you make use of the canonical address field!
__________________
Kind regards,
Daniël Westhoek
Reply With Quote
  #9 (permalink)  
Old 01-17-2010, 05:35 AM
Junior Member
 
Posts: 8
Default

I have a similar issue.
When i send a mail, my local Domain is used in return path.
I set canonical address but that is not the solution.
When i have multiple identities, the Address is always overwritten by the canonical address, what isn't the way it should work.
It worked fine in 5.0.6 but after an upgrade to 5.0.19 it stopped working as it should.

Has anybody a solution for this problem?
Reply With Quote
  #10 (permalink)  
Old 01-19-2010, 04:56 AM
Intermediate Member
 
Posts: 24
Default

When you use multiple addresses then my solution isn't a solution.

Well, it worked indeed in older versions. But there has been a change in postfix (I think) which cause this problem.

To fix this issue, you have to look to the code which writes down the line to postfix. But I can't help you with that. That goes way to deep in the code for me!
__________________
Kind regards,
Daniël Westhoek
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads

Why Join?

Registering let's you ask questions, makes it easier to search, displays any files attached to posts, and notifies you about replies.

blog.zimbra.com




 

SEO by vBSEO ©2011, Crawlability, Inc.