Page 1 of 1

Sender Based Relay

Posted: Mon Nov 07, 2016 8:32 am
Zimbra Version : Release 8.5.0_GA_3042.RHEL6_64_20140828192005 RHEL6_64 FOSS edition.

I have a free google apps with 5 accounts. my mx pointed to google apps. so every new email in gmail. i installed the zimbra with same domain name which is in google apps in my laptop and configure the external pop3 access in zimbra. i can get the new mail. but i need to sent mail from zimbra using gmail smtp authentication with individual gmail authentication.
so i used

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

sender_dependent_relayhost_maps = lmdb:/opt/zimbra/conf/relay_host

in relay_host
relay_host []:587 []:587

in relay_password

postmap /opt/zimbra/conf/relay_password
postmap /opt/zimbra/conf/relay_host

also done some changes in gmail settings
less secure app : turn on
disable captcha

then zmcontrol restart

In my /var.log/maillog file

Nov 7 13:59:31 mail postfix/smtp[8747]: DF34E262BEB: to=<>,[]:587, delay=2.3, delays=0.08/0.03/1.9/0.23, dsn=5.5.1, status=bounced (host[] said: 530-5.5.1 Authentication Required. Learn more at 530 5.5.1 l11sm31483413pfb.28 - gsmtp (in reply to MAIL FROM command))

Help Me , Thanks in Advance

Re: Sender Based Relay

Posted: Mon Nov 07, 2016 8:43 pm
by JDunphy
Suggestion: You might try adding additional logging to

postfix reload

I have been meaning to give this a try so your post is a good starting point for me.

Re: Sender Based Relay

Posted: Fri Nov 11, 2016 6:41 pm
I added the following file in file

smtp_sender_dependent_authentication = yes

Now working and thanks.

Re: Sender Based Relay

Posted: Fri Nov 11, 2016 6:57 pm
by JDunphy
Nice work!

I think this will be a powerful option to have in the toolbox. I had been using transport maps which were based on recipients addresses to my own mail relays for some edge cases so I am happy to know this method too.