From: Wietse Venema (no email)
Date: Tue Jul 01 2008 - 13:19:00 EDT
oxy:
> my apache vhost users are virtual and only got UID (10000...10500)
> when a vhost tries to send a mail via php mail() postfix says:
> fatal: no login name found for user ID
> is there any solution?
Wietse:
> Specify the sender address on the command line with:
> /usr/sbin/sendmail -f recipient...
oxy:
> i think it's not possible..
> the mails are going out from ~500 vhosts with different UID-s with php
> mail(),
> different CMS systems..
> how can i use this command to override _every_ ?
> (sorry if i misunderstand you)
Wietse:
> To send email you MUST provide a valid sender email address.
oxy:
> so is there any way to rewrite every ~500 uid-s to for example
> ?
Wietse Venema ?rta:
> To specify the "/usr/sbin/sendmail -f ...",
> use php.ini, or use ini_set(parametername, parametervalue).
oxy:
> thank you, it seems like a good idea :)
> can you tell me what parameters should i add to sendmail?
> "/usr/sbin/sendmail -f "
> was not enough
In php.ini:
sendmail_path = /usr/sbin/sendmail -t -i -f
According to PHP documentation, the parameter may also be set via
httpd.conf.
http://us3.php.net/manual/en/mail.configuration.php
http://us3.php.net/manual/en/ini.php
Wietse
|
|
|