Ville Walveranta:
> On Sat, Nov 8, 2008 at 3:29 AM, mouss <[EMAIL PROTECTED]> wrote:
> > You can create multiple smtpd's in master.cf (but comment out the "default"
> > one or use inte_interfaces to limit it)
> >
> > 192.168.1.1     ...   smtpd
> >        -o smtpd_client_restrictions=${smtpd1_client_restrictions}
> >        -o smtpd_recipient_restrictions=${smtpd1_recipient_restrictions}
> >        -o foobar=${smtpd1_foobar}
> >
> > 192.168.1.2     ...   smtpd
> >        -o smtpd_client_restrictions=${smtpd2_client_restrictions}
> >        -o smtpd_recipient_restrictions=${smtpd2_recipient_restrictions}
> >        -o foobar=${smtpd2_foobar}
> >
> > and define smtpd1_* and smtpd2_* in main.cf.
> 
> All clear.. except for how do I define stmpd1_* and smtpd2_* params in
> main.cf

/etc/postfix/main.cf:
    smtpd2_client_restrictions = foo bar baz
    smtpd2_recipient_restrictions = aap noot mies

One limitation is that the postconf command won't list the
smtpd2_mumble parameters.

If you leave the default smtpd entry enabled in master.cf, you
need to configure inet_interfaces in main.cf, otherwise it will
also listen on 192.168.1.1, 192.168.1.2, etc.

/etc/postfix/main.cf:
    inet_interfaces = 127.0.0.1 192.168.1.3

Instead of 192.168.1.3 specify the primary machine network address.

        Wietse

Reply via email to