On Sat, 15 Oct 2005, Dick van der Kaaden wrote:

> What you think about a version of sendmail that has an option to use the Fr=
> om:=20
> header address as smtp mail from. Do you envision any problems with this?
>
> The thing is that the current behavior does not work well in the shared=20
> hosting environment that we operate for our customers. Most of the these=20
> sites use php and the php mail function. This function does not allow you t=
> o=20
> set the smtp mail from and it simply calls xmail's sendmail.=20
>
> Sendmail's default behavior is to use [EMAIL PROTECTED] as mail from. This is 
> n=
> ot=20
> very usefull! It will not allow our customers to receive bounces. Setting t=
> he=20
> domain in a virtualhost definition does not help either, since you cannot s=
> et=20
> the username. Asking our customers to create an [EMAIL PROTECTED] email=20
> address to receive bounces is not very user friendly. Forcing them to use a=
> n=20
> smtp mailer is also not user friendly.=20
>
> I looked at sendmail and worked out how a way to implement this.=20
>
> =2D All rcpt to's are stored in a new temporary file.=20
> =2D No output is sent to szmailfile before having read all email headers.=20
> =2D While reading thru the headers I set the szmailfrom to the address on t=
> he=20
> =46rom line.=20
> =2D If there is no From line or the From line contains an invalid address=20
> (according to AddressFromAtPtr) then nothing gets set and sendmail will use=
> =20
> szmailfrom as previously setup in SysGetUserAddress.=20
> =2D After reading the headers, dump the mail from and rcpt to lines.
>
> If you are interested in the code them let me know.

Dick, isn't it possible to do something on the PHP side?


- Davide


-
To unsubscribe from this list: send the line "unsubscribe xmail" in
the body of a message to [EMAIL PROTECTED]
For general help: send the line "help" in the body of a message to
[EMAIL PROTECTED]

Reply via email to