PHP script not sending email

mhannay

Verified User
Joined
Aug 10, 2005
Messages
5
Location
Australia
I have a user that has a PHP script that sends an email it works fine up to the
point that it has to send an email.

I am on a debian linux server,

Should the send mail links
to exim exist and what does the php/httpd these links to be expect?

Also should their be an entry in the php.ini
 
the path to sendmail is usally in each users httpd.conf in /usr/local/directadmin/data/users/<username>/httpd.conf
by default.

Yes the sendmail link should exist and be pointing to exim.
It's located in /usr/sbin for me, also on Debian.
 
the sendmail links point to exim
and the php ini has the /usr/lib/sendmail -i -t in it the php scrips seem to send mail but nothing arrives?

The scripts use to work on a old box has any one any clues?
 
The exim log says the following when I try to send an email ...... The email does not get delivered .....

Any clues on what it means .....
do I need to change a config?


2005-08-11 20:11:57 1E3A2X-00005n-Li <= [email protected] U=apache P=local S=1538
2005-08-11 20:11:57 1E3A2X-00005n-Li ** [email protected] R=nonlocal: Mailing to remote domains not supported
2005-08-11 20:11:57 1E3A2X-00005p-MV <= <> R=1E3A2X-00005n-Li U=Debian-exim P=local S=2428
2005-08-11 20:11:57 1E3A2X-00005p-MV ** [email protected] R=nonlocal: Mailing to remote domains not supported
2005-08-11 20:11:57 1E3A2X-00005p-MV Frozen (delivery error message)
2005-08-11 20:11:57 1E3A2X-00005n-Li Completed
 
Does any other outgoing mail through exim work? Can you send the email using smtp?
Are you using the standard config? You might try downloading it from the fileserver just to see.
 
all mail through exim and da works

I had this script on another server and it works!! THis is why I think its a config isseu
 
What's interesting to me is that:

R=nonlocal: Mailing to remote domains not supported

appears to come from the exim.conf file (at least according to the googling I've done) and the standard exim.conf files don't have this error message in them.

Can you grep your exim conf file thusly as root:

grep "Mailing to remote" /etc/exim.conf

and post the output here?

Thanks.

Jeff
 
Back
Top