|
Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com |
Re: Envelope-from headers for SPF
From: mouss (usebsd
free.fr)
Date: Wed May 03 2006 - 16:44:25 CDT
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Victor Duchovni wrote:
> On Tue, May 02, 2006 at 11:54:28AM -0500, Noel Jones wrote:
>
>
>> add a custom header:
>> # main.cf
>> smtpd_data_restrictions =
>> check_sender_access regexp:/etc/postfix/add_x_envelope_from
>>
>> # add_x_envelope_from
>> /^$/ PREPEND X-Envelope-From: <>
>> /^(.*)$/ PREPEND X-Envelope-From: <$1>
>>
>
> The first expression should have been (else it is redundant):
>
> /^<>$/ PREPEND X-Envelope-From: <>
>
> the second one is correct. This assumes the default:
>
> smtpd_null_access_lookup_key = <>
>
>
why ever care? SA (and other software) should be able to read addresses
with or without <>. so just
/(.)/ PREPEND X-Envelope-From: $1
should handle both empty and non empty senders.
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]