ONJava.com -- The Independent Source for Enterprise Java
oreilly.comSafari Books Online.Conferences.

advertisement

AddThis Social Bookmark Button
Article:
  Configuring sendmail on Jaguar
Subject:   sendmail fails from "www" user
Date:   2003-03-31 11:37:15
From:   dmknuth
Hi,


Thanks for providing this article. It has been a great help.


I have sendmail properly working from the command line when logged in as the administrator of my server (Xserve, 10.2.3), but it fails when my CGI invokes it under the www user. The mail.log uses a different relay host under www than under admin. Why are these different and how can I correct this?


I need to be able to send e-mail from a web form and sendmail invoked from a shell script seems to be the best option. Are there better ones?


Here are are excertps from successful and failed sendmail invocations. The first is from a web form invocation and the second is from the command line (which works).


The entries below correspond to e-mail that does NOT get sent.
Mar 27 16:11:22 inter-stitial sendmail[856]: h2RLBM89000856: from=www, size=135, class=0, nrcpts=1, msgid=<200303272111.h2RLBM89000856@inter-stitial.com>, relay=localhost
Mar 27 16:11:22 inter-stitial sendmail[857]: h2RLBMM9000857: from=<www@inter-stitial.com>, size=351, class=0, nrcpts=1, msgid=<200303272111.h2RLBM89000856@inter-stitial.com>, proto=ESMTP, daemon=MTA, relay=localhost [127.0.0.1]
Mar 27 16:11:22 inter-stitial sendmail[856]: h2RLBM89000856: to='dmknuth@attglobal.net' , ctladdr=www (70/70), delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=30135, relay=localhost [127.0.0.1], dsn=2.0.0, stat=Sent (h2RLBMM9000857 Message accepted for delivery)
Mar 27 16:11:23 inter-stitial sendmail[859]: h2RLBMM9000857: to=<'dmknuth@attglobal.net'>, ctladdr=<www@inter-stitial.com> (70/70), delay=00:00:01, xdelay=00:00:01, mailer=esmtp, pri=30319, relay=attglobal.net', dsn=5.1.2, stat=Host unknown (Name server: attglobal.net': host not found)
Mar 27 16:11:23 inter-stitial sendmail[859]: h2RLBMM9000857: h2RLBNM9000859: DSN: Host unknown (Name server: attglobal.net': host not found)
Mar 27 16:11:23 inter-stitial sendmail[859]: h2RLBNM9000859: to=<www@inter-stitial.com>, delay=00:00:00, xdelay=00:00:00, mailer=local, pri=31375, dsn=2.0.0, stat=Sent


The entries below correspond to e-mail that does get sent properly.
Mar 27 16:11:48 inter-stitial sendmail[864]: h2RLBm86000864: from=admin, size=263, class=0, nrcpts=1, msgid=<200303272111.h2RLBm86000864@inter-stitial.com>, relay=localhost
Mar 27 16:11:48 inter-stitial sendmail[865]: h2RLBmM9000865: from=<admin@inter-stitial.com>, size=480, class=0, nrcpts=1, msgid=<200303272111.h2RLBm86000864@inter-stitial.com>, proto=ESMTP, daemon=MTA, relay=localhost [127.0.0.1]
Mar 27 16:11:48 inter-stitial sendmail[864]: h2RLBm86000864: to=dmknuth@attglobal.net, ctladdr=admin (501/20), delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=30263, relay=localhost [127.0.0.1], dsn=2.0.0, stat=Sent (h2RLBmM9000865 Message accepted for delivery)
Mar 27 16:11:49 inter-stitial sendmail[867]: h2RLBmM9000865: to=<dmknuth@attglobal.net>, ctladdr=<admin@inter-stitial.com> (501/20), delay=00:00:01, xdelay=00:00:01, mailer=esmtp, pri=30317, relay=mx1.prserv.net. [32.97.166.40], dsn=2.0.0, stat=Sent (ok ; id=2003032721115210102id4qje)



1 to 1 of 1
  1. sendmail fails from "www" user
    2003-06-05 13:16:38  anonymous2 [View]

1 to 1 of 1