Am 06.07.2010 23:39, schrieb Muzammel Asghar:
> Hi Guys
> 
> Any idea/thoughts about below problem. ???
> 
> Thanks
> Muzi
> 
> On Fri, Jul 2, 2010 at 10:07 PM, Muzammel Asghar
> <[email protected]>wrote:
> 
>> Hi Guys
>>
>> I am using Policyd V2 , i set an policy regarding the restricted sender
>> based access, like only domains list sender allowed to send mail, its
>> working f9,
>>
>> From Mail --> *[email protected] ,allow only to send mail
>>                         *[email protected]  //      //             //    //
>>
>> but i am facing a very painful problem, like some php mail scripts uses
>> different From headers like [email protected] or [email protected] etc and
>> Policyd will accept the mail becasue when php mail script issue the mail
>> function , headers are changed and in maillog i see this  From:
>> [email protected]  to [email protected] etc but actual from address is
>> like [email protected] to [email protected], How can i control this that
>> sendmail not change the headers which sent by php mail scripts. like above
>> [email protected] is changed to [email protected] and myhost.com domain is
>> added in my policyd localdomains list, which is allowed to send mail from.
>>
>> Kindly help me please about this matter.
>>
>> Thanks.
>> Muzi

You have to understand the difference between From: header and the
envelope from. Don't think that is clear to you.

You can instruct your Apache to set a static envelope from when using
PHP (sendmail submission, rather than using SMTP):

php_admin_value sendmail_path "/usr/sbin/sendmail -t -i
[email protected]"

Alexander

_______________________________________________
Users mailing list
[email protected]
http://lists.policyd.org/mailman/listinfo/users

Reply via email to