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'm running Parallels with Windows 2003 Server Plesk on my VPS and I can't send mails via mail()

Warning: mail() [function.mail]: SMTP server response: 550 Requested action not taken: mailbox unavailable or not local (...)

Relay options link text

Php.ini
[mail function]
; For Win32 only.
SMTP = localhost
smtp_port = 25

Any ideeas what can I do to make it work?

share|improve this question

1 Answer 1

up vote 0 down vote accepted

I was able to make that error go away by making a mail address in the Plesk panel for the domain where I was running the script. i.e. Script was at http://www.phpdomainname.com/mailtest.php

In the Plesk control panel for phpdomainname.com, I opened the "Mail" icon and created an account called postmaster (postmaster@phpdomainname.com). Then in the php script, I changed the value of the 'from' variable to postmaster@phpdomainname.com and the error went away

Still can't send mail with the script, but it doesnt return the 'not local' error. Now troubleshooting why mail still doesn't go out, which is how I ran across your question.

  • k -
share|improve this answer

Your Answer

 
discard

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.