[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[cobalt-users] PHP/sending mail from address



i've been struggling with one of my scripts when sending email out from a
php script.
the problem is that the From address always comes out as httpd whereas i
want to specify a From address.
i figured out that i can use the "-f" switch when sending the mail like this
but now i'm getting the following log error:

Sep 18 13:34:18 ns sendmail[18136]: h8ICYI418136: Authentication-Warning:
ns.mydomain.com: httpd set sender to address@xxxxxxxxxxxx using -f

and the message doesn't seem to be set.
it seems that i can configure sendmail to allow trusted users to use the
"-f" switch
(http://list.cobalt.com/pipermail/cobalt-security/2001-September/003461.html
). the article refers to /etc/mail/sendmail.ct which doesn't exist on my
RaQ4. can i just create it and sendmail will read it? can i just add an
entry to /etc/mail/trusted-users? would i have to add 'httpd' for this to
work? i'm nervous about this one as it seems like a security risk (or at
least opens the way for anyone to run a PHP script on my box to send out
spam).

has anyone got a workround for this?

cheers

andy