How to avoid localhost mails tagged as spam

This is a discussion on How to avoid localhost mails tagged as spam within the SpamAssassin forums, part of the Tools category; Hello List, I am using SpamAssassin version 3.2.5 Postfix, amavis, clamd, *nix My question: All emails from localhost are tagged als ***Spam*** in the subject line. How can I avoid ...

Go Back   Unix Linux Forum > Technologies & Tools > Tools > SpamAssassin

FixUnix.com - Unix Linux Forums

Unix Content Register FAQ Calendar Search Today's Posts Mark Forums Read
  #1  
Old 08-25-2008, 06:40 PM
Default How to avoid localhost mails tagged as spam

Hello List,

I am using SpamAssassin version 3.2.5
Postfix, amavis, clamd, *nix


My question:
All emails from localhost are tagged als ***Spam*** in the subject line.

How can I avoid this ?
Please help me.

(Header-Merssage:Received: from localhost (unknown [127.0.0.1]))

Regards,
Oliver
Reply With Quote
  #2  
Old 08-25-2008, 06:51 PM
Default Re: How to avoid localhost mails tagged as spam

On Tue, 2008-08-26 at 00:40 +0200, GoodnGo.de (R) Zentrale wrote:
> Hello List,
>
> I am using SpamAssassin version 3.2.5
> Postfix, amavis, clamd, *nix
>
>
> My question:
> All emails from localhost are tagged als ***Spam*** in the subject
> line.
>
> How can I avoid this ?
> Please help me.
>
> (Header-Merssage:Received: from localhost (unknown [127.0.0.1]))
>


since localhost is unknown, you might want to add it to your /etc/hosts


> Regards,
> Oliver

--
Daniel J McDonald, CCIE #2495, CISSP #78281, CNX
Austin Energy
http://www.austinenergy.com


-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)

iEYEABECAAYFAkizN2wACgkQGvhCU13z7Ijd5gCgpiaMw9q5AK vpW717/LF+kQVI
zx4An2DyJEJl2olkU9vyiltWq5puGdvr
=Ky6Z
-----END PGP SIGNATURE-----

Reply With Quote
  #3  
Old 08-25-2008, 06:51 PM
Default Re: How to avoid localhost mails tagged as spam

GoodnGo.de (R) Zentrale wrote:
> Hello List,
> I am using SpamAssassin version 3.2.5
> Postfix, amavis, clamd, *nix
> My question:
> All emails from localhost are tagged als ***Spam*** in the subject line.
> How can I avoid this ?
> Please help me.
> (Header-Merssage:Received: from localhost (unknown [127.0.0.1]))


Easy solution: Don't pass mail from localhost to spamassassin.

Longer solution: What rules are being hit?

Reply With Quote
  #4  
Old 08-25-2008, 07:05 PM
Default Re: How to avoid localhost mails tagged as spam

> Easy solution: Don't pass mail from localhost to spamassassin.

Hello Evan,

how can I do that?

(I am newbie)

Reply With Quote
  #5  
Old 08-25-2008, 07:10 PM
Default Re: How to avoid localhost mails tagged as spam

> My question:
> All emails from localhost are tagged als ***Spam*** in the subject
> line.

since localhost is unknown, you might want to add it to your /etc/hosts
Hello Dan,thanx, just did that ...Spmafilter is working fine.Just the Mails
from server to server over web are tagged as spamWhat can I do?Oliver

Reply With Quote
  #6  
Old 08-25-2008, 07:23 PM
Default Re: How to avoid localhost mails tagged as spam

Since you're using amavis, you'd have to ask those folks.
SA will scan anything given to it, so ...

On Tue, Aug 26, 2008 at 01:05:39AM +0200, GoodnGo.de (R) Zentrale wrote:
> >Easy solution: Don't pass mail from localhost to spamassassin.

>
> Hello Evan,
>
> how can I do that?
>
> (I am newbie)


--
Randomly Selected Tagline:
"How to knock yourself out: Take a large herring, make contact with back
of head. Repeat if necessary." - Theo

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.8 (GNU/Linux)

iD8DBQFIsz8PRnAwoQckjjoRAjvOAKDgvaj/0LIYtdEKkF46WC5+0QqykwCgyxlq
Iik2RBvRr7T2tMRUkJ477Ic=
=Vi1n
-----END PGP SIGNATURE-----

Reply With Quote
  #7  
Old 08-25-2008, 09:27 PM
Default Re: How to avoid localhost mails tagged as spam

On 8/25/08, Theo Van Dinter wrote:
> Since you're using amavis, you'd have to ask those folks.
> SA will scan anything given to it, so ...
>
> On Tue, Aug 26, 2008 at 01:05:39AM +0200, GoodnGo.de (R) Zentrale wrote:
> > >Easy solution: Don't pass mail from localhost to spamassassin.

> >
> > Hello Evan,
> >
> > how can I do that?
> >
> > (I am newbie)

>


As Theo says, this is an amavis (and/or postfix) issue. This should
give you some ideas:
http://www200.pair.com/mecham/spam/bypassing.html
notably:
http://www200.pair.com/mecham/spam/bypassing.html#1

You should also find examples in amavisd.conf and amavisd.conf-sample
and the amavisd-new website.
http://www.ijs.si/software/amavisd/a...html#pbanks-ex

--
Gary V

Reply With Quote
  #8  
Old 08-26-2008, 01:55 AM
Default Re: How to avoid localhost mails tagged as spam


On Tue, 2008-08-26 at 00:40 +0200, GoodnGo.de (R) Zentrale wrote:
> Hello List,
>
> I am using SpamAssassin version 3.2.5
> Postfix, amavis, clamd, *nix
>
>
> My question:
> All emails from localhost are tagged als ***Spam*** in the subject
> line.
>
> How can I avoid this ?
> Please help me.
>
> (Header-Merssage:Received: from localhost (unknown [127.0.0.1]))
>
> Regards,
> Oliver



What I do is I dont pass local mails through the scan at all. You dont
expect spam from localhost ( else you are in much bigger trouble :-) )

I am sure amavis will have an option when to scan messages for spam and
when not

Reply With Quote
  #9  
Old 08-26-2008, 07:22 AM
Default Re: How to avoid localhost mails tagged as spam

On Tue, 2008-08-26 at 01:10 +0200, GoodnGo.de (R) Zentrale wrote:
> > My question:
> > All emails from localhost are tagged als ***Spam*** in the subject
> > line.

> since localhost is unknown, you might want to add it to your /etc/hosts
> Hello Dan,thanx, just did that ...Spmafilter is working fine.Just the Mails
> from server to server over web are tagged as spamWhat can I do?Oliver


As folks have said, this is an amavisd-new question, since you are using
amavis... But the short answer is "policy banks".

This link should get you started:
http://www.ijs.si/software/amavisd/a...cs.html#pbanks

example 1 seems to be what you are looking for...

And now, back to questions specifically about spamassassin....

--
Daniel J McDonald, CCIE #2495, CISSP #78281, CNX
Austin Energy
http://www.austinenergy.com


-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)

iEYEABECAAYFAkiz53AACgkQGvhCU13z7IiHNACcC3/5gX5xwDHOQauRtkQ85JXw
FicAoJC0DI0lielKrkldFGNFjOzp7UMx
=IjDy
-----END PGP SIGNATURE-----

Reply With Quote
  #10  
Old 08-26-2008, 07:36 AM
Default Re: How to avoid localhost mails tagged as spam

In my case, I setup Postfix to listen on 2 ports (that means 2 instances)
- Regular port 25 will pass to SA
- Another port will not pass to SA and we use this port to send mail to
each other.

Cheers,

Hieu N. Le

On Tue, Aug 26, 2008 at 6:22 PM, McDonald, Dan <
Dan.McDonald@austinenergy.com> wrote:

> On Tue, 2008-08-26 at 01:10 +0200, GoodnGo.de (R) Zentrale wrote:
> > > My question:
> > > All emails from localhost are tagged als ***Spam*** in the subject
> > > line.

> > since localhost is unknown, you might want to add it to your /etc/hosts
> > Hello Dan,thanx, just did that ...Spmafilter is working fine.Just the

> Mails
> > from server to server over web are tagged as spamWhat can I do?Oliver

>
> As folks have said, this is an amavisd-new question, since you are using
> amavis... But the short answer is "policy banks".
>
> This link should get you started:
> http://www.ijs.si/software/amavisd/a...cs.html#pbanks
>
> example 1 seems to be what you are looking for...
>
> And now, back to questions specifically about spamassassin....
>
> --
> Daniel J McDonald, CCIE #2495, CISSP #78281, CNX
> Austin Energy
> http://www.austinenergy.com
>
>


Reply With Quote
Reply

Thread Tools


All times are GMT -5. The time now is 01:15 PM.

In an effort to better serve ads to our visitors, cookies are used on Fixunix.com. For more information, check out our Privacy Policy.

Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0
Ad Management by RedTyger