Sender Based Relay - Zimbra 8.7

Discuss your pilot or production implementation with other Zimbra admins or our engineers.
Posts: 2
Joined: Mon Apr 18, 2016 4:24 am

Sender Based Relay - Zimbra 8.7

Postby DahanS » Mon Aug 01, 2016 2:52 am


i was using a working sender based relay with zimbra ose 8.6 till updating to 8.7.
I found that this settings wouldn't survive an update. Ok, so i tried to recreate
the setup without success. After hours of trying and searching i found out that
the postfix moved to /opt/zimbra/common/conf but this wasn't the solution.
Still not working.

Here are my settings:

zimbraMtaSmtpSaslAuthEnable: yes
zimbraMtaSmtpSaslPasswordMaps: lmdb:/opt/zimbra/conf/relay_password
zimbraMtaSmtpSaslSecurityOptions: noanonymous
zimbraMtaSmtpCnameOverridesServername: no
zimbraMtaSmtpTlsSecurityLevel: may

and also in
sender_dependent_relayhost_maps = lmdb:/opt/zimbra/conf/relayhost_map

relay_password file:

relayhost_map file: []:587 []:587

postmap and postfix reload do not complain about errors...

but if i try to send a mail with one of the accounts above i get

mail postfix/smtp[25291]: B0F57485F138: to=<>,[]:587, delay=0.17, delays=0/0.
01/0.14/0.01, dsn=5.5.1, status=bounced (host[] said: 530-5.5.1 Authentication Required. Learn more at 530 5.5.1 http
s:// k186sm11174731wmd.13 - gsmtp (in reply to MAIL FROM command))

i also checked the "unsecure apps" settings in gmail they are ok...

as mentioned before... the above setup was working with Zimbra 8.6

any help is kindly appreciated...


Kind Regards


Posts: 1
Joined: Sun Aug 14, 2016 10:21 pm

Re: Sender Based Relay - Zimbra 8.7

Postby pmarques » Sun Aug 14, 2016 10:23 pm


I am having the same problem after upgrading to 8.7
Did you ever get it working?


User avatar
Zimbra Alumni
Zimbra Alumni
Posts: 2782
Joined: Thu May 22, 2014 4:47 pm

Re: Sender Based Relay - Zimbra 8.7

Postby jorgedlcruz » Mon Aug 15, 2016 7:41 am

Hi guys,
Try the next:
Set the port for outbound emal From the command line:

Code: Select all

zmprov ms `zmhostname` zimbraMtaRelayHost

Edit /opt/zimbra/conf/relay_password and add the following line:

Code: Select all yoursendgridaccount:yoursendgridpassword

Execute the following commands:
Run all commands as the zimbra user

Code: Select all

cd /opt/zimbra/conf
postmap /opt/zimbra/conf/relay_password
postmap -q /opt/zimbra/conf/relay_password
zmprov ms `zmhostname` zimbraMtaSmtpSaslPasswordMaps lmdb:/opt/zimbra/conf/relay_password
zmprov ms `zmhostname` zimbraMtaSmtpSaslAuthEnable yes
zmprov ms `zmhostname` zimbraMtaSmtpCnameOverridesServername no
zmprov ms `zmhostname` zimbraMtaSmtpSaslSecurityOptions noanonymous;

Wait 2 minutes for the postfix configurations to be updated.
Jorge de la Cruz
Systems Engineer at Veeam Software
Posts: 2
Joined: Mon Apr 18, 2016 4:24 am

Re: Sender Based Relay - Zimbra 8.7

Postby DahanS » Mon Aug 15, 2016 10:51 am

Hi Jorge,

thanks for the answer and info...
but i think my problem is that i need different relay hosts based on the sender domain... e.g. gmail or
which are defiend through the relayhost_map file...
your settings will only work for one smart host as far as i can see...




@pablo: i have no solution currently... also because of lack of time for further investigation...
Posts: 1
Joined: Wed Aug 31, 2016 8:57 pm

Re: Sender Based Relay - Zimbra 8.7

Postby tiagogalera » Wed Aug 31, 2016 9:03 pm

Good afternoon sirs!
I set my zimbra + sendgrid, but the emails do not appear with that message which mentions the sendgrid, someone help me?

Posts: 6
Joined: Mon Aug 01, 2016 11:32 am

Re: Sender Based Relay - Zimbra 8.7

Postby » Fri Nov 11, 2016 6:40 pm

Add the following line in file and try

smtp_sender_dependent_authentication = yes

Posts: 6
Joined: Wed Jul 12, 2017 12:40 pm

Re: Sender Based Relay - Zimbra 8.7

Postby mmi » Tue Jul 18, 2017 6:39 am

Hello anybody found a solution to this? I am still testing.

By the way this tutorial is totally wrong from the beginning to the end.

I wonder what he/she was thinking when was writing this article...
Posts: 1
Joined: Fri Aug 04, 2017 11:29 am

Re: Sender Based Relay - Zimbra 8.7

Postby ching » Fri Aug 04, 2017 11:37 am

I am waiting some one to resolve this problem too. I have try all setting needed but no luck.

Return to “Administrators”

Who is online

Users browsing this forum: No registered users and 21 guests