Postfix with Spamassassin and Autoresponder

Discussion in 'Server Operation' started by cecono, Aug 2, 2011.

  1. cecono

    cecono New Member

    Hello
    I have already Spamassassin installed on my system (FEDORA 12) and it works fine.
    All the marked as spam mails goes to a generic mail account and they does not deliver to the recipient.

    So I tried to install Autoresponder system following the instructions that i found at nefaria.com.
    After that Autoresponder works fine and the spamassassin stopped work.

    Can you help me in order these two tools works together ?

    I also include the changes that i made.

    /etc/postfix/Master.cf file containing the following lines :

    smtp inet n – n – – smtpd -o content_filter=autoresponder:dummy
    smtp inet n – n – – smtpd -o content_filter=spamfilter:dummy

    #
    # Other external delivery methods.
    #
    # Autoresponder
    #autoresponder unix – n n – - pipe flags=Fq user=autoresponse argv=/usr/local/sbin/autoresponse -s ${sender} -r${recipient} -S ${sasl_username} -C ${client_address}

    # Spamassassin
    spamfilter unix – n n – - pipe
    flags=Rq user=spamfilter argv=/usr/local/bin/spamfilter -f ${sender} — ${recipient}


    Thanks in advance for your help

    Costas
     
  2. falko

    falko Super Moderator ISPConfig Developer

  3. cecono

    cecono New Member

    Falco thanks for your response.

    In my case the chain will look like this :
    Postfix > SpamAssassin > Postfix > Autoresponder > Postfix > User.

    Additionally
    At Spamassassin configuration file i have to declare Listening and Forward Ports. Where is this file ? (I mean the path and the file name - i suppose spamd.conf).

    At Autoresponder configuration file i have to declare Listening and Forward Ports. I think i know where to find it !!!.

    And finally at postfix configuration files (main and master) the rest thinks.
    At master.cf do i have to replace these two lines ?
    smtp inet n – n – – smtpd -o content_filter=autoresponder:dummy
    smtp inet n – n – – smtpd -o content_filter=spamfilter:dummy

    If you have any suggestions i will be very glad to hear them.

    Thanks

    Costas
     
  4. www

    www New Member

    I have the same question. I was hoping I could add two -o content_filter lines below smtp, but apparently not.

    This doesn't work because only the second filter is invoked:

    smtp inet n - n - - smtpd
    -o content_filter=spamfilter:dummy
    -o content_filter=autoresponder:dummy
     
  5. www

    www New Member

    According to the postfix-users mailing list, the best way is use dovecot-sieve.
     

Share This Page