[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: default MTA for sarge



On Wed, Jul 16, 2003 at 09:20:16PM +1000, Martijn van Oosterhout wrote:

> I see sendmail configuration files that are ten lines long and I can't wrap
> my brain around them. OTOH, when I look at an Exim configuration I can see
> the steps. After global parameters, looks if the domain is in local_domains,
> if so see list A else list B. Each list is traversed in order until one
> matches and a delivery happens. Postfix seems the other way round; there is a
> setup somewhere that you tweak using options in your configuration.

postfix does things in the EXACT order you specify.  first match wins.  always.

funnily enough, this is something really basic about postfix but lots of people
miss it. it comes up on the list quite often, usually in questions about
anti-spam rulesets.

it is useful, e.g., when you want to have multiple aliases files or
local/virtual recipient tables.  

or if you want to use an rbl but want to make sure that certain IP addresses are
never blocked, you can do something like:

smtpd_recipient_restrictions = ... 
                               permit_mynetworks,
                               reject_unauth_destination,
                               ...
                               ...
                               check_client_access hash:/etc/postfix/rbl_override,
                               reject_rbl_client relays.osirusoft.com,
                               ...
                               ...


> Does any one have a link to a *complicated* postfix setup; something that
> will cause the penny to drop?

Ralf Hildebrandt has some excellent docs and howtos and sample configurations
(incl. a tar.gz of his /etc/postfix directory which also contains a useful
Makefile to automate everything...i should send him a copy of my Makefile in
case there's anything he can use in it).  anyway, his site is at:

http://sbserv.stahl.bau.tu-bs.de/~hildeb/postfix/


craig




Reply to: