Emanuel:
> Is it possible to create different files with different IP addresses so 
> that when sending an email they are sent from different round maps?

You would use master.cf entries with different smtp_bind_address or
smtp_bind_address6 settings, and select one with a filter command.

With master.cf entries

/etc/postfix/master.cf:
    relay-1     unix  -       -       n       -       -       smtp
        -o smtp_bind_address=1.2.3.1
    relay-2     unix  -       -       n       -       -       smtp
        -o smtp_bind_address=1.2.3.2
    relay-3     unix  -       -       n       -       -       smtp
        -o smtp_bind_address=1.2.3.3
    relay-4     unix  -       -       n       -       -       smtp
        -o smtp_bind_address=1.2.3.4

Then you need a nested table which requires a restriction class.

/etc/postfix/main.cf:
    smtpd_client_restrictions = check_client_access
        inline:{
           { 200.58.x.x = class1 }
           { 200.58.x.y = class2 }
        }

    restriction_classes = class1, class2
    class1 = check_client_access randmap:{filter relay-1:, filter relay-2:}
    class2 = check_client_access randmap:{filter relay-3:, filter relay-4:}

Instead of inline:{}, a hash or pcre table would work too. 

        Wietse

Reply via email to