Topic: RelayHost (mailgun.org)
==== Required information ====
- iRedMail version (check /etc/iredmail-release): 0.9.5-1
- Linux/BSD distribution name and version: Ubuntu 14.04.4 LTS
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): MySQL
- Web server (Apache or Nginx):nginx
- Manage mail accounts with iRedAdmin-Pro? Yes
- Related log if you're reporting an issue:
Aug 6 15:59:25 jonah postfix/smtp[23623]: Untrusted TLS connection established to smtp.mailgun.org[173.203.37.114]:587: TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)
Aug 6 15:59:25 jonah postfix/smtp[23623]: warning: SASL authentication failure: No worthy mechs found
Aug 6 15:59:25 jonah postfix/smtp[23623]: 4867D32C4AE7: SASL authentication failed; cannot authenticate to server smtp.mailgun.org[173.203.37.114]: no mechanism available
Aug 6 15:59:25 jonah postfix/smtp[23623]: Untrusted TLS connection established to smtp.mailgun.org[104.130.177.23]:587: TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)
Aug 6 15:59:25 jonah postfix/smtp[23623]: warning: SASL authentication failure: No worthy mechs found
====
I have followed a few of the guides here and around to setup a way to route customers who want to use Mailgun type services - however it won't authenticate. I've looked at the following:
http://www.iredmail.org/forum/topic1048 … eebsd.html
https://community.rackspace.com/products/f/28/t/3897
http://www.cyberciti.biz/faq/postfix-mu … tp-client/
All have similar options, but no matter what I do, always fails - currently I have just have the following:
main.cf (appended to the bottom of file):
#smtp_sasl_auth_enable = yes
#smtp_sasl_security_options = noanonymous
#smtp_sasl_password_maps = hash:/etc/postfix/saslpasswd
#sender_dependent_relayhost_maps = hash:/etc/postfix/relayhost_map
#smtp_always_send_ehlo = yes
#relayhost = [smtp.mailgun.org]:587
#smtp_sender_dependent_authentication = yes
In live mode it's uncommented - relayhost_map contains several domains using the format:
@domain.com [smtp.mailgun.org]:587
And the saslpasswd similarly:
@domain.com username@domain:password
Nothing works, and I know postfix complains because I think some of the configuration is already in use - Any suggestions for getting this working?
----
Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.