Zimbra SMTP relay Sparkpost?

Discuss your pilot or production implementation with other Zimbra admins or our engineers.
Post Reply
killmasta93
Posts: 47
Joined: Tue Oct 04, 2016 9:54 pm

Zimbra SMTP relay Sparkpost?

Post by killmasta93 »

Hi,
I was wondering if someone could shed some light on the issue im having. Currently trying to configure sparkpost smtp relay on zimbra, on my postfix previous server i had this in my main.cf

Code: Select all

#sparkpost relay
smtp_sasl_auth_enable = yes
smtp_sasl_password_maps = static:SMTP_Injection:thepassword
relayhost = [smtp.sparkpostmail.com]:587
header_size_limit = 4096000
smtp_sasl_security_options = noanonymous

i added this at the bottom of nano /opt/zimbra/common/conf/main.cf
then restarted postfix but it still does not send though the relay
did i miss something?

Thank you
phoenix
Ambassador
Ambassador
Posts: 27278
Joined: Fri Sep 12, 2014 9:56 pm
Location: Liverpool, England

Re: Zimbra SMTP relay Sparkpost?

Post by phoenix »

Have you read the wiki article (or any of the many forum threads) on how to configure a relay for zimbra?
Regards

Bill

Rspamd: A high performance spamassassin replacement

Per ardua ad astra
User avatar
gabrieles
Outstanding Member
Outstanding Member
Posts: 236
Joined: Tue Feb 14, 2017 9:40 am

Re: Zimbra SMTP relay Sparkpost?

Post by gabrieles »

I think you need an authenticated relay, unless sparkpost accepts your mail without authentication.
And
killmasta93 wrote: i added this at the bottom of nano /opt/zimbra/common/conf/main.cf
then restarted postfix
this is exactly what shouldn't be done when modifying configurations.
Zmconfigd finds that you modified a cf file and replaces it with the previous version
killmasta93
Posts: 47
Joined: Tue Oct 04, 2016 9:54 pm

Re: Zimbra SMTP relay Sparkpost?

Post by killmasta93 »

Thanks for the reply,
These are the steps i took

Code: Select all

zmprov ms mail.mydomain.com zimbraMtaRelayHost smtp.sparkpostmail.com:587

echo smtp.sparkpostmail.com SMTP_Injection:mypassword > /opt/zimbra/conf/relay_password

postmap /opt/zimbra/conf/relay_password


postconf -e smtp_sasl_password_maps=hash:/opt/zimbra/conf/relay_password


zmprov ms mail.mydomain.com zimbraMtaSmtpSaslPasswordMaps lmdb:/opt/zimbra/conf/relay_password


postconf -e smtp_sasl_auth_enable=yes

zmprov ms mail.mydomain.com zimbraMtaSmtpSaslAuthEnable yes


postconf -e smtp_cname_overrides_servername=no


zmprov ms mail.mydomain.com zimbraMtaSmtpCnameOverridesServername no
When i try emailing i get this error

Code: Select all

relay=smtp.sparkpostmail.com[44.226.184.48]:587, delay=5.9, delays=0.43/0.05/5.4/0, dsn=4.7.0, status=deferred (SASL authentication failed; cannot authenticate to server smtp.sparkpostmail.com[44.226.184.48]: no mechanism available)
killmasta93
Posts: 47
Joined: Tue Oct 04, 2016 9:54 pm

Re: Zimbra SMTP relay Sparkpost?

Post by killmasta93 »

SOLVED:

Code: Select all

zmprov ms mail.mydomain.com zimbraMtaSmtpSaslSecurityOptions noanonymous
and reload postfix
Post Reply