You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@spamassassin.apache.org by Bryan Oswalt <br...@gordongrid.com> on 2005/05/25 22:56:28 UTC

Spamassassin isn't working on relay traffic...

  I have Spamassassin setup in a spamd/spamc type configuration, along with
spamass-milter and the INPUT_MAIL_FILTER
option configured in sendmail with procmail as my MDA. The server I have
this running on is to be setup as a mail filtering gateway for tagging spam
and blocking e-mails with content not allowed under company policy (ie.
Swearing, offensive language, etc.). 
 
  My problem is that when I test this configuration with the GTUBE, it only
marks e-mail as spam when it is sent from user@localmachine.localdomain.com
<ma...@localmachine.localdomain.com>  to
user@localmachine.localdomain.com <ma...@localmachine.localdomain.com>
, but not when sent from user@remotedomain.com
<ma...@remotedomain.com>  or sent to user@remotedomain.com
<ma...@remotedomain.com> . This machine is setup  to be seen from the
outside world, so mail is deliverable by using user@localdomain.com
<ma...@localdomain.com> , but even that does not work, only if it is
sent from/to user@localmachine.localdomain.com
<ma...@localmachine.localdomain.com> , not from
user@localmachine.localdomain.com <ma...@localmachine.localdomain.com>
to user@localdomain.com <ma...@localdomain.com> .
 
  All relays that are setup work, so mail that is supposed to pass through
passes through, all local accounts can receive e-mail whether it's sent to
user@localmachine.localdomain.com <ma...@localmachine.localdomain.com>
or user@localdomain.com <ma...@localdomain.com>  , outlook can get
e-mail from the server, the e-mails with objectional content get redirected
to the network admin for evaluation, and even squirrelmail works, but I want
Spamassassin to filter everything for spam, and I can't seem to get it to
when it comes from or gets sent to an outside account or even an alias(?) of
the local account. All installed services seem to start with no problems and
are running when tests mails are sent and local tests pass.
 
I have read HOWTOs and whatnot until my eyes bleed, so I thought I'd ask
here now. Is there some magical dance I have to do to get this to work, or
any suggestions on how to get this box to filter everything that passes
through it?

Re: Spamassassin isn't working on relay traffic...

Posted by Matt Kettler <mk...@comcast.net>.
At 04:56 PM 5/25/2005, Bryan Oswalt wrote:
>   I have Spamassassin setup in a spamd/spamc type configuration, along 
> with spamass-milter and the INPUT_MAIL_FILTER
>option configured in sendmail with procmail as my MDA. The server I have 
>this running on is to be setup as a mail filtering gateway for tagging 
>spam and blocking e-mails with content not allowed under company policy 
>(ie. Swearing, offensive language, etc.).
>
>   My problem is that when I test this configuration with the GTUBE, it 
> only marks e-mail as spam when it is sent from 
> <ma...@localmachine.localdomain.com>user@localmachine.localdomain.co 
> m to 
> <ma...@localmachine.localdomain.com>user@localmachine.localdomain.com, 
> but not when sent from 
> <ma...@remotedomain.com>user@remotedomain.com or sent to 
> <ma...@remotedomain.com>user@remotedomain.com. This machine is 
> setup  to be seen from the outside world, so mail is deliverable by using 
> <ma...@localdomain.com>user@localdomain.com, but even that does not 
> work, only if it is sent from/to 
> <ma...@localmachine.localdomain.com>user@localmachine.localdomain.com, 
> not from 
> <ma...@localmachine.localdomain.com>user@localmachine.localdomain.co 
> m to <ma...@localdomain.com>user@localdomain.com.
>
>   All relays that are setup work, so mail that is supposed to pass 
> through passes through, all local accounts can receive e-mail whether 
> it's sent to 
> <ma...@localmachine.localdomain.com>user@localmachine.localdomain.co 
> m or <ma...@localdomain.com>user@localdomain.com , outlook can get 
> e-mail from the server, the e-mails with objectional content get 
> redirected to the network admin for evaluation, and even squirrelmail 
> works, but I want Spamassassin to filter everything for spam, and I can't 
> seem to get it to when it comes from or gets sent to an outside account 
> or even an alias(?) of the local account. All installed services seem to 
> start with no problems and are running when tests mails are sent and 
> local tests pass.
>
>I have read HOWTOs and whatnot until my eyes bleed, so I thought I'd ask 
>here now. Is there some magical dance I have to do to get this to work, or 
>any suggestions on how to get this box to filter everything that passes 
>through it?


Your setup SHOULD work as you describe it. That is, assuming you mean 
http://savannah.nongnu.org/projects/spamass-milt/ when you say 
"spamass-milter" (It's been renamed). Your milter by default should scan it 
all, unless your passing -i to it (check your parameters that you pass when 
you start the milter)

Question: you mentioned using procmail, you aren't calling spamc in 
procmailrc are you? if your milter is working, you don't need anything in 
procmail, and adding it will complicate your testing.

Have you checked the Received: headers of the messages that did not get 
tagged to verify the message really went through your SA scanning 
server?  You said you verified the configuration, but did you verify the 
actual path of the message?

What about checking your sendmail logs, did said message show up and get 
processed by your sendmail?