Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have followed the instructions in this tutorial. I can successfully sent emails but i cannot receive. Here is exactly what happens:

When i sent an email from my hotmail account if i do

# ls /home/vmail/

i see the mail, but if i login to squirrelmail i don't.

here is my /etc/postfix/

smtpd_banner = $myhostname ESMTP $mail_name (Debian/GNU)
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_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 = myvps
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
mydestination = myvps, localhost.localdomain, , localhost
relayhost =
mynetworks = [::ffff:]/104 [::1]/128
mailbox_command = procmail -a "$EXTENSION"
mailbox_size_limit = 0
recipient_delimiter = +
inet_interfaces = all

home_mailbox = Maildir/
virtual_mailbox_domains = /etc/postfix/vhosts
virtual_mailbox_base = /home/vmail
virtual_mailbox_maps = hash:/etc/postfix/vmaps
virtual_minimum_uid = 999
virtual_uid_maps = static:999
virtual_gid_maps = static:999

Here is the dig output:

# dig MX +short

EDIT And here is my /var/log/mail.log when i send an email to my vps email account:

Dec  6 13:46:01 myvps postfix/smtpd[23920]: connect from[]
Dec  6 13:46:01 myvps postfix/smtpd[23920]: F0DB267E137F:[]
Dec  6 13:46:02 myvps postfix/cleanup[23925]: F0DB267E137F: message-id=<DUB118-W1118B8BBE2A4DE54F2886CF8D60@phx.gbl>
Dec  6 13:46:02 myvps postfix/qmgr[23905]: F0DB267E137F: from=<>, size=1650, nrcpt=1 (queue active)
Dec  6 13:46:02 myvps postfix/smtpd[23920]: disconnect from[]
Dec  6 13:46:02 myvps postfix/virtual[23926]: F0DB267E137F: to=<>, relay=virtual, delay=0.08, delays=0.06/0.02/0/0, dsn=2.0.0, status=sent (delivered to maildir)
Dec  6 13:46:02 myvps postfix/qmgr[23905]: F0DB267E137F: removed
share|improve this question
up vote 1 down vote accepted

The problem was with with mailbox_command. When i just commented out the line containing mailbox_command, it worked.

So if anyone faces the same problem simply run:

sed -i "/mailbox_command/ s/^/# /" /etc/postfix/
share|improve this answer

At this line in

mydestination = myvps, localhost.localdomain, , localhost


mydestination = myvps, localhost.localdomain,, localhost
share|improve this answer
Still nothing... – Christos Baziotis Dec 6 '13 at 18:39
What does /var/log/mail.log say when you send a mail to the server? Post in your question. Is the client you are sending from resolving correctly? If you don't own the domain, you should use another domain which you control instead. – Atle Dec 6 '13 at 18:44
i edited my post. – Christos Baziotis Dec 6 '13 at 18:49
Can you find the mails you send in /home/info/Maildir ? – Atle Dec 6 '13 at 20:08

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.