From: Magnus Bäck (no email)
Date: Sun Jan 02 2005 - 17:21:15 EST
On Sunday, January 02, 2005 at 23:22 CET,
wrote:
> I have postfix installed and running. I am now adding virus and spam
> scanning via amavisd-new.
>
> I have amavisd-new installed and it is listening on port 10024. I have
> installed as well spamassassin and clamd. All are working via the
> built in tests provided by all three systems. When I add to postfix's
> main.cf the following line and reload postfix I get "too many hops" in
> mail.log and then mail is not delivered.
The "too many hops" error message indicates a mailing loop.
> In main.cf I added:
> content_filter=smtp-amavis:[127.0.0.1]:10024
Okay.
[...]
> 127.0.0.1:10025 inet n - n - - smtpd
> -o content_filter=smtp-amavis:[127.0.0.1]:10024
The key point of the reinjection port is that the content filter must be
disabled. Because this is not done, Postfix will send the reinjected
messages back to amavisd-new again and again. Change to:
-o content_filter=
> -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=yes
> -o smtpd_error_sleep_time=0
> -o smtpd_soft_error_limit=1001
> -o smtpd_hard_error_limit=1000
> 127.0.0.1:10025 inet n - n - - smtpd
What's this line supposed to mean? You have already defined an smtpd
listener on localhost:10025. Remove.
-- Magnus Bäck
|
|
|