Postfix + SpamAssassin with SPAM Quarantine

Talk about any thing that related to networking, running servers with *nux.

Moderator: kalinga

Re: Postfix + SpamAssassin with SPAM Quarantine

Postby TheIrbis » Tue Aug 12, 2008 7:18 pm

It works... Sorry.. I restarted the server, and it's ok.
-100 USER_IN_WHITELIST From: address is in the user's white-list
I think it will be enough for simple spam.... Thanks for help..
TheIrbis
 
Posts: 6
Joined: Tue Aug 12, 2008 5:19 pm

Re: Postfix + SpamAssassin with SPAM Quarantine

Postby kalinga » Tue Aug 12, 2008 7:33 pm

nope

Code: Select all
X-Spam-Checker-Version: SpamAssassin 3.2.3 (2007-08-08) on CCCC.XXXXXXXXXXXX.CCCCCC
X-Spam-Level: *
X-Spam-Status: No, score=1.8 required=5.0 tests=SUBJ_ALL_CAPS autolearn=disabled version=3.2.3
kalinga
Site Admin
 
Posts: 209
Joined: Fri Oct 14, 2005 3:19 pm
Location: Sri Lanka

Re: Postfix + SpamAssassin with SPAM Quarantine

Postby playersons » Tue Nov 11, 2008 7:32 pm

Hello,

I have installed Postfix and Spamassassin according to your tutorial some time ago. I don't know when, but quite a while after this, spamadmin stopped receiving the spam-mails. Postfix shows this error in the log:

Nov 11 15:05:44 myhost postfix/local[29317]: C13BE2A00661: to=<spamadmin@mydomain.org>, orig_to=<spamtrap@ mydomain.org>, relay=local, delay=0.06, delays=0.03/0/0/0.02, dsn=5.1.1, status=bounced (unknown user: "spamadmin")
Nov 11 15:05:45 myhost postfix/local[29319]: C13BE2A00661: to=<spamtrap@ mydomain.org>, relay=local, delay=1.1, delays=0.03/0.01/0/1.1, dsn=5.1.1, status=bounced (unknown user: "spamtrap")
Nov 11 15:05:45 myhost postfix/cleanup[29246]: D830E2A00648: message-id=<20081111140545.D830E2A00648@myhost.mydomain.org>
Nov 11 15:05:45 myhost postfix/bounce[29320]: C13BE2A00661: sender non-delivery notification: D830E2A00648
Nov 11 15:05:45 myhost postfix/qmgr[23337]: D830E2A00648: from=<>, size=9538, nrcpt=1 (queue active)
Nov 11 15:05:45 myhost postfix/qmgr[23337]: C13BE2A00661: removed
Nov 11 15:05:45 myhost postfix/local[29317]: D830E2A00648: to=<spamadmin@mydomain.org>, relay=local, delay=0.01, delays=0.01/0/0/0, dsn=5.1.1, status=bounced (unknown user: "spamadmin")
Nov 11 15:05:45 myhost postfix/qmgr[23337]: D830E2A00648: removed
Nov 11 15:05:49 myhost spamd[20281]: prefork: child states: II

Obviously, Postfix can't find both the users (I guess this also means virtual mailboxes via mysql) spamadmin and spamtrap although at least spamadmin does exist and has always existed. The user spamtrap did not exist and creating a mailbox with this name did not help.

What am I doing wrong?
Thanks for your valued help.

playersons
playersons
 
Posts: 4
Joined: Tue Nov 11, 2008 7:00 pm
Location: Germany

Re: Postfix + SpamAssassin with SPAM Quarantine

Postby kalinga » Wed Nov 12, 2008 11:30 pm

can you send email directly to any of those users ?
kalinga
Site Admin
 
Posts: 209
Joined: Fri Oct 14, 2005 3:19 pm
Location: Sri Lanka

Re: Postfix + SpamAssassin with SPAM Quarantine

Postby kalinga » Wed Nov 12, 2008 11:32 pm

can you send email directly to any of those users ?
kalinga
Site Admin
 
Posts: 209
Joined: Fri Oct 14, 2005 3:19 pm
Location: Sri Lanka

Re: Postfix + SpamAssassin with SPAM Quarantine

Postby playersons » Thu Nov 13, 2008 12:45 pm

Hmmh, that used to be possible earlier, but right now, emails to this address just sit in the postfix queue and nothing happens so far.... I will activate debugging on postfix logs first.
playersons
 
Posts: 4
Joined: Tue Nov 11, 2008 7:00 pm
Location: Germany

Re: Postfix + SpamAssassin with SPAM Quarantine

Postby playersons » Thu Nov 13, 2008 1:07 pm

Ok, now trying to send mail from external addresses result in

smtp;550 5.7.1 Relaying to <spamadmin@mydomain.org> denied (authentication required)

As if this user did not exist at all on the receiving part. That is really strange, as login as that user is still possible and does not cause any error.
playersons
 
Posts: 4
Joined: Tue Nov 11, 2008 7:00 pm
Location: Germany

Re: Postfix + SpamAssassin with SPAM Quarantine

Postby kalinga » Thu Nov 13, 2008 1:49 pm

seems like bad posfix conf, check your v-Domains.
kalinga
Site Admin
 
Posts: 209
Joined: Fri Oct 14, 2005 3:19 pm
Location: Sri Lanka

Re: Postfix + SpamAssassin with SPAM Quarantine

Postby playersons » Thu Nov 13, 2008 10:22 pm

Turns out, we had some bad MX entries in DNS that led postfix to a wrong host when trying to deliver to spamadmin where, of course, this user was not available.
Thanks for your help :)

Could I ask you to help me with some spamassassin issues, if you don't mind?

Why do some spamd log entries contain "autolearn=no" while some others do contain "autolearn=yes" - my setting for spamassassin is autolearn = 1
And how could I avoid that mails sent from my server are filtered or marked as spam, which happens from time to time?

Again, thank you very much for your precious help. Where in Sri Lanka are you located? I have been there once and would love to return one day. It's beautiful country with very polite and friendly people.

playersons
playersons
 
Posts: 4
Joined: Tue Nov 11, 2008 7:00 pm
Location: Germany

Re: Postfix + SpamAssassin with SPAM Quarantine

Postby kalinga » Fri Nov 14, 2008 4:13 pm

ah, cool to know you been to SL, im in Colombo City limits,

autolearn is a system where it lean from the type of email you send vs type of email you get and it understand the type of words pattens in your email and try to not mark ham as spam, so its called Bayesian

http://wiki.apache.org/spamassassin/BayesInSpamAssassin
kalinga
Site Admin
 
Posts: 209
Joined: Fri Oct 14, 2005 3:19 pm
Location: Sri Lanka

Previous

Return to Linux - Networking

Who is online

Users browsing this forum: No registered users and 1 guest