Sending mail to postfix
Posted: Fri Jun 10, 2005 12:52 pm
I cannot for the life of me get mail to send properly using the mail() or pear::mail.
sendmail wouldn't work right so i gave up on the mail() command and switched to pear::mail. That works much better, it actually connects to postfix but this shows up in the logs:
Jun 10 13:05:58 shaun postfix/smtpd[30174]: connect from unknown[216.xxx.xxx.xxx]
Jun 10 13:05:58 shaun postfix/smtpd[30174]: NOQUEUE: reject: RCPT from unknown[216.xxx.xxx.xxx]: 550 <support@mydomain.com>: Recipient address rejected: User unknown in virtual mailbox table; from=<joe@domain.com> to=<support@mydomain.com> proto=ESMTP helo=<localhost>
Jun 10 13:05:58 shaun postfix/smtpd[30174]: lost connection after RCPT from unknown[216.xxx.xxx.xxx]
Jun 10 13:05:58 shaun postfix/smtpd[30174]: disconnect from unknown[216.xxx.xxx.xxx]
I don't know if this is really a php question since the php half works, just doesn't send and i don't know if it's the code or postfix. I can definetly say the mail server works fine i can send email from outlook, webmail, and others to support and it works. I don't understand how i'm getting a 550 error here though. The mail server and web server are on the same box, running FreeBSD 5.1, Apache 1.3.33, php4, and postfix with mysql virtual tables.
Any suggestions?
oh yeah the x's and mydomain stuff is for security....
Thanks,
Shaun Mickey
270net Technologies
Systems Administrator
sendmail wouldn't work right so i gave up on the mail() command and switched to pear::mail. That works much better, it actually connects to postfix but this shows up in the logs:
Jun 10 13:05:58 shaun postfix/smtpd[30174]: connect from unknown[216.xxx.xxx.xxx]
Jun 10 13:05:58 shaun postfix/smtpd[30174]: NOQUEUE: reject: RCPT from unknown[216.xxx.xxx.xxx]: 550 <support@mydomain.com>: Recipient address rejected: User unknown in virtual mailbox table; from=<joe@domain.com> to=<support@mydomain.com> proto=ESMTP helo=<localhost>
Jun 10 13:05:58 shaun postfix/smtpd[30174]: lost connection after RCPT from unknown[216.xxx.xxx.xxx]
Jun 10 13:05:58 shaun postfix/smtpd[30174]: disconnect from unknown[216.xxx.xxx.xxx]
I don't know if this is really a php question since the php half works, just doesn't send and i don't know if it's the code or postfix. I can definetly say the mail server works fine i can send email from outlook, webmail, and others to support and it works. I don't understand how i'm getting a 550 error here though. The mail server and web server are on the same box, running FreeBSD 5.1, Apache 1.3.33, php4, and postfix with mysql virtual tables.
Any suggestions?
oh yeah the x's and mydomain stuff is for security....
Thanks,
Shaun Mickey
270net Technologies
Systems Administrator