Re: Multiple instances of smtp and smtpd

From: Adi Linden (no email)
Date: Wed Nov 02 2005 - 17:18:30 EST

  • Next message: Preston Podaril: "SMTP Auth and Outlook Problems"

    > > 'telnet 172.28.1.51 25' and 'telnet 172.28.1.41 25', log shows the
    > > respective instance handling the mail. Just realized that things are going
    > > haywire because all mail is passed through amavisd. No matter how it
    > > received mail, it sends it to the first instance. I wonder how to fix
    > > that....

    Got it working. amavisd supports something they call policy banks. So this
    is what I wanted:

        postfix -> amavisd 127.0.0.1:10041
        amavisd -> postfix 127.0.0.1:10042

        postfix-relay -> amavisd 127.0.0.1:10051
        amavisd -> postfix-relay 127.0.0.1:10052

    This is what I placed in amavisd.conf

        # Policy banks for multiple postfix instances
        $inet_socket_port = [10041, 10051]; # Ports we are listening on

        $interface_policy{'10041'} = 'POSTFIX'; # postfix
        $interface_policy{'10051'} = 'POSTFIX-RELAY'; # postfix-relay

        $policy_bank{'POSTFIX'} = {
            notify_method => 'smtp:[127.0.0.1]:10042',
            forward_method => 'smtp:[127.0.0.1]:10042',
        };

        $policy_bank{'POSTFIX-RELAY'} = {
            notify_method => 'smtp:[127.0.0.1]:10052',
            forward_method => 'smtp:[127.0.0.1]:10052',
        };

    Adi


  • Next message: Preston Podaril: "SMTP Auth and Outlook Problems"





    Hosted Email Solutions

    Invaluement Anti-Spam DNSBLs



    Powered By FreeBSD   Powered By FreeBSD