I'm using the PHP mail() function, using PostFix, on CentOS6, Plesk 10.4, and my email is not getting delivered to a particular address. My personal GMail and Yahoo email addresses receive email from my server fine and do not produce errors. After a wonderful suggestion on here, I checked my mail logs, and this is the error I see :
Apr 10 10:26:29 ######### postfix/qmgr[8323]: 19EA21827: from=
<my.valid.email@myserver.com>, size=645, nrcpt=1 (queue active)
Apr 10 10:26:29 ######### postfix-local[8331]: postfix-local:
from=my.valid.email@myserver.com, to=name@company.com,
dirname=/var/qmail/mailnames
Apr 10 10:26:29 ######### postfix-local[8331]:
cannot chdir to mailname dir name: No such file or directory
Apr 10 10:26:29 ######### postfix-local[8331]:
Unknown user: name@company.com
Apr 10 10:26:29 ######### postfix/pipe[8330]: 19EA21827:
to=<name@company.com>, relay=plesk_virtual, delay=0.15, delays=0.11/0/0/0.04,
dsn=2.0.0, status=sent (delivered via plesk_virtual service)
Apr 10 10:26:29 ######### postfix/qmgr[8323]: 19EA21827: removed
my.valid.email@myserver.com is the name I've declared in php.ini for
sendmail_from = "my.valid.email@myserver.com"
sendmail_path = "/usr/sbin/sendmail -t -f my.valid.email@myserver.com"
and the recipient is supposed to be name@company.com.
Is this an error on my side or the recipients? Can I address this on my server?
Many thanks SF.
mail()function fine and do not produce the same errors in my mail logs. I never set up a SMTP outside the server, so I would imagine it's still on my server. Hope I answered that correctly. – RCNeil Apr 10 '12 at 15:19