Sender Based Relay - Zimbra 8.7

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

Sender Based Relay - Zimbra 8.7

Post 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
pmarques
Posts: 1
Joined: Sun Aug 14, 2016 10:21 pm

Re: Sender Based Relay - Zimbra 8.7

Post by pmarques »

Hans

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

Regards

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

Re: Sender Based Relay - Zimbra 8.7

Post 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.
Jorge de la Cruz https://jorgedelacruz.es
Systems Engineer at Veeam Software https://www.veeam.com/
DahanS
Posts: 2
Joined: Mon Apr 18, 2016 4:24 am

Re: Sender Based Relay - Zimbra 8.7

Post 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...
tiagogalera
Posts: 1
Joined: Wed Aug 31, 2016 8:57 pm

Re: Sender Based Relay - Zimbra 8.7

Post 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!!!!
info@vteamtech.in
Posts: 6
Joined: Mon Aug 01, 2016 11:32 am

Re: Sender Based Relay - Zimbra 8.7

Post by info@vteamtech.in »

Add the following line in main.cf file and try

smtp_sender_dependent_authentication = yes

Rgds
VTeamTech
mmi
Posts: 6
Joined: Wed Jul 12, 2017 12:40 pm

Re: Sender Based Relay - Zimbra 8.7

Post 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
ching
Posts: 1
Joined: Fri Aug 04, 2017 11:29 am

Re: Sender Based Relay - Zimbra 8.7

Post by ching »

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