Plesk, SMTP and sending e-mail from same domain

user809829 picture user809829 · Jun 22, 2011 · Viewed 20.3k times · Source

I have a server with Plesk installed. On that I've created a domain, my-domain.com, and added and e-mail account [email protected] with access to SMTP for sending e-mails.

With PHPMailer or Swift Mailer I am able to send via the SMTP account [email protected] whenever the from address is outside the my-domain.com, for example [email protected]. Whenever I'm using an e-mail address that ends on @my-domain.com it fails.

I've tried to look in the /usr/local/psa/var/log/maillog file, but it only stores the mails that doesn't fail.

Can someone help me figure out where the problems is?

Answer

Benjamin picture Benjamin · Jul 27, 2011

You can try this:

Delete the related domain in the qmail file /var/qmail/control/virtualdomains Then reload/restart qmail. Now it should work. More technical background at http://forum.parallels.com/pda/index.php/t-93222.html