| Linode Forum https://forum.linode.com/ |
|
| Postfix + Dovecot + MySQL + Amazon SES https://forum.linode.com/viewtopic.php?f=11&t=11752 |
Page 1 of 1 |
| Author: | LMX [ Fri Apr 17, 2015 3:04 am ] |
| Post subject: | Postfix + Dovecot + MySQL + Amazon SES |
Hi guys, I followed this guide at Linode to have a postfix + dovecot and mysql configuration https://www.linode.com/docs/email/postf ... -and-mysql It all worked. But, I have this requirement where using the same setup. I need to send all postfix emails to Amazon SES. I am lost right now on how to combine Amazon SES with this setup, as some might conflict with the existing config. Code: Amazon SES Quote: relayhost = [email-smtp.us-west-2.amazonaws.com]:25 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 Code: postconf -n Quote: alias_database = hash:/etc/aliases alias_maps = hash:/etc/aliases append_dot_mydomain = no biff = no config_directory = /etc/postfix inet_interfaces = all mailbox_size_limit = 0 mydestination = localhost myhostname = mail.example.com mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128 myorigin = /etc/mailname readme_directory = no recipient_delimiter = + relayhost = smtpd_banner = $myhostname ESMTP $mail_name (Debian/GNU) smtpd_recipient_restrictions = permit_sasl_authenticated, permit_mynetworks, reject_unauth_destination smtpd_sasl_auth_enable = yes smtpd_sasl_path = private/auth smtpd_sasl_type = dovecot smtpd_tls_auth_only = yes smtpd_tls_cert_file = /etc/dovecot/dovecot.pem smtpd_tls_key_file = /etc/dovecot/private/dovecot.pem smtpd_use_tls = yes virtual_alias_maps = mysql:/etc/postfix/mysql-virtual-alias-maps.cf virtual_mailbox_domains = mysql:/etc/postfix/mysql-virtual-mailbox-domains.cf virtual_mailbox_maps = mysql:/etc/postfix/mysql-virtual-mailbox-maps.cf virtual_transport = lmtp:unix:private/dovecot-lmtp Code: dovecot -n Quote: # 2.1.7: /etc/dovecot/dovecot.conf
# OS: Linux 3.2.0-4-amd64 x86_64 Debian 7.8 ext4 auth_mechanisms = plain login mail_location = maildir:/var/mail/vhosts/%d/%n mail_privileged_group = mail namespace inbox { inbox = yes location = mailbox Drafts { special_use = \Drafts } mailbox Junk { special_use = \Junk } mailbox Sent { special_use = \Sent } mailbox "Sent Messages" { special_use = \Sent } mailbox Trash { special_use = \Trash } prefix = } passdb { args = /etc/dovecot/dovecot-sql.conf.ext driver = sql } postmaster_address = postmaster@example.com protocols = imap pop3 lmtp service auth-worker { user = vmail } service auth { unix_listener /var/spool/postfix/private/auth { group = postfix mode = 0666 user = postfix } unix_listener auth-userdb { mode = 0666 user = vmail } user = $default_internal_user } service imap-login { inet_listener imap { port = 0 } } service lmtp { unix_listener /var/spool/postfix/private/dovecot-lmtp { group = postfix mode = 0666 user = postfix } } service pop3-login { inet_listener pop3 { port = 0 } } ssl = required ssl_cert = </etc/dovecot/dovecot.pem ssl_key = </etc/dovecot/private/dovecot.pem userdb { args = uid=vmail gid=vmail home=/var/mail/vhosts/%d/%n driver = static } |
|
| Author: | Vance [ Fri Apr 17, 2015 11:48 pm ] |
| Post subject: | Re: Postfix + Dovecot + MySQL + Amazon SES |
Looks like you are on the right track in setting up client SASL support to use a smarthost. You will also need to install the client SASL library; on Debian I think this is libsasl2-2. |
|
| Author: | LMX [ Tue Apr 21, 2015 2:34 am ] |
| Post subject: | Re: Postfix + Dovecot + MySQL + Amazon SES |
Hi Vance, I am assuming that /etc/postfix/main.cf is the only one that needs changing? Will this work? if I am running already postfix, mysql, dovecot? I am thinking that it might affected authentication of mysql? |
|
| Author: | sleddog [ Tue Apr 21, 2015 10:03 pm ] |
| Post subject: | Re: Postfix + Dovecot + MySQL + Amazon SES |
LMX wrote: Hi Vance, I am assuming that /etc/postfix/main.cf is the only one that needs changing? Will this work? if I am running already postfix, mysql, dovecot? I am thinking that it might affected authentication of mysql? I don't see why it would affect mysql. smtp_* settings apply to outbound SMTP connections from your server. smtpd_* settings apply to inbound connnections to your server. For Amazon SES, you're adding a new set of smtp_* settings. |
|
| Page 1 of 1 | All times are UTC-04:00 |
| Powered by phpBB® Forum Software © phpBB Group http://www.phpbb.com/ |
|