[Postfixbuch-users] Amavis zentralisieren

Patrick Ben Koetter p at state-of-mind.de
Sa Jul 28 19:17:08 CEST 2007


* Roland M. Kruggel <rk.liste at bbf7.de>:
> Hallo Liste
> 
> ich habe postfix und amavis am laufen. momentan ist es also so, dass 
> postfix die mails an localhost:10024 übergibt und amavis sie über 
> localhost:10025 wieder zurück an postfix schickt. (Wenn ich das 
> richjtig verstanden habe).
> 
> So weit so gut. Da ich jedoch mehrerer Mailserver habe, bzw. betreue 
> möchte ich den amavis diesnst zentralisieren. Ich kann doch jetzt die 
> mails von postfix an service.bbf7.de:10024, wo sich dann amavis 
> befindet, schicken. Amavis schickt die mails dann wieder zurück an 
> den aufrufenden postfix server.
> 
> /etc/postfix/master.cf
> postfix_server.bbf7.de:10025 inet n  -   n   -   -   smtpd
> 
> Habe ich das so richtig verstanden?
> 
> Aber was ist mit dem zweiten, dritten und allen weteren 
> postfix-servern? Die sollen ja auch den amavis nutzen. Brauch ich 
> dann für jeden Mail-Server eine eigene Amavis instanz mit 
> unterschiedlichem Port? (Eintrag in der master.cf?)


Jedem Postfix einen dedizierten delivery und reinjection port geben, die nur 1
port nummer auseinander sind und dann amavisd-new so konfigurieren, dass er
auf derselben IP - nur einen Port höher als eingehend - zurückgibt:

Wie es geht, habe ich hier beschrieben:


$forward_method
    Controls how scanned emails or notifications will be forwared to the next
    destination (or back into the MTA that submitted the email to amavisd).

    Default:
    $forward_method = 'smtp:[127.0.0.1]:10025';

    Configuring a $forward_method may require up to three options - service,
    target, port. All options are given as one argument, but separated by a
    single colon. The exact number of options depends on the service that is
    used.

    The following services are available to amavisd:

    smtp
        Uses SMTP to forward the message to the next destination. Configuring
        the destination requires two arguments - IP address or hostname and
        port.

        IP address or hostname
        Any valid IPv4/IPv6 address or hostname may be specified. If an
        asterisk * is given as wildcard, the amavisd SMTP client will use the
        IP address obtained from the MTA that had originally handed the
        message over to amavisd as target address. This feature is useful in
        scenarios where amavisd serves multiple MTAs with different addresses
        at the same time.
        
        port
        Any valid port number may be specified. If an asterisk * is given as
        wildcard, the amavisd SMTP client will use a port number one number
        higher than the one obtained from the MTA that had originally handed
        the message over to amavisd. This feature is useful in scenarios where
        amavisd serves multiple MTAs with different addresses at the same
        time.

        Example:
        $forward_method = 'smtp:*:*';

    ...

> Sind die definierten rules etc. in amavis dann für jede instanz 
> gültig?

Ja. Du kannst das umgehen, indem Du in amavisd-new $policy_banks einrichtest.

p at rick

-- 
Postfix - Einrichtung, Betrieb und Wartung
<http://www.postfix-buch.com>
saslfinger (debugging SMTP AUTH):
<http://postfix.state-of-mind.de/patrick.koetter/saslfinger/>



Mehr Informationen über die Mailingliste Postfixbuch-users