OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
Re: Specifying 'check_sender_access' during 'smtpd_recipient_restrictions' filters recipient as well?

From: Brian Evans - Postfix List (grknightscent-team.com)
Date: Thu Oct 01 2009 - 12:38:37 CDT


URCentral Gmail wrote:
> On Thu, Oct 1, 2009 at 7:26 PM, Brian Evans - Postfix List
> <grknightscent-team.com> wrote:
>
>
>>> Correcting myself; there are two hash databases specified on the live
>>> server, like this;
>>>
>>> check_sender_access
>>> hash:/etc/postfix/chk_sender_local
>>> hash:/etc/postfix/chk_sender_access
>>>
>> If this was specified in recipient restrictions, it is equivalent to:
>> check_sender_access hash:/etc/postfix/chk_sender_local
>> check_recipient_access hash:/etc/postfix/chk_sender_access
>>
>> This refers to the depreciated syntax of bare map in a restriction class.
>>
>> Postfix does not allow check_(*)_access to list multiple tables.
>> The restriction *must* be repeated each time or an assumption takes
>> place based on the past.
>>
>
> Ahh, that makes sense. So given the above example;
>
> check_sender_access hash:/etc/postfix/chk_sender_local
> check_sender_access hash:/etc/postfix/chk_sender_access
>
> would work?
>

Indeed.