List Info

Thread: Amavis/SA configured but not processing mail




Amavis/SA configured but not processing mail
country flaguser name
United States
2007-06-25 21:28:51
Setup:
Postfix 2.2.10
Amavisd-new 2.3.3
Spamassassin 3.1.0a

I have Postfix and Amavis configured and working correctly. 
Mail is received 
by Postfix and sent through Amavis, and is sent back to
Postfix, and arrives 
in the user's mailbox.  I have spamassassin installed and
the rulesets 
installed.  

Using spamassassin from the command line generates output
like: 

X-Spam-Checker-Version: SpamAssassin 3.1.0 (2005-09-13) on
mail.warbelows.com
X-Spam-Level: ****
X-Spam-Status: No, score=4.2 required=5.0
tests=MISSING_HB_SEP,
       
MISSING_HEADERS,MISSING_SUBJECT,NO_RECEIVED,NO_RELAYS,TO_CC_
NONE
        autolearn=no version=3.1.0

And in my Amavis config file, I have:

$sa_tag_level_deflt  = -999

But I don't see any headers added to the messages.  I used 
http://wiki.apache.org/spamassassin/IntegratedI
nPostfixWithAmavis to help me 
with my setup.  Can someone point me to something I might be
missing?

The FAQ here: http://www.ijs.si
/software/amavisd/ says a possible reason for 
this would be local_domains_acl not correctly set, but
the config file I 
have does not have that option, nor does the
amavisd.conf-sample.  I do have 
this line: local_domains_maps = ( 
[".warbelows.com", 'mail.warbelows.com'] );

BTW, something else that was not clear from documentation:
if I am using 
Amavis, do I need to run the spamd, or does amavis use the
SA perl code 
directly as a module?


j

-- 
Joshua Kugler                           
Lead System Admin -- Senior Programmer
http://www.eeinternet.com
PGP Key: http://pgp.mit.edu/  ID
0xDB26D7CE
PO Box 80086 -- Fairbanks, AK 99708 -- Ph: 907-456-5581 Fax:
907-456-3111

------------------------------------------------------------
-------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and
take
control of your XML. No limits. Just data. Click to get it
now.
http://sourcefor
ge.net/powerbar/db2/
_______________________________________________
AMaViS-user mailing list
AMaViS-userlists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/amavis-user

AMaViS-FAQ:http://www.amav
is.org/amavis-faq.php3
AMaViS-HowTos:http://www.amavis.org/ho
wto/

Re: Amavis/SA configured but not processing mail
country flaguser name
United States
2007-06-25 22:33:17
> Setup:
> Postfix 2.2.10
> Amavisd-new 2.3.3
> Spamassassin 3.1.0a
> 
> I have Postfix and Amavis configured and working
correctly.  
> Mail is received by Postfix and sent through Amavis,
and is 
> sent back to Postfix, and arrives in the user's
mailbox.  I 
> have spamassassin installed and the rulesets installed.
 
> 
> Using spamassassin from the command line generates
output like: 
> 
> X-Spam-Checker-Version: SpamAssassin 3.1.0 (2005-09-13)
on 
> mail.warbelows.com
> X-Spam-Level: ****
> X-Spam-Status: No, score=4.2 required=5.0
tests=MISSING_HB_SEP,
>         
>
MISSING_HEADERS,MISSING_SUBJECT,NO_RECEIVED,NO_RELAYS,TO_CC_
NONE
>         autolearn=no version=3.1.0
> 
> And in my Amavis config file, I have:
> 
> $sa_tag_level_deflt  = -999
> 
> But I don't see any headers added to the messages.  I
used 
> http://wiki.apache.org/spamassassin/IntegratedInPo
stfixWithAma
> vis to help me with my setup.  Can someone point me to

> something I might be missing?
> 
> The FAQ here: http://www.ijs.si
/software/amavisd/ says a 
> possible reason for this would be local_domains_acl not 
> correctly set, but the config file I have does not have
that 
> option, nor does the amavisd.conf-sample.  I do have
this 
> line: local_domains_maps = ( [".warbelows.com", 
> 'mail.warbelows.com'] );
> 
> BTW, something else that was not clear from
documentation: if 
> I am using Amavis, do I need to run the spamd, or does
amavis 
> use the SA perl code directly as a module?

Have you verified that spamassassin is actually being called
for the mail in
question?

amavis does not use spamd; you do not need to run it.  It
loads the
Mail::SpamAssassin modules upon startup.

MrC


------------------------------------------------------------
-------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and
take
control of your XML. No limits. Just data. Click to get it
now.
http://sourcefor
ge.net/powerbar/db2/
_______________________________________________
AMaViS-user mailing list
AMaViS-userlists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/amavis-user

AMaViS-FAQ:http://www.amav
is.org/amavis-faq.php3
AMaViS-HowTos:http://www.amavis.org/ho
wto/

Re: Amavis/SA configured but not processing mail
country flaguser name
Canada
2007-06-25 22:39:36
On Mon, 25 Jun 2007, Joshua J. Kugler wrote:

> Setup:
> Postfix 2.2.10
> Amavisd-new 2.3.3
> Spamassassin 3.1.0a
>
> I have Postfix and Amavis configured and working
correctly.  Mail is received
> by Postfix and sent through Amavis, and is sent back to
Postfix, and arrives
> in the user's mailbox.  I have spamassassin installed
and the rulesets
> installed.
>
> Using spamassassin from the command line generates
output like:
>
> X-Spam-Checker-Version: SpamAssassin 3.1.0 (2005-09-13)
on mail.warbelows.com
> X-Spam-Level: ****
> X-Spam-Status: No, score=4.2 required=5.0
tests=MISSING_HB_SEP,
>       
MISSING_HEADERS,MISSING_SUBJECT,NO_RECEIVED,NO_RELAYS,TO_CC_
NONE
>        autolearn=no version=3.1.0
>
> And in my Amavis config file, I have:
>
> $sa_tag_level_deflt  = -999
>
> But I don't see any headers added to the messages.  I
used
> http://wiki.apache.org/spamassassin/IntegratedI
nPostfixWithAmavis to help me
> with my setup.  Can someone point me to something I
might be missing?
>
> The FAQ here: http://www.ijs.si
/software/amavisd/ says a possible reason for
> this would be local_domains_acl not correctly set, but
the config file I
> have does not have that option, nor does the
amavisd.conf-sample.  I do have
> this line: local_domains_maps = (
> [".warbelows.com", 'mail.warbelows.com'] );
>
> BTW, something else that was not clear from
documentation: if I am using
> Amavis, do I need to run the spamd, or does amavis use
the SA perl code
> directly as a module?
>

try amavisd debug-sa

Vincent.

------------------------------------------------------------
-------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and
take
control of your XML. No limits. Just data. Click to get it
now.
http://sourcefor
ge.net/powerbar/db2/
_______________________________________________
AMaViS-user mailing list
AMaViS-userlists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/amavis-user

AMaViS-FAQ:http://www.amav
is.org/amavis-faq.php3
AMaViS-HowTos:http://www.amavis.org/ho
wto/

Re: Amavis/SA configured but not processing mail
country flaguser name
United States
2007-06-26 15:40:18
On Monday 25 June 2007 19:31, Mike Cappella wrote:
> > But I don't see any headers added to the messages.
 I used
> > http://wiki.apache.org/spamassassin/IntegratedInPo
stfixWithAma
> > vis to help me with my setup.  Can someone point
me to
> > something I might be missing?
> Have you verified that spamassassin is actually being
called for the mail
> in question?

That's what I'm trying to do.  In reply to another e-mail, I
have these lines 
in my config file:

$X_HEADER_TAG = 'X-Virus-Scanned';
$X_HEADER_LINE = "$myproduct_name $myversion_id
($myversion_date) at 
$mydomain";

I have looked through the config file, and I haven't found
anything that 
enables spamassassin, so I don't really know if it is being
called.  I guess 
my question is not so much about headers as how do I tell
Amavis to pass the 
message through Spamassassin, because so far I haven't found
the config 
switch to do so.

> amavis does not use spamd; you do not need to run it. 
It loads the
> Mail::SpamAssassin modules upon startup.

Cool.

j

-- 
Joshua Kugler                           
Lead System Admin -- Senior Programmer
http://www.eeinternet.com
PGP Key: http://pgp.mit.edu/  ID
0xDB26D7CE
PO Box 80086 -- Fairbanks, AK 99708 -- Ph: 907-456-5581 Fax:
907-456-3111

------------------------------------------------------------
-------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and
take
control of your XML. No limits. Just data. Click to get it
now.
http://sourcefor
ge.net/powerbar/db2/
_______________________________________________
AMaViS-user mailing list
AMaViS-userlists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/amavis-user

AMaViS-FAQ:http://www.amav
is.org/amavis-faq.php3
AMaViS-HowTos:http://www.amavis.org/ho
wto/

Re: Amavis/SA configured but not processing mail
country flaguser name
United States
2007-06-26 17:29:37
Joshua wrote:

>> Have you verified that spamassassin is actually
being called for the mail
>> in question?

> That's what I'm trying to do.  In reply to another
e-mail, I have these lines 
> in my config file:

> $X_HEADER_TAG = 'X-Virus-Scanned';
> $X_HEADER_LINE = "$myproduct_name $myversion_id
($myversion_date) at 
> $mydomain";

> I have looked through the config file, and I haven't
found anything that 
> enables spamassassin, so I don't really know if it is
being called.  I guess 
> my question is not so much about headers as how do I
tell Amavis to pass the 
> message through Spamassassin, because so far I haven't
found the config 
> switch to do so.

Look for:
# bypass_virus_checks_maps = (1);  # uncomment to
DISABLE anti-virus code
# bypass_spam_checks_maps  = (1);  # uncomment to
DISABLE anti-spam code

If you want to use SA, make sure you do NOT bypass
spam_checks. In
other words, bypass_spam_checks* should be commented
out. The next
question would be - are you sending mail to amavisd-new at
all? What
MTA are you using?

Gary V



------------------------------------------------------------
-------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and
take
control of your XML. No limits. Just data. Click to get it
now.
http://sourcefor
ge.net/powerbar/db2/
_______________________________________________
AMaViS-user mailing list
AMaViS-userlists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/amavis-user

AMaViS-FAQ:http://www.amav
is.org/amavis-faq.php3
AMaViS-HowTos:http://www.amavis.org/ho
wto/

Re: Amavis/SA configured but not processing mail
country flaguser name
United States
2007-06-26 17:37:08
Gary wrote:
> The next question would be - are you sending mail to
amavisd-new
> at all? What MTA are you using?

Also, don't test by sending mail from the local machine
using sendmail
or similar. Send from an external client via SMTP.

Gary V



------------------------------------------------------------
-------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and
take
control of your XML. No limits. Just data. Click to get it
now.
http://sourcefor
ge.net/powerbar/db2/
_______________________________________________
AMaViS-user mailing list
AMaViS-userlists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/amavis-user

AMaViS-FAQ:http://www.amav
is.org/amavis-faq.php3
AMaViS-HowTos:http://www.amavis.org/ho
wto/

Re: Amavis/SA configured but not processing mail
country flaguser name
United States
2007-06-26 17:56:42
On Tuesday 26 June 2007 14:29, Gary V wrote:
> Joshua wrote:
> >> Have you verified that spamassassin is
actually being called for the
> >> mail in question?
> >
> > That's what I'm trying to do.  In reply to another
e-mail, I have these
> > lines in my config file:
> >
> > $X_HEADER_TAG = 'X-Virus-Scanned';
> > $X_HEADER_LINE = "$myproduct_name
$myversion_id ($myversion_date) at
> > $mydomain";
> >
> > I have looked through the config file, and I
haven't found anything that
> > enables spamassassin, so I don't really know if it
is being called.  I
> > guess my question is not so much about headers as
how do I tell Amavis to
> > pass the message through Spamassassin, because so
far I haven't found the
> > config switch to do so.
>
> Look for:
> # bypass_virus_checks_maps = (1);  # uncomment to
DISABLE anti-virus code
> # bypass_spam_checks_maps  = (1);  # uncomment to
DISABLE anti-spam code
>
> If you want to use SA, make sure you do NOT bypass
spam_checks. In
> other words, bypass_spam_checks* should be commented
out. The next
> question would be - are you sending mail to amavisd-new
at all? What
> MTA are you using?

Virus is un-commented, bypass_spam is commented (all
occurrences I could 
find).  Here are the headers added to the mail once it hits
the server 
(mail.example.com, to protect the innocent  ).

Received: from localhost (localhost [127.0.0.1])
        by mail.example.com (Postfix) with ESMTP id
B554B17C06E
        for <jkuglerexample.com>; Tue, 26 Jun 2007 12:31:39
-0800 (AKDT)
Received: from mail.example.com ([127.0.0.1])
        by localhost (mail.example.com [127.0.0.1])
(amavisd-new, port 10024)
        with ESMTP id 20201-01 for <jkuglerexample.com>;
        Tue, 26 Jun 2007 12:31:39 -0800 (AKDT)
Received: from anotherhost.net (anotherhost.net
[ip.ad.dre.ss])
        by mail.example.com (Postfix) with ESMTP id
794C417C06B
        for <jkuglerexample.com>; Tue, 26 Jun 2007 12:31:39
-0800 (AKDT)

I'm using Postfix, and amavisd-new as a content filter. 
Postfix passes it to 
Amavis, and then get's it back on port 10025.

I know it's something simple, but I'm not seeing it.

j

-- 
Joshua Kugler                           
Lead System Admin -- Senior Programmer
http://www.eeinternet.com
PGP Key: http://pgp.mit.edu/  ID
0xDB26D7CE
PO Box 80086 -- Fairbanks, AK 99708 -- Ph: 907-456-5581 Fax:
907-456-3111

------------------------------------------------------------
-------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and
take
control of your XML. No limits. Just data. Click to get it
now.
http://sourcefor
ge.net/powerbar/db2/
_______________________________________________
AMaViS-user mailing list
AMaViS-userlists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/amavis-user

AMaViS-FAQ:http://www.amav
is.org/amavis-faq.php3
AMaViS-HowTos:http://www.amavis.org/ho
wto/

Re: Amavis/SA configured but not processing mail
country flaguser name
United States
2007-06-26 21:13:28
Joshua wrote:

> Virus is un-commented, bypass_spam is commented (all
occurrences I could 
> find).  Here are the headers added to the mail once it
hits the server 
> (mail.example.com, to protect the innocent  ).

> Received: from localhost (localhost [127.0.0.1])
>         by mail.example.com (Postfix) with ESMTP id
B554B17C06E
>         for <jkuglerexample.com>; Tue, 26
Jun 2007 12:31:39 -0800 (AKDT)
> Received: from mail.example.com ([127.0.0.1])
>         by localhost (mail.example.com [127.0.0.1])
(amavisd-new, port 10024)
>         with ESMTP id 20201-01 for <jkuglerexample.com>;
>         Tue, 26 Jun 2007 12:31:39 -0800 (AKDT)
> Received: from anotherhost.net (anotherhost.net
[ip.ad.dre.ss])
>         by mail.example.com (Postfix) with ESMTP id
794C417C06B
>         for <jkuglerexample.com>; Tue, 26
Jun 2007 12:31:39 -0800 (AKDT)

> I'm using Postfix, and amavisd-new as a content filter.
 Postfix passes it to 
> Amavis, and then get's it back on port 10025.

> I know it's something simple, but I'm not seeing it.
> j

You won't see X-Virus-Scanned unless you are doing virus
scans, but
that is another matter.

With $sa_tag_level_deflt  = -999; and
local_domains_maps = ( [ ".example.com" ]
);

and spam checks are not bypassed, it should work. Is there
another
server downstream removing X-Spam headers? At this point you
probably
are going to have to raise $log_level to 5 long enough for a
message
to go through. Alternately, you can send yourself a message
with your
sender address in debug_sender_maps:

# If sender matches ACL, turn debugging fully up, just for
this one message
debug_sender_maps = ( ['test-senderexample.com'] );

In your log look for something like:

Jun 26 20:07:19 sfa amavis[4225]: (04225-01) headers
CLUSTERING: NEW CLUSTER <garyvexample.com>:
 score=-0.155, tag=1, tag2=0, local=1, bl=, s=, mangle=

I then get:
... header: X-Virus-Scanned: Debian amavisd-new at
example.comn
... header: X-Spam-Flag: NOn
... header: X-Spam-Score: -0.155n
... header: X-Spam-Level: n
... header: X-Spam-Status: No, score=-0.155 required=8
tests=[ALL_TRUSTED=-1.44,ntMISSING_SUBJECT=1.285]n

(I mess with ALL_TRUSTED when testing)

maybe something like this to narrow it down:
grep header /var/log/maillog

Gary V


------------------------------------------------------------
-------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and
take
control of your XML. No limits. Just data. Click to get it
now.
http://sourcefor
ge.net/powerbar/db2/
_______________________________________________
AMaViS-user mailing list
AMaViS-userlists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/amavis-user

AMaViS-FAQ:http://www.amav
is.org/amavis-faq.php3
AMaViS-HowTos:http://www.amavis.org/ho
wto/

Re: Amavis/SA configured but not processing mail
country flaguser name
United States
2007-06-26 21:27:01
Gary wrote:

> With $sa_tag_level_deflt  = -999; and
> local_domains_maps = ( [ ".example.com" ]
);

> and spam checks are not bypassed, it should work. Is
there another
> server downstream removing X-Spam headers?

Are you using SQL or LDAP and the recipient's spam_tag_level
is
observed instead of the static $sa_tag_level_deflt?

Gary V


------------------------------------------------------------
-------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and
take
control of your XML. No limits. Just data. Click to get it
now.
http://sourcefor
ge.net/powerbar/db2/
_______________________________________________
AMaViS-user mailing list
AMaViS-userlists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/amavis-user

AMaViS-FAQ:http://www.amav
is.org/amavis-faq.php3
AMaViS-HowTos:http://www.amavis.org/ho
wto/

Re: Amavis/SA configured but not processing mail
country flaguser name
United States
2007-06-27 18:59:19
On Tuesday 26 June 2007 18:27, Gary V wrote:
> Gary wrote:
> > With $sa_tag_level_deflt  = -999; and
> > local_domains_maps = ( [ ".example.com" ]
);
> >
> > and spam checks are not bypassed, it should work.
Is there another
> > server downstream removing X-Spam headers?
>
> Are you using SQL or LDAP and the recipient's
spam_tag_level is
> observed instead of the static $sa_tag_level_deflt?

No.

j

-- 
Joshua Kugler                           
Lead System Admin -- Senior Programmer
http://www.eeinternet.com
PGP Key: http://pgp.mit.edu/  ID
0xDB26D7CE
PO Box 80086 -- Fairbanks, AK 99708 -- Ph: 907-456-5581 Fax:
907-456-3111

------------------------------------------------------------
-------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and
take
control of your XML. No limits. Just data. Click to get it
now.
http://sourcefor
ge.net/powerbar/db2/
_______________________________________________
AMaViS-user mailing list
AMaViS-userlists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/amavis-user

AMaViS-FAQ:http://www.amav
is.org/amavis-faq.php3
AMaViS-HowTos:http://www.amavis.org/ho
wto/

[1-10] [11-20] [21]

about | contact  Other archives ( Real Estate discussion Medical topics )