Hi,
I'm attempting to setup a postfix/dovecot mail server with ViMbAdmin as a front end to allow other to easily manage accounts on their own domains (I host quite a few sites on one VPS, and am setting up a second as a mail server). The mail server is running Ubuntu 12.04 LTS. I've been following this guide: http://pietervogelaar.nl/ubuntu-12-0...and-vimbadmin/
I have IMAP working in Apple Mail, box currently cannot get SMTP working. These are my SMTP settings:
And this is what 'Mail Connection Doctor' says with Apple Mail:
I am currently running postfix with the -v option for debugging, and this is what it is outputting in /var/log/mail.log
Code:
Aug 13 11:32:59 odinson postfix/smtpd[13405]: connect from host86-139-156-206.range86-139.btcentralplus.com[86.139.156.206]
Aug 13 11:33:00 odinson postfix/smtpd[13405]: SSL_accept error from host86-139-156-206.range86-139.btcentralplus.com[86.139.156.206]: lost connection
Aug 13 11:33:00 odinson postfix/smtpd[13405]: lost connection after STARTTLS from host86-139-156-206.range86-139.btcentralplus.com[86.139.156.206]
Aug 13 11:33:00 odinson postfix/smtpd[13405]: disconnect from host86-139-156-206.range86-139.btcentralplus.com[86.139.156.206]
Aug 13 11:33:15 odinson postfix/smtpd[13411]: connect from host86-139-156-206.range86-139.btcentralplus.com[86.139.156.206]
Aug 13 11:33:15 odinson postfix/smtpd[13405]: connect from host86-139-156-206.range86-139.btcentralplus.com[86.139.156.206]
Aug 13 11:33:15 odinson postfix/smtpd[13411]: SSL_accept error from host86-139-156-206.range86-139.btcentralplus.com[86.139.156.206]: lost connection
Aug 13 11:33:15 odinson postfix/smtpd[13411]: lost connection after STARTTLS from host86-139-156-206.range86-139.btcentralplus.com[86.139.156.206]
Aug 13 11:33:15 odinson postfix/smtpd[13411]: disconnect from host86-139-156-206.range86-139.btcentralplus.com[86.139.156.206]
Aug 13 11:33:15 odinson postfix/smtpd[13405]: SSL_accept error from host86-139-156-206.range86-139.btcentralplus.com[86.139.156.206]: lost connection
Aug 13 11:33:15 odinson postfix/smtpd[13405]: lost connection after STARTTLS from host86-139-156-206.range86-139.btcentralplus.com[86.139.156.206]
Aug 13 11:33:15 odinson postfix/smtpd[13405]: disconnect from host86-139-156-206.range86-139.btcentralplus.com[86.139.156.206]
Aug 13 11:33:15 odinson postfix/smtpd[13411]: connect from host86-139-156-206.range86-139.btcentralplus.com[86.139.156.206]
Aug 13 11:33:15 odinson postfix/smtpd[13411]: SSL_accept error from host86-139-156-206.range86-139.btcentralplus.com[86.139.156.206]: lost connection
Aug 13 11:33:15 odinson postfix/smtpd[13411]: lost connection after STARTTLS from host86-139-156-206.range86-139.btcentralplus.com[86.139.156.206]
Aug 13 11:33:15 odinson postfix/smtpd[13411]: disconnect from host86-139-156-206.range86-139.btcentralplus.com[86.139.156.206]
Aug 13 11:33:15 odinson postfix/smtpd[13405]: connect from host86-139-156-206.range86-139.btcentralplus.com[86.139.156.206]
Aug 13 11:33:16 odinson postfix/smtpd[13405]: SSL_accept error from host86-139-156-206.range86-139.btcentralplus.com[86.139.156.206]: lost connection
Aug 13 11:33:16 odinson postfix/smtpd[13405]: lost connection after STARTTLS from host86-139-156-206.range86-139.btcentralplus.com[86.139.156.206]
Aug 13 11:33:16 odinson postfix/smtpd[13405]: disconnect from host86-139-156-206.range86-139.btcentralplus.com[86.139.156.206]
And my Postfix Configuration:
Code:
# See /usr/share/postfix/main.cf.dist for a commented, more complete version
# Debian specific: Specifying a file name will cause the first
# line of that file to be used as the name. The Debian default
# is /etc/mailname.
#myorigin = /etc/mailname
smtpd_banner = $myhostname ESMTP $mail_name (Ubuntu)
biff = no
# appending .domain is the MUA's job.
append_dot_mydomain = no
# Uncomment the next line to generate "delayed mail" warnings
#delay_warning_time = 4h
readme_directory = no
# TLS parameters
smtpd_tls_cert_file=/etc/ssl/certs/ssl-cert-snakeoil.pem
smtpd_tls_key_file=/etc/ssl/private/ssl-cert-snakeoil.key
smtpd_use_tls=yes
smtpd_tls_session_cache_database = btree:${data_directory}/smtpd_scache
smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache
smtpd_tls_auth_only = yes
smtpd_sasl_auth_enable = yes
broken_sasl_auth_clients = yes
smtpd_sasl_authenticated_header = yes
smtpd_sasl_type = dovecot
smtpd_sasl_path = private/auth
smtpd_sasl_security_options = noanonymous, noplaintext
smtpd_sasl_tls_security_options = noanonymous
smtpd_recipient_restrictions =
permit_mynetworks,
permit_sasl_authenticated,
reject_unauth_destination,
reject_invalid_hostname,
reject_unauth_pipelining,
reject_non_fqdn_sender,
reject_unknown_sender_domain,
reject_non_fqdn_recipient,
reject_unknown_recipient_domain,
reject_rbl_client sbl.spamhaus.org,
permit
# See /usr/share/doc/postfix/TLS_README.gz in the postfix-doc package for
# information on enabling SSL in the smtp client.
myhostname = odinson.danielgroves.net
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
myorigin = /etc/mailname
mydestination = odinson.danielgroves.net, localhost, localhost.localdomain, localhost
relayhost =
mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128
mailbox_size_limit = 0
recipient_delimiter = +
inet_interfaces = all
virtual_uid_maps = static:5000
virtual_gid_maps = static:5000
virtual_alias_maps = mysql:/etc/postfix/mysql/virtual-aliases.cf
virtual_mailbox_domains = mysql:/etc/postfix/mysql/virtual-domains.cf
virtual_mailbox_maps = mysql:/etc/postfix/mysql/virtual-mailboxes.cf
virtual_transport = dovecot
dovecot_destination_recipient_limit = 1
I'd really appreciate any help with solving this. I've not setup a mail server before, and am somewhat stuck at the moment.
Thanks in advance,
Dan.
Bookmarks