Re: matching return-path domain with virtual hosts

2010-12-12 Thread Wietse Venema
R.A. Imhoff: > This is interesting: in testing this on the server in question, > the "-f" does nothing (with a lowercase -f). > > In an older sendmail man page I just came across it says "... -f > can only be used by trusted users (normally root, daemon, and > network) or if the person you are try

Re: matching return-path domain with virtual hosts

2010-12-12 Thread R.A. Imhoff
This is interesting: in testing this on the server in question, the "-f" does nothing (with a lowercase -f). In an older sendmail man page I just came across it says "... -f can only be used by trusted users (normally root, daemon, and network) or if the person you are trying to become is the s

Re: matching return-path domain with virtual hosts

2010-12-12 Thread Wietse Venema
R.A. Imhoff: > In fact what finally does set the Return-path is to use the "-r" parameter in > the 5th place: > > $result = mail($to, $subject, $message, $headers, "-r m...@example.com") > > the "-f" sets the "From:", but that was already working by setting it in the > $headers or in the ph

Re: matching return-path domain with virtual hosts

2010-12-12 Thread R.A. Imhoff
In fact what finally does set the Return-path is to use the "-r" parameter in the 5th place: $result = mail($to, $subject, $message, $headers, "-r m...@example.com") the "-f" sets the "From:", but that was already working by setting it in the $headers or in the php.ini What's odd is that p

Re: matching return-path domain with virtual hosts

2010-12-12 Thread mouss
Le 12/12/2010 16:24, R.A. Imhoff a écrit : Thank you for your suggestions! I did set the "From: " correctly, both in the php.ini and in the php code that calls mail(), but this only sets the "From:" and not the "Return-path:" I agree that the message-id is not that important, but it would be ni

Re: matching return-path domain with virtual hosts

2010-12-12 Thread Wietse Venema
R.A. Imhoff: > Thank you for your suggestions! > > I did set the "From: " correctly, both in the php.ini and in the > php code that calls mail(), but this only sets the "From:" and > not the "Return-path:" I agree that the message-id is not that > important, but it would be nice if one could have

Re: matching return-path domain with virtual hosts

2010-12-12 Thread Wietse Venema
R.A. Imhoff: > I have this in php.ini (the -r parameter is supposed to set the > return-path, but seems to have no effect): > > sendmail_path = "sendmail -t -i -f m...@mydomain.com -r m...@mydomain.com" If PHP's sendmail_path ignores the ``sendmail -f sen...@senderdomain'' option, then you need to

Re: matching return-path domain with virtual hosts

2010-12-12 Thread R.A. Imhoff
Thank you for your suggestions! I did set the "From: " correctly, both in the php.ini and in the php code that calls mail(), but this only sets the "From:" and not the "Return-path:" I agree that the message-id is not that important, but it would be nice if one could have the "Return-path:" refl