On 5/3/2016 12:38 PM, John Allen wrote:
> Is it better to add restrictions/tests to the appropriate section or
> is it better to place then all under one, for example everything to
> do with sender (check_sender_access...) with
> smtpd_sender_restrictions. Similar setup for all the other sections.

There is no one right way.

> 
> I only ask because in reading various how-to, etc., I find there
> seems to be two schools of thought
>     1) lump just about everything under one restriction "class"
> (usually smtpd_recipient_...).
>     2) place the test with the appropriate class.
> I understand that with "smtpd_delay_reject=yes" there isn't much
> difference, does breaking them up have any detrimental effects?

For most common rules, it's probably easier to put everything under
one section.  Most people feel this gives them a good mental picture
of what's happening, and makes whitelisting straightforward.

Some folks visualize it better splitting it up.  That's OK too.
More care must be taken with whitelisting when you use multiple
sections.  It's possible to do more complex rules when splitting up
the sections, but this is seldom a requirement.


> 
> ========
> 
> Just to make sure I am think correctly

Close enough.




  -- Noel Jones

Reply via email to