On Thu, May 19, 2005 at 02:52:23PM -0500, Gerald V. Livingston II wrote:
> On Thu, 19 May 2005 13:45:27 -0500 (Central Standard Time) Gerald V. 
> Livingston II wrote:
> > In Postfix, if I want to reject based on certain dnsbl hits prior to
> > injecting into Amavis I do it in master.cf, right? Like this:
> > 
> > smtp      inet  n       -       -       -       -       smtpd
> >         -o receive_override_options=no_address_mappings
> >         -o smtpd_sender_restrictions=reject_unknown_sender_domain
> >         -o smtpd_client_restrictions=permit_mynetworks,
> >                                      reject_rbl_client.....
> 
> [SNIP]
> 
> > 127.0.0.1:10025 inet n - n - - smtpd
> >         -o smtpd_recipient_restrictions=permit_mynetworks,reject
> > 
> > Gerald
> 
> Answer = no.
> 
> It belongs in main.cf because the amavis reinjection on port 10025 turns the
> checks back off so they don't get run again -- and it should be
> recipient_restrictions rather than client_restrictions.

  Actually, you *can* do it more or less as you wrote above, but it
would be more trouble to set it up correctly.  In most cases, it's
better done in main.cf, but the restrictions lists could in principle
be chosen in master.cf if more convenient for some reason.  I'm
actually doing that in one postfix config I just set up, for reasons I
won't go into.

  If you (or anybody else) does want to, I suggest defining restriction
classes in main.cf, so that you can simply refer to them with one line
in master.cf:

smtp      inet  n       -       -       -       -       smtpd
         -o receive_override_options=no_address_mappings
         -o smtpd_recipient_restrictions=smtpd_incoming_mail_restrictions

  Your earlier config might have been breaking due to trying to use
multi-line parameter values in master.cf, which has different syntax
than main.cf.
  -- Clifton

-- 
          Clifton Royston  --  [EMAIL PROTECTED] 
         Tiki Technologies Lead Programmer/Software Architect
"I'm gonna tell my son to grow up pretty as the grass is green
And whip-smart as the English Channel's wide..."
                                            -- 'Whip-Smart', Liz Phair


-------------------------------------------------------
This SF.Net email is sponsored by Oracle Space Sweepstakes
Want to be the first software developer in space?
Enter now for the Oracle Space Sweepstakes!
http://ads.osdn.com/?ad_id=7412&alloc_id=16344&op=click
_______________________________________________
AMaViS-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/amavis-user
AMaViS-FAQ:http://www.amavis.org/amavis-faq.php3
AMaViS-HowTos:http://www.amavis.org/howto/

Reply via email to