Hello, I'm trying to configure postfix to send mail by amazon ses services, I follow this steps of Amazon Docs, but unsuccessful.
http://docs.aws.amazon.com/ses/latest/DeveloperGuide/postfix.html The objective is a transactional mail server, so, just a app server can send mail using this postfix. But the maillog has an error and don't deliver my message: maillog ---------------------- Mar 17 12:43:43 mail-smtp10 postfix/smtpd[8775]: connect from ec2-54-228-172-156.compute-1.amazonaws.com[54.228.172.156] Mar 17 12:43:43 mail-smtp10 postfix/smtpd[8775]: lost connection after AUTH from ec2-54-228-172-156.compute-1.amazonaws.com[54.228.172.156] Mar 17 12:43:43 mail-smtp10 postfix/smtpd[8775]: disconnect from ec2-54-228-172-156.compute-1.amazonaws.com[54.228.172.156] ----------------------- So, when i try to send mail directly in the console using root account, the maillog say: maillog ------------------------- 12D2E613: to=<[email protected]>, relay=127.0.0.1[127.0.0.1]:2525, delay=1.5, delays=0.05/0.03/0.72/0.67, dsn=5.0.0, status=bounced (host 127.0.0.1[127.0.0.1] said: 554 Message rejected: Email address is not verified. (in reply to end of DATA command)) Mar 17 12:47:03 mail-smtp10 postfix/anvil[8773]: statistics: max connection rate 1/60s for (smtp:54.228.172.156) at Mar 17 12:40:40 Mar 17 12:47:03 mail-smtp10 postfix/anvil[8773]: statistics: max connection count 1 for (smtp:54.228.172.156) at Mar 17 12:40:40 Mar 17 12:47:03 mail-smtp10 postfix/anvil[8773]: statistics: max cache size 1 at Mar 17 12:40:40 -------------------------- Remembering that the mail and the domain was verified in Amazon SES console. My main.cf --------------------------- myhostname = mail-smtp10.mydomain.com.br mydomain = mydomain.com.br myorigin = $mydomain relay_domains = $mydomain mydestination = localhost mynetworks = all relayhost = 127.0.0.1:2525 queue_directory = /var/spool/postfix command_directory = /usr/sbin daemon_directory = /usr/libexec/postfix data_directory = /var/lib/postfix mail_owner = postfix inet_interfaces = all inet_protocols = all unknown_local_recipient_reject_code = 550 alias_maps = hash:/etc/aliases alias_database = hash:/etc/aliases debug_peer_level = 2 debugger_command = PATH=/bin:/usr/bin:/usr/local/bin:/usr/X11R6/bin ddd $daemon_directory/$process_name $process_id & sleep 5 sendmail_path = /usr/sbin/sendmail.postfix newaliases_path = /usr/bin/newaliases.postfix mailq_path = /usr/bin/mailq.postfix setgid_group = postdrop html_directory = no manpage_directory = /usr/share/man sample_directory = /usr/share/doc/postfix-2.6.6/samples readme_directory = /usr/share/doc/postfix-2.6.6/README_FILES # Stunnel configs smtp_sasl_auth_enable = yes smtp_sasl_security_options = noanonymous smtp_tls_security_level = may smtp_sasl_password_maps = hash:/etc/postfix/sasl_passwd --------------------------- My stunnel.conf --------------- [smtp-tls-wrapper] accept=2525 client=yes connect=email-smtp.us-east-1.amazonaws.com:465 --------------- Anyone has an idea about how i can do this ? Thanks!
