LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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.

Notices



Reply
 
Search this Thread
Old 03-12-2005, 03:43 PM   #1
jodaog
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...

Jochen
 
Old 03-13-2005, 10:25 AM   #2
trickykid
Guru
 
Registered: Jan 2001
Posts: 24,133

Rep: Reputation: 199Reputation: 199
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..
 
  


Reply


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 06:30 AM
Postfix/Unknown Users ]SK[ Linux - Software 1 07-05-2005 06:24 PM
Postfix error - Recipient address rejected: Relay access denied robbiemorgan Linux - Newbie 1 10-01-2004 04:57 AM
postfix - wrong recipient address iliah Linux - Networking 2 09-26-2004 10:34 AM
Postfix Problem (Unknown User) solkan Linux - General 5 09-12-2003 08:35 PM


All times are GMT -5. The time now is 09:25 PM.

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