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.

I am having a problem sending mail from the server. The issue was spotted because as php mail() is failing to deliver any messages.

I have checked the mail log on the server and found the following;

Mar 31 11:28:34 serverxx-xxx-xxx-x spamd[2344]: spamd: connection from localhost []  at port 38673
Mar 31 11:28:34 serverxx-xxx-xxx-x spamd[2343]: prefork: child states: II
Mar 31 11:32:30 serverxx-xxx-xxx-x postfix/pickup[1625]: EA26E41204B8: uid=10007 from=<xx-website-xx>
Mar 31 11:32:30 serverxx-xxx-xxx-x postfix/cleanup[3218]: EA26E41204B8: message-id=<20140331103230.EA26E41204B8@serverxx-xxx-xxx-x.server.xxx>
Mar 31 11:32:31 serverxx-xxx-xxx-x postfix/qmgr[1626]: EA26E41204B8: from=<xx-website-xx@server88-208-204-7.server.xxx>, size=655, nrcpt=1 (queue active)
Mar 31 11:32:31 serverxx-xxx-xxx-x postfix-local[3221]: postfix-local: from=xx-website-xx@serverxx-xxx-xxx-x.server.xxx, to=user@website.co.uk, dirname=/var/qmail/mailnames
Mar 31 11:32:31 serverxx-xxx-xxx-x postfix-local[3221]: cannot chdir to mailname dir user: No such file or directory
Mar 31 11:32:31 serverxx-xxx-xxx-x postfix-local[3221]: Unknown user: @vwebsite.co.uk
Mar 31 11:32:31 serverxx-xxx-xxx-x postfix/pipe[3220]: EA26E41204B8: to=<xx-website-xx>, relay=plesk_virtual, delay=0.29, delays=0.18/0.01/0/0.1, dsn=2.0.0, status=sent (delivered via plesk_virtual service)
Mar 31 11:32:31 serverxx-xxx-xxx-x postfix/qmgr[1626]: EA26E41204B8: removed

there seems to be an issue with postfix at a surface level. I'm running Plesk with CentOS6. Also of note that i am using google apps for the email service with MX records pointing to google mail. Not sure if this will make a difference but on other domains on the server its also failing to send.

Any help would be appreciated.


I have solved the problem and as this is an issue which seems to be affecting a lot of people and there is so little documentation on this i will post the answer. The issue was the virtual server configuration in the config file.

For me in plesk it is located in /etc/postfix/main.cf

navigate to the bottom of the document and find;

# readme_directory: The location of the Postfix README files.
readme_directory = /usr/share/doc/postfix-2.8.14/README_FILES
#virtual_mailbox_domains = $virtual_mailbox_maps, hash:/var/spool/postfix/plesk/virtual_domains
#virtual_alias_maps = $virtual_maps, hash:/var/spool/postfix/plesk/virtual
#virtual_mailbox_maps = hash:/var/spool/postfix/plesk/vmailbox
transport_maps = hash:/var/spool/postfix/plesk/transport
smtpd_tls_cert_file = /etc/postfix/postfix_default.pem
smtpd_tls_key_file = $smtpd_tls_cert_file

as you can see i have commented out the three entries with virtual_. These are the only one's i needed to comment out. then you can either restart the server or run this command over ssh;

/etc/init.d/postfix reload
share|improve this question
Postfix seems to think that the domain you've so helpfully obscured is a locally hosted domain. Fix that. –  NickW Mar 31 at 12:16
well i have the main.cf open. Where would i find the changes i need to make? –  jollins Mar 31 at 12:18
Possibly virtual_mailbox_domains, possibly relay domains, possibly you just need to set the transport. –  NickW Mar 31 at 13:01
I have seen posts about each of these but the issue is that they are just mentioned, as if i already know what the answer is and i just need to find the call. I never had this issue on my last server –  jollins Mar 31 at 13:04
Well, if you can explain how you wanted your server to work, you say you're hosting a domain on google mail, but is this domain configured on your postfix server? How did you configure it? –  NickW Mar 31 at 13:09

1 Answer 1

up vote 0 down vote accepted

this was actually a part of a bigger issue. I wouldn't recommend commenting out the virtual host config if you are looking to have emails on different domains using different methods. For a more complete answer visit;

mail issues. cent os6, postfix and php mail. many domains, one with google apps

share|improve this answer

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.