Re: [Exim] return-path user -- local vs. smtp

Pàgina inicial
Delete this message
Reply to this message
Autor: Alexander Sabourenkov
Data:  
A: exim-users
Assumpte: Re: [Exim] return-path user -- local vs. smtp
Hello.

> This isn't a kmail-specific problem, either -- I run a phpBB forums board
> where I'm running into the exact same issue. Short of hacking the phpBB
> code, it doesn't seem possible to use the local transport -- I have to use
> SMTP or the return-path gets munged. (again, because those apps don't
> understand they have to pass the "-f 'email@address'" parameter.)
>
> I can't imagine no one has run into this before -- is there any other way to
> get exim to not set the return-path according to login name short of using
> SMTP?


As long as anything gets sent via unmodified PHP mail() function you are unable
to put anything into the exim command line short of hardcoding it in the php.ini.

This is a known problem with php - in an effort to cut the potential security
hole, mail() supplies one argument to the program ("sendmail") that it spawns -
quoted last parameter (additional_parameters as it is called in the php manual)
thus rendering it unusable (under FreeBSD at least).

Thus exim gets one parameter - '-f add@???' instead of two - '-f', 'add@???'
(this is not to mention the setting in the php.ini, that defaults to 'sendmail -t -i').

Unfortunately nothing short of almost complete rewrite of mail() function implementation
can help this.

./lxnt