Problem Solved!
I'm running Ubuntu 10.04, and I'm trying to set up Postfix and Courier as a mailserver. I am able to connect to a POP account under Courier with no problems. I followed the postfix/courier tutorial on the linode library, and I am using mySQL for everything. My website is
www.benstevinson.com. I'm trying to get the email address
ben@benstevinson.com to work, and I cannot. I have no troubles receiving mail that is sent to
ben@benstevinson.com, and can access that email address through POP through Apple Mail or Thunderbird. I cannot connect to my SMTP server to send out mail with an external client. It says that my server (and lists it as mail.benstevinson.com) times out. I am not quite sure what to do here. My FQDN is trinity.benstevinson.com, and I can use mailx to send out to another place, but it says my email address is
ben@trinity.benstevinson.com. I am trying to change that.
I just ran a tail -50 /etc/postfix/mail.log and got this:
Code:
Jun 22 23:43:41 trinity postfix/qmgr[9758]: 305F3E5CC: from=<ben@trinity.benstevinson.com>, size=476, nrcpt=1 (queue active)
Jun 22 23:43:41 trinity postfix/smtp[9767]: 305F3E5CC: to=<techy158@gmail.com>, relay=gmail-smtp-in.l.google.com[74.125.91.27]:25, delay=0.72, delays=0.03/0.01/0.14/0.54, dsn=2.0.0, status=sent (250 2.0.0 OK 1277271821 my14si11416313qcb.92)
Jun 22 23:43:41 trinity postfix/qmgr[9758]: 305F3E5CC: removed
Jun 22 23:44:41 trinity postfix/master[9755]: terminating on signal 15
Jun 22 23:44:41 trinity postfix/master[9875]: daemon started -- version 2.7.0, configuration /etc/postfix
Jun 22 23:44:55 trinity postfix/pickup[9877]: E5C7FE5CB: uid=1000 from=<ben>
Jun 22 23:44:55 trinity postfix/cleanup[9882]: E5C7FE5CB: message-id=<20100623054455.E5C7FE5CB@benstevinson.com>
Jun 22 23:44:55 trinity postfix/qmgr[9878]: E5C7FE5CB: from=<ben@trinity.benstevinson.com>, size=448, nrcpt=1 (queue active)
Jun 22 23:44:56 trinity postfix/smtp[9885]: E5C7FE5CB: to=<techy158@gmail.com>, relay=gmail-smtp-in.l.google.com[74.125.91.27]:25, delay=0.73, delays=0.03/0.01/0.12/0.57, dsn=2.0.0, status=sent (250 2.0.0 OK 1277271896 w40si11413077qce.108)
Jun 22 23:44:56 trinity postfix/qmgr[9878]: E5C7FE5CB: removed
Jun 23 06:25:02 trinity postfix/pickup[10087]: 925CCE5CB: uid=0 from=<root>
Jun 23 06:25:02 trinity postfix/cleanup[10192]: 925CCE5CB: message-id=<20100623122502.925CCE5CB@benstevinson.com>
Jun 23 06:25:02 trinity postfix/qmgr[9878]: 925CCE5CB: from=<root@trinity.benstevinson.com>, size=840, nrcpt=1 (queue active)
Jun 23 06:25:02 trinity postfix/local[10195]: warning: database /etc/aliases.db is older than source file /etc/aliases
Jun 23 06:25:02 trinity postfix/local[10195]: 925CCE5CB: to=<root@trinity.benstevinson.com>, orig_to=<root>, relay=local, delay=0.22, delays=0.21/0.01/0/0, dsn=2.0.0, status=sent (delivered to mailbox)
Jun 23 06:25:02 trinity postfix/qmgr[9878]: 925CCE5CB: removed
Jun 23 12:13:56 trinity postfix/master[9875]: terminating on signal 15
Jun 23 12:13:56 trinity postfix/master[10480]: daemon started -- version 2.7.0, configuration /etc/postfix
Jun 23 12:15:19 trinity authdaemond: modules="authmysql", daemons=5
Jun 23 12:15:19 trinity authdaemond: Installing libauthmysql
Jun 23 12:15:19 trinity authdaemond: Installation complete: authmysql
Jun 23 12:15:20 trinity postfix/master[2257]: daemon started -- version 2.7.0, configuration /etc/postfix
Jun 23 12:15:33 trinity dovecot: Dovecot v1.2.9 starting up (core dumps disabled)
Jun 23 14:22:02 trinity imapd: Connection, ip=[::ffff:63.224.65.82]
Jun 23 14:22:02 trinity imapd: LOGOUT, ip=[::ffff:63.224.65.82], rcvd=24, sent=464
Jun 23 14:22:52 trinity imapd: Connection, ip=[::ffff:63.224.65.82]
Jun 23 14:22:57 trinity imapd: Connection, ip=[::ffff:63.224.65.82]
Jun 23 14:22:57 trinity imapd: LOGIN FAILED, method=PLAIN, ip=[::ffff:63.224.65.82]
Jun 23 14:23:02 trinity imapd: LOGIN FAILED, user=ben, ip=[::ffff:63.224.65.82]
Jun 23 14:23:12 trinity imapd: Disconnected, ip=[::ffff:63.224.65.82], time=15, starttls=1
Jun 23 14:28:51 trinity postfix/pickup[2487]: AA5E5E5CB: uid=1000 from=<ben>
Jun 23 14:28:51 trinity postfix/cleanup[2546]: AA5E5E5CB: message-id=<20100623202851.AA5E5E5CB@benstevinson.com>
Jun 23 14:28:51 trinity postfix/qmgr[2266]: AA5E5E5CB: from=<ben@trinity.benstevinson.com>, size=442, nrcpt=1 (queue active)
Jun 23 14:28:52 trinity postfix/smtp[2551]: AA5E5E5CB: to=<techy158@gmail.com>, relay=gmail-smtp-in.l.google.com[74.125.91.27]:25, delay=1.2, delays=0.11/0.04/0.36/0.73, dsn=2.0.0, status=sent (250 2.0.0 OK 1277324932 d21si12302180qcs.132)
Jun 23 14:28:52 trinity postfix/qmgr[2266]: AA5E5E5CB: removed
Jun 23 16:12:20 trinity imapd: Connection, ip=[::ffff:63.224.65.82]
Jun 23 16:12:21 trinity imapd: LOGIN FAILED, method=PLAIN, ip=[::ffff:63.224.65.82]
Jun 23 16:12:26 trinity imapd: LOGIN FAILED, user=ben, ip=[::ffff:63.224.65.82]
Jun 23 16:12:46 trinity imapd: LOGIN FAILED, method=PLAIN, ip=[::ffff:63.224.65.82]
Jun 23 16:12:51 trinity imapd: LOGIN FAILED, user=ben, ip=[::ffff:63.224.65.82]
Jun 23 16:12:58 trinity imapd: Disconnected, ip=[::ffff:63.224.65.82], time=38, starttls=1
Jun 23 16:16:14 trinity imapd: Connection, ip=[::ffff:63.224.65.82]
Jun 23 16:16:17 trinity imapd: Disconnected, ip=[::ffff:63.224.65.82], time=3, starttls=1
Jun 23 16:16:40 trinity imapd: Connection, ip=[::ffff:63.224.65.82]
Jun 23 16:16:45 trinity imapd: Connection, ip=[::ffff:63.224.65.82]
Jun 23 16:16:53 trinity imapd: LOGIN, user=ben@benstevinson.com, ip=[::ffff:63.224.65.82], port=[1056], protocol=IMAP
Jun 23 16:17:15 trinity imapd: Connection, ip=[::ffff:63.224.65.82]
Jun 23 16:17:15 trinity imapd: LOGIN, user=ben@benstevinson.com, ip=[::ffff:63.224.65.82], port=[1439], protocol=IMAP
Jun 23 16:17:15 trinity imapd: Connection, ip=[::ffff:63.224.65.82]
Jun 23 16:17:15 trinity imapd: LOGIN, user=ben@benstevinson.com, ip=[::ffff:63.224.65.82], port=[1440], protocol=IMAP
I looked at this and noticed that saslauthd was not started, so I started it. Then it just timed out when I tried to use Thunderbird to send an email. I can still receive mail, however.
I am putting my account as
ben@benstevinson.com in my server configurations, and benstevinson.com as my server.
Here is my /etc/aliases file:
Code:
# See man 5 aliases for format
postmaster: root@benstevinson.com
ben: ben@benstevinson.com
And here is my main.cf file:
Code:
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 = /usr/share/doc/postfix
# TLS parameters
smtpd_tls_cert_file = /etc/postfix/smtpd.cert
smtpd_tls_key_file = /etc/postfix/smtpd.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
# See /usr/share/doc/postfix/TLS_README.gz in the postfix-doc package for
# information on enabling SSL in the smtp client.
myhostname = benstevinson.com
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
myorigin = /etc/mailname
mydestination = benstevinson.com, localhost.benstevinson.com
relayhost =
mynetworks = 127.0.0.0/8
mailbox_size_limit = 0
recipient_delimiter = +
inet_interfaces = all
html_directory = /usr/share/doc/postfix/html
message_size_limit = 30720000
virtual_alias_domains =
virtual_alias_maps = proxy:mysql:/etc/postfix/mysql-virtual_forwardings.cf, mysql:/etc/postfix/mysql-virtual_email2email.cf
virtual_mailbox_domains = proxy:mysql:/etc/postfix/mysql-virtual_domains.cf
virtual_mailbox_maps = proxy:mysql:/etc/postfix/mysql-virtual_mailboxes.cf
virtual_mailbox_base = /home/vmail
virtual_uid_maps = static:5000
virtual_gid_maps = static:5000
smtpd_sasl_auth_enable = yes
broken_sasl_auth_clients = yes
smtpd_sasl_authenticated_header = yes
smtpd_recipient_restrictions = permit_mynetworks, permit_sasl_authenticated, reject_unauth_destination
virtual_create_maildirsize = yes
virtual_maildir_extended = yes
proxy_read_maps = $local_recipient_maps $mydestination $virtual_alias_maps $virtual_alias_domains $virtual_mailbox_maps $virtual_mailbox_domains $relay_recipient_maps $relay_domains $canonical_maps $sender_canonical_maps $recipient_canonical_maps $relocated_maps $transport_maps $mynetworks $virtual_mailbox_limit_maps
What do I have wrong here? I cannot figure it out.
Thanks in advance!