db2admin has asked for the wisdom of the Perl Monks concerning the following question:
The question I have is how can I configure my script to use a user other than "nobody"?
When I send an e-mail using MIME::LITE or Mail::Mailer, my maillog shows the two e-mail addresses that were sent, one to AOL user and one to a Yahoo user. The AOL e-mail never gets to its destination but I never see an error in my spooler. The Yahoo e-mail gets to the user successfully.
Here is the snippet from my Perl program:Oct 29 21:43:37 xxxxxx sendmail[24352]: i9U2hb924350: to=someuser@aol. +com, ctladdr=nobody (99/99), delay=00:00:00, xdelay=00:00:00, mailer= +relay, pri=98308, relay=mail.mx2.propagation.net. [63.249.128.130], d +sn=2.0.0, stat=Sent (Ok: queued as 8DDA7AFBC8) Oct 29 21:43:48 xxxxxx sendmail[24352]: i9U2hb924350: to=someuser@yaho +o.com, ctladdr=nobody (99/99), delay=00:00:11, xdelay=00:00:11, maile +r=esmtp, pri=98308, relay=mx3.mail.yahoo.com. [64.156.215.7], dsn=2.0 +.0, stat=Sent (ok dirdel 2/0)
FYI, sendmail from the command line to an AOL user does work when I am logged on as root or another user.my $msg = MIME::Lite->new( To => 'someuser@aol.com', From => 'admin@server.com', Subject =>'some subject', Type =>'multipart/related' ); $msg->attach(Type => 'text/html', Data => qq{ (html goes here) } ); $msg->send();
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Using "nobody" to send e-mail
by tachyon (Chancellor) on Oct 30, 2004 at 05:22 UTC | |
by ikegami (Patriarch) on Oct 30, 2004 at 19:40 UTC | |
|
Re: Using "nobody" to send e-mail
by atcroft (Abbot) on Oct 30, 2004 at 05:02 UTC |