Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Hello world!

I just followed this excellent tutorial on setting up a mail server with Postfix/Dovecot/etc. http://www.exratione.com/2012/05/a-mailserver-on-ubuntu-1204-postfix-dovecot-mysql/

I got through it, and I can send email just fine. The domain I'm using is jonah.name. However, I cannot receive emails from external emails or other internal mailboxes. If I try to send an email to a user in it, I get a "Undelivered Mail Returned to Sender" email back, telling me that the user is unknown. This is what comes up in /var/log/mail.log:


The log confirms (line 18) that the user is "unknown". I re-double-checked all of the configuration files that connect to MySQL, but I couldn't find any flaws. Here are the MySQL virtual configuration files:


share|improve this question

2 Answers 2

up vote 2 down vote accepted

Isn't Answer in the log above? "warning: do not list domain jonah.name in BOTH mydestination and virtual_mailbox_domains"

Edit :

Try "mydestination = localhost"

"mydestination : The list of domains that are delivered via the $local_transport mail delivery transport." ie postfix tried to find a real user called jonah. According to your setup, you want user jonah to be virtual, so jonah.name must not be part of mydestination (I agree, it's tricky).

share|improve this answer
It's just a warning, so I don't think so. It goes right past it without any other problems. Interestingly enough, I commented out the mydestination directive in main.cf and restarted the service, but it still gives that error. –  Jonah Aug 17 '12 at 21:47
try "mydestination = localhost" –  user130370 Aug 17 '12 at 21:53
THAT FIXED IT!!!!!! You, sir, are a boss. –  Jonah Aug 17 '12 at 21:58
So why is that? What does the mydestination directive do that it would cause that problem? –  Jonah Aug 17 '12 at 21:59
When you commented out the mydestination line, it falled back on default value, which is likely to include jonah.name –  user130370 Aug 17 '12 at 22:02

It looks like the sender is greylisted, if the sender retry after about 300 seconds it is supposed to pass. You can also disable the greylisting.

share|improve this answer
Thanks @Alex, I disabled greylisting and I updated the error log. It says the user is unknown, so I guess there's an issue connecting to MySQL. –  Jonah Aug 17 '12 at 21:36
Sorry can't help much, I'm also using postfix/dovecot/greylist etc but not in virtual mode! –  Alexandre Lavoie Aug 17 '12 at 21:38
Okay, thanks anyway Alex. At least I'm getting closer, I know it's a problem with accessing the user list. –  Jonah Aug 17 '12 at 21:50

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.