could someone give me some pointers as to how to set up my (desktop) box which i use as a test webserver so that php mail() will work from sendmail.
i have set up sendmail to route to my isp smtp server with
Code:
define(`SMART_HOST',`smtp.ntlworld.com')
and i can send from the command line. php mail() however doesnt ever arrive. mail log looks like this for the cmdline:
Code:
May 12 21:42:22 cpc1-with2-6-0-cust34 sendmail[14816]: j4CKg4px014816: from=root, size=76, class=0, nrcpts=1, msgid=<200505122042.j4CKg4px014816@cpc1-with2-6-0-cust34.bagu.cable.ntl.com>, relay=root@localhost
May 12 21:42:22 cpc1-with2-6-0-cust34 sendmail[14817]: j4CKgMBp014817: from=<root@cpc1-with2-6-0-cust34.bagu.cable.ntl.com>, size=350, class=0, nrcpts=1, msgid=<200505122042.j4CKg4px014816@cpc1-with2-6-0-cust34.bagu.cable.ntl.com>, proto=ESMTP, daemon=MTA, relay=localhost.localdomain [127.0.0.1]
May 12 21:42:22 cpc1-with2-6-0-cust34 sendmail[14816]: j4CKg4px014816: to=benj@puremourning.co.uk, ctladdr=root (0/0), delay=00:00:18, xdelay=00:00:00, mailer=relay, pri=30076, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (j4CKgMBp014817 Message accepted for delivery)
May 12 21:42:26 cpc1-with2-6-0-cust34 sendmail[14819]: j4CKgMBp014817: to=<benj@puremourning.co.uk>, ctladdr=<root@cpc1-with2-6-0-cust34.bagu.cable.ntl.com> (0/0), delay=00:00:04, xdelay=00:00:04, mailer=relay, pri=120350, relay=smtp.ntlworld.com. [212.250.162.8], dsn=2.0.0, stat=Sent (Message received: 20050512204045.HCPK24880.aamta01-win....cable.ntl.com)
but the one from php (apache) just says:
Code:
May 12 21:48:17 cpc1-with2-6-0-cust34 sendmail[14837]: j4CKmHSc014837: from=apache, size=292, class=0, nrcpts=0, msgid=<200505122048.j4CKmHSc014837@cpc1-with2-6-0-cust34.bagu.cable.ntl.com>, relay=apache@localhost
i assume i need to give apache priviledges to send mail?