Wednesday, November 11, 2015

Can't connect to Postfix/Dovecot with Airmail.app but I can with Mail.app (Connection refused?)

So I installed Postfix, Dovecot and MySQL as per this guide: https://library.linode.com/email/postfix/postfix2.9.6-dovecot2.0.19-mysql




Uses encryption and only SSL and seems like a newbie way of going secure from the beginning, but I have a problem. For an odd reason I am able to use Mail.app on OS X successfully to send and receive emails but with Airmail, I can't. I just get connection refused on the App and the following error on my server:




Jul 16 15:35:26 apple dovecot: imap-login: Login: user=my@email,
method=PLAIN, rip=xxx, lip=xxx, mpid=31389, TLS, session=xxx



Jul 16 15:35:26 apple dovecot: imap(my@email): Disconnected: Logged
out in=24 out=707



Jul 16 15:35:26 apple postfix/smtpd[31390]: connect from unknown[xxx]




Jul 16 15:35:27 apple postfix/smtpd[31390]: disconnect from
unknown[xxx]



Jul 16 15:35:46 apple postfix/smtpd[31372]: disconnect from
unknown[xxx]




postconf -n





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 = sub.domain.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_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


No comments:

Post a Comment

linux - How to SSH to ec2 instance in VPC private subnet via NAT server

I have created a VPC in aws with a public subnet and a private subnet. The private subnet does not have direct access to external network. S...