Basic Setup of Postfix/dovecot failing with “status=deferred”

emailpostfix

I've tried to set up email on a VPS by following the Linode Guide for doing so, but I've gotten to the end where I sent a test email, and its failing.

When I check /var/log/mail.log I see the following:

Jun 23 03:49:01 li115-209
postfix/pipe[9769]: 95FEAA6B0:
to=, relay=dove
cot, delay=1024,
delays=1024/0.02/0/0.01, dsn=4.3.0,
status=deferred (temporary failure)

I've double checked to make sure I've entered the domain name and email recipient correctly in mySQL. I'm not sure where to go from here in order to get working email.

Thanks for any help.

Edit: @ grufftech

Jun 23 03:31:57 li115-209 postfix/pickup[9709]: 95FEAA6B0: uid=0 from=<root>
Jun 23 03:31:57 li115-209 postfix/cleanup[9721]: 95FEAA6B0: message-id=<20100623033157.95FEAA6B0@li115-209.members.linode.com>
Jun 23 03:31:57 li115-209 postfix/qmgr[9710]: 95FEAA6B0: from=<root@li115-209.members.lineode.com>, size=455, nrcpt=1 (queue active)
Jun 23 03:31:57 li115-209 postfix/pipe[9727]: 95FEAA6B0: to=<first@medetis.com>, relay=dovecot, delay=0.04, delays=0.03/0.01/0/0.01, dsn=4.3.0, status=deferred (temporary failure)
Jun 23 03:39:01 li115-209 postfix/qmgr[9710]: 95FEAA6B0: from=<root@li115-209.members.lineode.com>, size=455, nrcpt=1 (queue active)
Jun 23 03:39:01 li115-209 postfix/pipe[9755]: 95FEAA6B0: to=<first@medetis.com>, relay=dovecot, delay=424, delays=424/0.02/0/0.07, dsn=4.3.0, status=deferred (temporary failure)
Jun 23 03:49:01 li115-209 postfix/qmgr[9710]: 95FEAA6B0: from=<root@li115-209.members.lineode.com>, size=455, nrcpt=1 (queue active)
Jun 23 03:49:01 li115-209 postfix/pipe[9769]: 95FEAA6B0: to=<first@medetis.com>, relay=dovecot, delay=1024, delays=1024/0.02/0/0.01, dsn=4.3.0, status=deferred (temporary failure)
Jun 23 04:09:01 li115-209 postfix/qmgr[9710]: 95FEAA6B0: from=<root@li115-209.members.lineode.com>, size=455, nrcpt=1 (queue active)
Jun 23 04:09:01 li115-209 postfix/pipe[9786]: 95FEAA6B0: to=<first@medetis.com>, relay=dovecot, delay=2224, delays=2224/0.02/0/0.01, dsn=4.3.0, status=deferred (temporary failure)

Can Send Out Email

Also tested to make sure that outgoing email performed properly – sent something to my yahoo account via mailx and while it got autosorted to spam, it did show up.

update 2

Been trying to find a solution, stumbled on dovecot-deliver.log which shows:

2010-06-23 04:59:01 deliver(first@medetis.com): Error: Namespace 'INBOX.': Mail storage autodetection failed with home=/home/vmail/medetis.com/first
2010-06-23 04:59:01 deliver(first@medetis.com): Fatal: Namespace initialization failed

but I haven't the foggiest what this means I need to fix.

Best Answer

Since you are relaying to dovecot, is it possible you're trying to do the mysql mailbox method in dovecot where you don't have a physical home directory for the users? If that is the case, it appears your virtual transport isn't set up correctly.

The 1024 second delay looks curiously odd - almost as if postfix is not connecting to your server and timing out. I remember at one point postfix had an issue with localhost versus 127.0.0.1, and if you use 127.0.0.1, you need to make sure your database has given grants to dbuser@127.0.0.1.