Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 03-12-2005, 02:43 PM   #1
LQ Newbie
Registered: Mar 2005
Posts: 1

Rep: Reputation: 0
postfix and php : recipient unknown

Hi to all,

i just installed a linux-host ( suse 9.1) with postfix and apache2 with php4.

Postfix has to relay all nonlocal mail to a mailrelay.
I can sent email at the console by mail...; its ok.
But if I try to send mail within a php-script by mail(), the mail will never arrive to the recipient. After some time, root gets a mail by postmaster , "error 5.0.0 recipient unknown...."
In the attached mail I can see the rcpt to: field. It is not empty !

Has anyone an idea, where to look for this error ?

Many thanks...

Old 03-13-2005, 09:25 AM   #2
LQ Guru
Registered: Jan 2001
Posts: 24,147

Rep: Reputation: 229Reputation: 229Reputation: 229
And this I am assuming is a machine with MX records setup and your using a domain or for local use? If only local use, I'd assume from the command line it works cause it reads the /etc/hosts config file, the php script your using which you have yet to explain if its a script thru a browser or such isn't using your hosts file to read from and doesn't know where to send the email.

But more details helps instead of making it a guessing game..


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
postfix problem:: Internet recipient cannot receive mail adrianmak Linux - Software 2 08-16-2005 05:30 AM
Postfix/Unknown Users ]SK[ Linux - Software 1 07-05-2005 05:24 PM
Postfix error - Recipient address rejected: Relay access denied robbiemorgan Linux - Newbie 1 10-01-2004 03:57 AM
postfix - wrong recipient address iliah Linux - Networking 2 09-26-2004 09:34 AM
Postfix Problem (Unknown User) solkan Linux - General 5 09-12-2003 07:35 PM

All times are GMT -5. The time now is 07:41 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration