Hi,

Having a problem with sendmail. I use it only with PHP send mail function.

A simple mail() works and will go wherever it is supposed to. I however use a script that creates a pretty mime mail and attaches documents e.t.c to it. When I do this, the mail never arrives in any of my mail boxes, not hotmail or my work account. I have looked in the maillog file and found the lines relating to the mails. They are as below with the addresses removd and just the domain left:
PHP Code:
Jan 26 10:54:26 LAMP1 sendmail[7707]: l0QAsQE4007707from=apachesize=271, class=0nrcpts=2msgid=<jch2aq.ikh62w@www.xxxxxxxxxxx.net>, relay=apache@localhost
Jan 26 10
:54:26 LAMP1 sendmail[7708]: l0QAsQj8007708from=<apache@LAMP1.WELLAND>, size=435, class=0nrcpts=2msgid=<jch2aq.ikh62w@www.xxxxxxxxxxx.net>, proto=ESMTPdaemon=MTArelay=LAMP1 [127.0.0.1]
Jan 26 10:54:26 LAMP1 sendmail[7707]: l0QAsQE4007707to=xxxxx@genxxxxxx-xxx.com,xxxxxxxxxxx@hotmail.comctladdr=apache (48/48), delay=00:00:00xdelay=00:00:00mailer=relaypri=60271relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0stat=Sent (l0QAsQj8007708 Message accepted for delivery)
Jan 26 10:54:27 LAMP1 sendmail[7712]: l0QAsRC4007712from=apachesize=271, class=0nrcpts=2msgid=<jch2ar.gjzeng@www.xxxxxxxxxxx.net>, relay=apache@localhost
Jan 26 10
:54:27 LAMP1 sendmail[7713]: l0QAsR2L007713from=<apache@LAMP1.WELLAND>, size=435, class=0nrcpts=2msgid=<jch2ar.gjzeng@www.xxxxxxxxxxx.net>, proto=ESMTPdaemon=MTArelay=LAMP1 [127.0.0.1]
Jan 26 10:54:27 LAMP1 sendmail[7712]: l0QAsRC4007712to=xxxxx@genxxxxxx-xxx.com,xxxxxxxxxxx@hotmail.comctladdr=apache (48/48), delay=00:00:00xdelay=00:00:00mailer=relaypri=60271relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0stat=Sent (l0QAsR2L007713 Message accepted for delivery)
Jan 26 10:54:29 LAMP1 sendmail[7715]: l0QAsR2L007713to=<xxxxx@genxxxxxx-xxx.com>, ctladdr=<apache@LAMP1.WELLAND> (48/48), delay=00:00:02xdelay=00:00:02mailer=esmtppri=150435relay=mx01.1and1.co.uk. [212.227.15.186], dsn=2.0.0stat=Sent (Message 0MKqIe-1HAOiy0AGE-0007OX accepted by mxeu3.kundenserver.de)
Jan 26 10:54:29 LAMP1 sendmail[7710]: l0QAsQj8007708to=<xxxxx@genxxxxxx-xxx.com>, ctladdr=<apache@LAMP1.WELLAND> (48/48), delay=00:00:03xdelay=00:00:03mailer=esmtppri=150435relay=mx01.1and1.co.uk. [212.227.15.186], dsn=2.0.0stat=Sent (Message 0MKx9w-1HAOix205z-0004g0 accepted by mxeu15.kundenserver.de)
Jan 26 10:54:31 LAMP1 sendmail[7715]: l0QAsR2L007713to=<xxxxxxxxxxx@hotmail.com>, ctladdr=<apache@LAMP1.WELLAND> (48/48), delay=00:00:04xdelay=00:00:02mailer=esmtppri=150435relay=mx1.hotmail.com. [65.54.244.8], dsn=2.0.0stat=Sent ( <jch2ar.gjzeng@www.xxxxxxxxxxx.netQueued mail for delivery)
Jan 26 10:54:31 LAMP1 sendmail[7710]: l0QAsQj8007708to=<xxxxxxxxxxx@hotmail.com>, ctladdr=<apache@LAMP1.WELLAND> (48/48), delay=00:00:05xdelay=00:00:02mailer=esmtppri=150435relay=mx2.hotmail.com. [65.54.244.40], dsn=2.0.0stat=Sent ( <jch2aq.ikh62w@www.xxxxxxxxxxx.netQueued mail for delivery

Now my guess is that stat=sent means they have gone and they should arrive..... but they don't! Anyone any ideas and how I can trace and find out why not? Again they arrive perfectly with no mime content!


It is currently routing directly, would I be better off sending it forward to my mail provider and using there mail servers to do the sending and using sendmail as a local relay?

Anyone know how to do this?!