Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mailfrom header wrong #42

Closed
ezoNetworks opened this issue Dec 13, 2019 · 7 comments
Closed

mailfrom header wrong #42

ezoNetworks opened this issue Dec 13, 2019 · 7 comments

Comments

@ezoNetworks
Copy link

Hi, I was having alignment issues with SPF and discovered that when I sent an email from a persona the mailfrom header was actually displaying the delegated account email and not the persona email. The from header was correctly displaying the persona account email.

@barrydegraaff
Copy link
Member

barrydegraaff commented Dec 13, 2019 via email

@ezoNetworks
Copy link
Author

Thanks for looking at this Barry.

Below are the headers: mailfrom shows as [email protected] and should show [email protected], [email protected] is the designated account and [email protected] is the shared account.

Screenshot_2019-12-13 Original Message

@ezoNetworks
Copy link
Author

Hi, Barry, did the headers help?

@barrydegraaff
Copy link
Member

barrydegraaff commented Dec 17, 2019 via email

@barrydegraaff
Copy link
Member

The headers are indeed misaligned, even though Google reports dkim and spf pass on your headers.

Are you going into the spam box?

There are 2 possible work-arounds, log-in using 2 accounts and send out mail. That way you are not using shared mailboxes.

Or set up a milter filter that rewrites the message headers in such a way that all is aligned. This is not that easy though. Here is an example, but you will need to take some time to fit it to your needs:
https://github.com/Zimbra-Community/mailing-lists/wiki/Set-mailing-list-email-headers-with-Milter

I will add a message in the README about this problem

@vquie
Copy link

vquie commented Apr 15, 2020

Hi,
try setting zimbraSmtpRestrictEnvelopeFrom in Zimbra on to False.

zmprov desc -a zimbraSmtpRestrictEnvelopeFrom
zimbraSmtpRestrictEnvelopeFrom
    If TRUE, the address for MAIL FROM in the SMTP session will always be
    set to the email address of the account. If FALSE, the address will be
    the value of the Sender or From header in the outgoing message, in
    that order.

               type : boolean
              value : 
           callback : 
          immutable : false
        cardinality : single
         requiredIn : 
         optionalIn : cos,account
              flags : accountInfo,accountInherited
           defaults : TRUE
                min : 
                max : 
                 id : 1077
    requiresRestart : 
              since : 6.0.5
    deprecatedSince : 

Does this solve your issue?

@vquie
Copy link

vquie commented May 27, 2020

If anyone else is looking for a solution, zimbraSmtpRestrictEnvelopeFrom sets the correct return path. I just tested it myself.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

3 participants