LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Debian (https://www.linuxquestions.org/questions/debian-26/)
-   -   Postfix question (https://www.linuxquestions.org/questions/debian-26/postfix-question-386948/)

ncp 11-27-2005 09:08 AM

Postfix question
 
I have setup postfix with amavis an spamassian.

I think every thing work, cause when i look at my mail.log file there is no errors.
Just to be sure, this in the last entry in my logfil.

Nov 27 14:57:34 iBox amavis[3578]: (03578-02) Passed, <forum@linuxquestions.org> -> <spam@eoe.dk>, Message-ID: <200511271456.jAREugtY031000@web1.linuxquestions.org>, Hits: -
Nov 27 14:57:34 iBox postfix/smtp[3826]: CDC98A966A: to=<spam@eoe.dk>, relay=127.0.0.1[127.0.0.1], delay=1, status=sent (250 2.6.0 Ok, id=03578-02, from MTA: 250 Ok: queued as 68E73A988C)
Nov 27 14:57:34 iBox postfix/qmgr[3654]: CDC98A966A: removed
Nov 27 14:57:34 iBox postfix/virtual[3832]: 68E73A988C: to=<spam@eoe.dk>, relay=virtual, delay=0, status=sent (delivered to maildir)
Nov 27 14:57:34 iBox postfix/qmgr[3654]: 68E73A988C: removed

This should be correct?

I also cant figure out how to add 'x-spam-status' to all incoming mails. In amavisd.conf I set '$sa_tag_level_deflt = -1000'.

Now all mails should get x-spam-status added to there header right?
but when i look at the mails header, i can only find

'X-Virus-Scanned: by amavisd-new-20030616-p10 (Debian) at localhost'

So it seems that amavis scans the mail but wont add X-spam-status to it, where did i go wrong?

Must i use procmail to add this to all mails, or did i configure something wrong.

ncp 11-29-2005 01:45 AM

found the problem
 
took me a while to find out, but there was a bypass line in my amavisd.conf that disabled scanning of incoming mails.

I just comment it out, an now every thing works

All mails now get x-spam-status add to there header, an i only have to set up the rules so amavis know when it's spam.


All times are GMT -5. The time now is 06:39 PM.