Debian: Postfix mit Spamassasin und Autoresponder

Cool Master

Fleet Admiral
Registriert
Dez. 2005
Beiträge
37.514
Moin,

ich habe ein kleines Problem. Ich möchte einen Zusätzlichen Content Filter benutzen, damit ich neben Spamassasin auch Autorepsonder nutzen kann.

Meine master.cf sieht aktuell so aus:

Code:
smtp      inet  n       -       -       -       -       smtpd
  -o content_filter=autoresponder:dummy
  -o content_filter=spamassassin

Code:
spamassassin unix -     n       n       -       -       pipe
  user=spamd argv=/usr/bin/spamc -f -e /usr/sbin/sendmail -oi -f ${sender} ${recipient}

autoresponder unix - n n - - pipe
  flags=Fq user=autoresponse argv=/usr/local/sbin/autoresponse -s ${sender} -r ${recipient} -S ${sasl_username} -C ${client_address}

Das Problem welches ich nun habe ist, dass jeweils nur ein content filter aktiv ist. Also entweder SA oder AR. In dem Code oben ist SA aktiv. Ändere ich die Reihenfolge ist SA aus und AR ist aktiv.

Daher meine Frage wie muss ich vorgehen, damit ich beide nutzen kann?

Ich habe schon ein paar sachen dazu gelesen nennt sich wohl "chaining", aber bis jetzt kein wirklich gutes Tutorial oä gefunden nur "man muss es so machen".

Restliche System:

Postfix, Postfixadmin, Dovecot, MySQL
 
Also ist schon paar Jährchen her das ich unseren Postfix aufgesetzt habe, aber in der main.cf hab ich noch vermerkt:

###############################################
#++++++++++++++++++++ANTI-SPAM++++++++++++++++++#
###############################################


content_filter = smtp-amavis:[127.0.0.1]:10024
receive_override_options = no_address_mappings


###############################################
#++++++++++++++++++AUTO-RESPONSE++++++++++++++++#
###############################################


autoresponder_destination_recipient_limit = 1

Deine master.cf ist ok. Aber wenn du nichts in die main.cf geschreiben hast, sollte du noch den content_filter hinzufügen.

Als Bettlektüre:
http://www.postfix.org/FILTER_README.html
Advanced content filter: requesting that all mail is filtered


To enable the advanced content filter method for all mail, specify in main.cf:


/etc/postfix/main.cf:
content_filter = scan:localhost:10025
receive_override_options = no_address_mappings

den filter musst du natürlich anpassen.

Benutzer auch bitte original_recipient
http://nefaria.com/2009/06/autoresponse-163-bugfix-released/
​Thanks for your input. This is not so much a function of the script as it is the manner in which the script is called. For example, the script is only using the arguments passed to it (configured in the master.cf file). My instructions say that the following lines should appear in the master.cf:




autoresponder unix - n n - - pipe
flags=Fq user=autoresponse argv=/usr/local/sbin/autoresponse -s ${sender} -r ${recipient} -S ${sasl_username} -C ${client_address}


However, to apply your advice, all one would have to do is modify:


-r ${recipient}


To:


-r ${original_recipient}
Ergänzung ()

Ok, hab grad mitbekommen bei amavis läufts wohl etwas anders als bei spamassasin. Vergiss das mal mit dem content_filter in der main.cf.
 
Amavisd-New ist, nach meinem Kenntnisstand, dem regulären Standalone - Spamassassin eh vorzuziehen. Amavisd bringt seine eigene Implementierung von Spamassassin mit und ermöglicht noch komplexe weiter Filter.

Mein Tip: Setz dir ne kleine VM auf, die du auf Basis dieses Howtos konfigurierst, inklusive ISPConfig. Die daraus resultierenden Config-Files enthalten unter anderem auch die Einstellungen für Auto-Responder und sowie Spam- und Virenfilter.
 
Zurück
Oben