Image

Imageapessos wrote in Imagephp

PHP mail question

Hello,
I am running a PhpWiki and had added some code to be notified every time a page is updated. Basically, I just used the mail function from PHP. Everything was working and peachy keen, until a month ago when it stopped working. I believe it stopped around the time I switched over from ipchains to iptables. And I am having trouble debugging the problem. I was hoping to talk it out with someone, and get some direction as to where to look.

Every time the mail function is called, I get the following in /var/log/maillog

Sep 16 11:23:18 gabriel sendmail[4310]: g8GFNH904306: 
to=apessos@drexel.edu, ctl addr=nobody (99/99), delay=00:00:01, 
xdelay=00:00:01, mailer=esmtp, pri=30075, relay=glue.irt.drexel.edu. 
[129.25.3.22], dsn=5.6.0, stat=Data format error
Sep 16 11:23:18 gabriel sendmail[4310]: g8GFNH904306: g8GFNI804310: 
DSN: Data format error
Sep 16 11:23:18 gabriel sendmail[4310]: g8GFNI804310: to=root, 
delay=00:00:00, xdelay=00:00:00, mailer=local, pri=30175, dsn=2.0.0, 
stat=Sent 



How does PHP send out mail? I believe it uses sendmail, but there are a lot of things that I am unsure of right now. Can anyone help me out?