Topic: Error in set up Relayhost using SMTP of Amazonaws
==== Required information ====
- iRedMail version (check /etc/iredmail-release): 0.9.5-1
- Linux/BSD distribution name and version: CentOS 6.8 x64
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): MySQL
- Web server (Apache or Nginx):Nginx
- Manage mail accounts with iRedAdmin-Pro? No
- Related log if you're reporting an issue:
======== Required information ====
Hi Admin iReadMail!
I set up SMTP using service of Amazonaws and have information of Relayserver such as: relayhost: email-smtp.us-east-2.amazonaws.com:25
IAM User Name: domain.net
Smtp Username: AKIAIA3
Smtp Password: xxxxxx
Then I follow the instruction
http://www.iredmail.org/docs/relayhost.html
In /etc/postfix/main.cf
and add the below line
#SMTP Relay
relayhost = [email-smtp.us-east-1.amazonaws.com]:25
smtp_sasl_password_maps = hash:/etc/postfix/sasl_password
smtp_sasl_auth_enable = yes
smtp_sasl_mechanism_filter = login
smtp_sasl_security_options = noanonymous
Then I create a file /etc/postfix/sasl_password,
in this file I add Relayserver and user pass: [email-smtp.us-east-2.amazonaws.com]:25 AKIAIA3:xxxxxx
Then I restart, at the final step, I login Mysql:
mysql> USE vmail;
INSERT INTO sender_relayhost (account, relayhost) VALUES ('domain.net', '[email-smtp.us-east-2.amazonaws.com]:25');
Eventhough I follow all steps above but I can not send mail successfully, my inbox is shown in the picture
File maillog: /var/log/maillog
Nov 14 18:17:59 mail postfix/smtp[2601]: setting up TLS connection to email-smtp.us-east-1.amazonaws.com[174.129.224.134]:25
Nov 14 18:17:59 mail postfix/smtp[2601]: Trusted TLS connection established to email-smtp.us-east-1.amazonaws.com[174.129.224.134]:25: TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)
Nov 14 18:18:00 mail postfix/smtp[2601]: warning: SASL authentication failure: No worthy mechs found
Nov 14 18:18:00 mail postfix/smtp[2601]: C9A622091: SASL authentication failed; cannot authenticate to server email-smtp.us-east-2.amazonaws.com[174.129.224.134]: no mechanism available
Nov 14 18:18:04 mail postfix/smtp[2601]: warning: SASL authentication failure: No worthy mechs found
Nov 14 18:18:04 mail postfix/smtp[2601]: C9A622091: to=<techwosu.com@gmail.com>, relay=email-smtp.us-east-2.amazonaws.com[184.73.218.23]:25, delay=13, delays=0.02/0.15/12/0, dsn=4.7.0, status=deferred (SASL authentication failed; cannot authenticate to server email-smtp.us-east-2.amazonaws.com[184.73.218.23]: no mechanism available)
----
Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.