Figured it out. sendmail was running on port 25 even though it wa suninstalled and this was causing postfix to fail to run. Also had to deal with some permissions issues on inbox folders. BUT IT FINALLY WORKS
Following this how-to to the teeth:
Virtual Users And Domains With Postfix, Courier, MySQL And SquirrelMail (Ubuntu 12.04 LTS)
I seem to have FINALLY gotten the damn thing working to the point that I am able to login successfully via POP and IMAP. My virtual mailboxes are all set correctly and I even set it up so gmail pulls mail from the mailbox.
But sending mail to the virtual mailbox...well just nothing happens. There is nothing mentioned in the mail log, there is no bounceback NDR to the sender, and, msot importantly, there is no email received in the mailbox.
I have been trolling around the forums looking for answers for over an hour and I'm finally breaking down and asking because I feel like I'm so damn close to finally having this thing set up (Ive been trying to get a postfix server running for 3 days now)
Here is my main.cf
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 = dapperhat.net
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
myorigin = /etc/mailname
mydestination = dapperhat.net, localhost, localhost.localdomain
relayhost =
mynetworks = 127.0.0.0/8
mailbox_command = procmail -a "$EXTENSION"
mailbox_size_limit = 0
recipient_delimiter = +
inet_interfaces = all
html_directory = /usr/share/doc/postfix/html
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
transport_maps = proxy:mysql:/etc/postfix/mysql-virtual_transports.cf
#virtual_maildir_extended = yes
#virtual_mailbox_limit_maps = proxy:mysql:/etc/postfix/mysql-virtual_mailbox_limit_maps.cf
#virtual_mailbox_limit_override = yes
#virtual_maildir_limit_message = "The user you are trying to reach is over quota."
#virtual_overquota_bounce = 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
And here's mail.log
Code:
Sep 21 03:49:56 dapperhat pop3d: Connection, ip=[::ffff:209.85.212.10]
Sep 21 03:49:56 dapperhat pop3d: LOGIN, user=btownsen@dapperhat.net, ip=[::ffff:209.85.212.10], port=[48336]
Sep 21 03:49:56 dapperhat pop3d: LOGOUT, user=btownsen@dapperhat.net, ip=[::ffff:209.85.212.10], port=[48336], top=0, retr=0, rcvd=24, sent=96, time=0
Sep 21 03:52:15 dapperhat pop3d: Connection, ip=[::ffff:209.85.220.166]
Sep 21 03:52:15 dapperhat pop3d: LOGIN, user=btownsen@dapperhat.net, ip=[::ffff:209.85.220.166], port=[46102]
Sep 21 03:52:15 dapperhat pop3d: LOGOUT, user=btownsen@dapperhat.net, ip=[::ffff:209.85.220.166], port=[46102], top=0, retr=0, rcvd=24, sent=96, time=0
Recent comments
1 day 10 hours ago
1 day 13 hours ago
2 days 1 hour ago
2 days 3 hours ago
2 days 8 hours ago
2 days 14 hours ago
2 days 23 hours ago
3 days 1 hour ago
3 days 9 hours ago
3 days 11 hours ago