Postfix + AMaViS -> clamav

Postfix, QMail, Sendmail, Dovecot, Cyrus, Courier, Anti-Spam
perlitz
Posts: 202
Joined: 2003-11-01 12:25

Postfix + AMaViS -> clamav

Post by perlitz » 2005-12-04 14:51

Ich versuche wie folgt clamav in eine bestehende Postfixkonfiguration einzubinden.

Postfix läuft fehlerfrei. Nun möchte ich Postfix überreden Einkommende E-Mails an Port 10024 (AMaViS) zu schicken, welcher nach erfolgtem Virusscan die E-Mail an Port 10025 Postfix zurückschicken soll, wo die E-Mail dann "ausgeliefert" wird.

Für die Verbindung zu AMaViS habe ich folgendes in die master.cf eingefügt

Code: Select all

smpt-amavis      unix  -       -       n       -       2       smtp
-o smtp_data_done_timeout=1200
-o smtp_send_xforward_command=yes
-o disable_dns_lookups=yes
Und für die Verbindung zurück (also von AMaViS Richtung Postfix)

Code: Select all

127.0.0.1:10025      inet  n       -       n       -       -       smtpd
-o content_filter=
-o local_recipient_maps=
-o relay_recipient_maps=
-o smtpd_restriction_classes=
-o smtpd_client_restrictions=
-o smtpd_helo_restritcions=
-o smtpd_sender_restrictions=
-o smptd_recipient_restrictions=permit_mynetworks,reject
-o mynetworks=127.0.0.0/8
-o strict_rfc821_envelopes=yes
-o smtpd_error_sleep_time=0
-o smtpd_soft_error_limit=1001
-o smtpd_hard_error_limit=1000
-o smtpd_client_connection_count_limit=0
-o smtpd_client_connection_rate_limit=0
-o receive_override_options=no_header_body_checks
Jedoch genau in dem zweiten Teil habe ich scheints nen Denkfehler, denn ein einfaches

Code: Select all

telnet localhost 10025
Trying 127.0.0.1...
telnet: Unable to connect to remote host: Connection refused
klappt nicht. Ich schau nun schon ne Stunde auf die Config, und sehe den Fehler nicht :( Hat jemand ne Idee?

Roger Wilco
Administrator
Administrator
Posts: 6001
Joined: 2004-05-23 12:53

Re: Postfix + AMaViS -> clamav

Post by Roger Wilco » 2005-12-05 03:22

Perlitz wrote:Hat jemand ne Idee?
man 5 master wrote:SYNTAX
The general format of the master.cf file is as follows:

o Each logical line defines a single Postfix service. Each ser-
vice is identified by its name and type as described below.
When multiple lines specify the same service name and type, only
the last one is remembered. Otherwise, the order of master.cf
service definitions does not matter.

o Empty lines and whitespace-only lines are ignored, as are lines
whose first non-whitespace character is a `#'.

o A logical line starts with non-whitespace text. A line that
starts with whitespace continues a logical line.