Topic: Transport maps, Amazon SES and TLS authentication
==== Required information ====
- iRedMail version (check /etc/iredmail-release): 0.9.7
- Linux/BSD distribution name and version: CentOS 6.9
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): MySQL
- Web server (Apache or Nginx): Apache
- Manage mail accounts with iRedAdmin-Pro? Yes
- [IMPORTANT] Related original log or error message is required if you're experiencing an issue.
====
/var/log/maillog:
Dec 28 20:52:58 israelclinics postfix/smtp[29629]: 4E179423AA: to=<xxx@yahoo.com>, relay=email-smtp.us-east-1.amazonaws.com[23.23.155.28]:587, delay=1.4, delays=0.01/0.04/1.2/0.09, dsn=5.0.0, status=bounced (host email-smtp.us-east-1.amazonaws.com[23.23.155.28] said: 530 Authentication required (in reply to MAIL FROM command))
# postconf
smtp_sasl_password_maps = hash:/etc/postfix/sasl_passwd
transport_maps = proxy:mysql:/etc/postfix/mysql/transport_maps_user.cf, proxy:mysql:/etc/postfix/mysql/transport_maps_domain.cf, hash:/etc/postfix/transport
/etc/postfix/tranport:
yahoo.com smtp:[email-smtp.us-east-1.amazonaws.com]:25
/etc/postfix/sasl_passwd file with correct Amazon credentials:
[email-smtp.us-east-1.amazonaws.com]:25 name:password
Hi,
I searched the forum but didn't find any mentions.
My problem is: certain mail servers like hotmail.com, yahoo.com, ukr.net etc from time to time start to block my outgoing mails because of their internal RBL or any other anti-spam rules. I have Amazon SES account that I can use as a temporary mail relay for mails to these domains till I solve the problem with these mail providers.
Amazon SES requires TLS authentication - below rows from their instructions:
smtp_sasl_auth_enable = yes
smtp_sasl_security_options = noanonymous
smtp_sasl_password_maps = hash:/etc/postfix/sasl_passwd
smtp_use_tls = yes
smtp_tls_security_level = encrypt
smtp_tls_note_starttls_offer = yes
smtp_tls_CAfile = /etc/ssl/certs/ca-bundle.crt
And this works beautiful on my other web servers that send mails via Amazon SES.
I'm not Postfix professional but I see that in iRedmail all TLS options are not defined or set to no.
I still receive 530 Authentication required error. I think this is because of TLS is disabled. And I don't know how to setup TLS authentication ONLY for the specific Amazon SES server.
As I understand from Google search I have to create a new transport/protocol in addition to existing smtp and use it in my transport file. But I can't find an exact description how to do it and I'm afraid to mess my working configuration.
Please, help me.
Roman
----
Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.