Jump to content

mail() function not sending to email accounts in domain


Recommended Posts

A simple email script will send email to email accounts outside of the host domain but not to email accounts in the domain.

ie example.com/sendmail.php will send to email.account@xyz.com but not to email.account@example.com


I get the following when sending to accounts with same domain name:


"Warning: mail() [function.mail]: SMTP server response: 550 Requested action not taken: mailbox unavailable or not local inG:PleskVhostsexample.com/sendmail.php on line26"


The script works fine sending to any account other outside of the domain.

Something in the settings I suspect. Plesk or php settings?


thx for any help...

Link to comment
Share on other sites

One problem might be that the web server's DNS records are pointing to itself as the mail server, but the actual mail server is separate. The error message says that the mailbox does not exist on that server. So the local web server is not the email server that you actually use.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Create New...