Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > HOWTO-Related Questions

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Thread Tools Display Modes
Old 21st September 2012, 02:55
p4r4digm p4r4digm is offline
Junior Member
Join Date: Sep 2012
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default [Fixed]Final Steps: Emails vanishing in thin air.

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

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 =
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
Sep 21 03:49:56 dapperhat pop3d: Connection, ip=[::ffff:]
Sep 21 03:49:56 dapperhat pop3d: LOGIN, user=btownsen@dapperhat.net, ip=[::ffff:], port=[48336]
Sep 21 03:49:56 dapperhat pop3d: LOGOUT, user=btownsen@dapperhat.net, ip=[::ffff:], port=[48336], top=0, retr=0, rcvd=24, sent=96, time=0
Sep 21 03:52:15 dapperhat pop3d: Connection, ip=[::ffff:]
Sep 21 03:52:15 dapperhat pop3d: LOGIN, user=btownsen@dapperhat.net, ip=[::ffff:], port=[46102]
Sep 21 03:52:15 dapperhat pop3d: LOGOUT, user=btownsen@dapperhat.net, ip=[::ffff:], port=[46102], top=0, retr=0, rcvd=24, sent=96, time=0

Last edited by p4r4digm; 21st September 2012 at 04:28.
Reply With Quote
Sponsored Links


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Final steps of installation failed (wrong mysql details) vector3 Installation/Configuration 4 1st March 2012 18:32

All times are GMT +2. The time now is 19:49.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.