Page 1 of 1

Sender Based Relay - Zimbra 8.7

Posted: Mon Aug 01, 2016 2:52 am
by DahanS
Hello,

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 main.cf 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 main.cf:
sender_dependent_relayhost_maps = lmdb:/opt/zimbra/conf/relayhost_map

relay_password file:
myemail@gmail.com myemail@gmail.com:password
myotheremail@gmx.net myotheremail@gmx.net:password


relayhost_map file:
myemail@gmail.com [smtp.gmail.com]:587
myotheremail@gmx.net [mail.gmx.net]: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=<recipient@gmail.com>, relay=smtp.gmail.com[74.125.206.108]:587, delay=0.17, delays=0/0.
01/0.14/0.01, dsn=5.5.1, status=bounced (host smtp.gmail.com[74.125.206.108] said: 530-5.5.1 Authentication Required. Learn more at 530 5.5.1 http
s://support.google.com/mail/answer/14257 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...

Thanks!

Kind Regards

Hans

Re: Sender Based Relay - Zimbra 8.7

Posted: Sun Aug 14, 2016 10:23 pm
by pmarques
Hans

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

Regards

Pablo

Re: Sender Based Relay - Zimbra 8.7

Posted: Mon Aug 15, 2016 7:41 am
by jorgedlcruz
Hi guys,
Try the next:
Set the port for outbound emal From the command line:

Code: Select all

zmprov ms `zmhostname` zimbraMtaRelayHost smtp.sendgrid.net:587


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

Code: Select all

smtp.sendgrid.net 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 smtp.sendgrid.net /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.

Re: Sender Based Relay - Zimbra 8.7

Posted: Mon Aug 15, 2016 10:51 am
by DahanS
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 gmx.net
which are defiend through the relayhost_map file...
your settings will only work for one smart host as far as i can see...

thanks!

Cheers

Hans

@pablo: i have no solution currently... also because of lack of time for further investigation...

Re: Sender Based Relay - Zimbra 8.7

Posted: Wed Aug 31, 2016 9:03 pm
by tiagogalera
Good afternoon sirs!
I set my zimbra + sendgrid, but the emails do not appear with that message which mentions the sendgrid, someone help me?


Thanks!!!!

Re: Sender Based Relay - Zimbra 8.7

Posted: Fri Nov 11, 2016 6:40 pm
by info@vteamtech.in
Add the following line in main.cf file and try

smtp_sender_dependent_authentication = yes

Rgds
VTeamTech

Re: Sender Based Relay - Zimbra 8.7

Posted: Tue Jul 18, 2017 6:39 am
by mmi
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...

https://wiki.zimbra.com/wiki/Relay_per_Domain

Re: Sender Based Relay - Zimbra 8.7

Posted: Fri Aug 04, 2017 11:37 am
by ching
I am waiting some one to resolve this problem too. I have try all setting needed but no luck.