* Wire James <[email protected]>:
> The entries that altermime added in the main.cf are;
> #
> content_filter=altermimepro
> receive_override_options=no_address_mappings
> #
> Selected entries in the master.cf are as follows;
These are used, unless explicitly overridden
> smtp inet n - n - - smtpd
> ### KASPERSKY ANTI-SPAM BEGIN ###
> -o content_filter=kas3scan:127.0.0.1:9026
> ### KASPERSKY ANTI-SPAM END ###
This makes mail coming in via SMTP go to "kas3scan:127.0.0.1:9026"
> 127.0.0.1:9026 inet n n n - 20 spawn
> user=mailflt3 argv=/usr/local/ap-mailfilter3/bin/kas-pipe
... which is defined here
> 127.0.0.1:9025 inet n - n - 25 smtpd
> -o smtpd_authorized_xforward_hosts=127.0.0.0/8
> -o local_recipient_maps=
> -o relay_recipient_maps=
> -o smtpd_restriction_classes=
> -o smtpd_client_restrictions=
> -o smtpd_helo_restrictions=
> -o smtpd_sender_restrictions=
> -o smtpd_recipient_restrictions=permit_mynetworks,reject
> -o mynetworks=127.0.0.0/8
> -o strict_rfc821_envelopes=no
> -o smtpd_error_sleep_time=0
> -o smtpd_soft_error_limit=1001
> -o smtpd_hard_error_limit=1000
> -o receive_override_options=no_address_mappings
And I guess that's what Kaspersky talks to AFTER scanning
I think you could add
-o content_filter=altermimepro:dummy
> altermimepro unix - n n - 10 pipe user=altermimepro
> argv=/usr/local/altermimepro/altermimepro -c
> /usr/local/altermimepro/altermimepro.conf ${sender} ${recipient}
> localhost:10125 inet n - n - - smtpd
> -o content_filter=
> -o
> receive_override_options=no_unknown_recipient_checks,no_header_body_checks
Altermime seems to reinject into localhost:10125 when it's done
--
Ralf Hildebrandt
Geschäftsbereich IT | Abteilung Netzwerk
Charité - Universitätsmedizin Berlin
Campus Benjamin Franklin
Hindenburgdamm 30 | D-12203 Berlin
Tel. +49 30 450 570 155 | Fax: +49 30 450 570 962
[email protected] | http://www.charite.de