Koozali.org: home of the SME Server

Obsolete Releases => SME 7.x Contribs => Topic started by: joshAU on May 01, 2009, 02:16:50 AM

Title: Does spamassassin scan all emails coming through a sme gateway?
Post by: joshAU on May 01, 2009, 02:16:50 AM
Hello people.
I have recently been playing around with stopping the 100 or so spam messages I get a day.

im running sme 7 configured as server/gateway.

Does spamassassin scan all emails coming through the sme gateway, or only those accounts actually on the sme box. If it does, any reason why its not picking up the spam?

I have an email account from my isp that is recieving lots of spam.

In outlook xpress on an xp box, I have the incoming mail server as my isp, and the outgoing mail server as my sme box.

I have created a junkmail folder, and a LearnAsSpam folder, from within OE, but they dont seem to have any effect on reducing spam.

in the server panel i have the following options set.
Spam filtering   Enabled
Spam sensitivity   Custom
Custom spam tagging level   3
Custom spam rejection level   10
Sort spam into junkmail folder   Enabled
Modify subject of spam messages   Enabled

I am now recieving an email that contains the following... in case its relevant.

_____________________________________________________

SMEServer daily Anti-Virus and Spamfilter statistics
----------------------------------------------------

/usr/bin/spamfilter-stats-7.pl Version : 0.6.22

Period Beginning : Wed Apr 29 00:00:00 2009
Period Ending    : Thu Apr 30 00:00:00 2009

Clam Version : ClamAV 0.93/9305/Wed Apr 29 23:43:01 2009
SpamAssassin Version : SpamAssassin version 3.2.4
  running on Perl version 5.8.5
Tag level:   3; Reject level:  10 

Reporting Period : 24.00 hrs
----------------------------

All SMTP connections accepted:       3         
Emails per hour              :      0.1/hr

Average spam score (accepted):        0.00
Average spam score (rejected):        0.00
Average ham score            :        0.00

Statistics by Hour
------------------------------------------
           Hour Non.Conf.  TOTALS PERCENT
--------------- --------- ------- -------
2009-04-29, 00         0       0    0.0%
2009-04-29, 01         0       0    0.0%
2009-04-29, 02         0       0    0.0%
2009-04-29, 03         0       0    0.0%
2009-04-29, 04         0       0    0.0%
2009-04-29, 05         0       0    0.0%
2009-04-29, 06         0       0    0.0%
2009-04-29, 07         0       0    0.0%
2009-04-29, 08         0       0    0.0%
2009-04-29, 09         0       0    0.0%
2009-04-29, 10         0       0    0.0%
2009-04-29, 11         1       1   33.3%
2009-04-29, 12         0       0    0.0%
2009-04-29, 13         0       0    0.0%
2009-04-29, 14         0       0    0.0%
2009-04-29, 15         0       0    0.0%
2009-04-29, 16         0       0    0.0%
2009-04-29, 17         0       0    0.0%
2009-04-29, 18         0       0    0.0%
2009-04-29, 19         1       1   33.3%
2009-04-29, 20         0       0    0.0%
2009-04-29, 21         0       0    0.0%
2009-04-29, 22         0       0    0.0%
2009-04-29, 23         1       1   33.3%

--------------- --------- ------- -------
TOTALS                 3       3   100.0%
PERCENTAGES        100.0%  100.0%  100.0%
------------------------------------------
*Local* means connections from workstations on local LAN.
*Non.Conf.* means sending mailserver did not conform to correct protocol.
            or email was to non existant address.


Incoming mails by recipient domains usage
-----------------------------------------
Domains                      Type       Total  Denied XferErr Accept %accept
---------------------------- ---------- ------ ------ ------- ------ -------
Others                       other           3      3       0      0   0.00%
---------------------------- ---------- ------ ------- ------ ------ -------
Total                                        3      3       0      0   0.00%

3 mails were processed for 3 Recipients
The average recipients by mail is 1.00

Qpsmtpd codes league table:
---------------------------------------------
Count Percent Reason
---------------------------------------------
3 100.0% check_spamhelo
---------------------------------------------

Spamassassin Rules:
---------------------------------------------
Count Percent Rule
---------------------------------------------
---------------------------------------------

***No junkmail folders with emails***

Done. Report generated in 6 sec.

No data saved -  if you want to save data to a MySQL database, then please use:
config setprop mailstats SaveDataToMySQL yes
You must have created the database first.

_____________________________________________________


Any help greatly appreciated.

JoshAU
Title: Re: Does spamassassin scan all emails coming through a sme gateway?
Post by: Franco on May 01, 2009, 03:30:32 AM
Hi Josh,
You're better off setting up fetchmail http://wiki.contribs.org/Fetchmail to collect the emails from your ISP and scan/sort it to spam.
The way you have it now, SME is not scanning the incoming emails.
Title: Re: Does spamassassin scan all emails coming through a sme gateway?
Post by: joshAU on May 01, 2009, 08:37:30 AM
Thank you for your prompt and succinct answer.

Excellent. just installed.

Much appreciated.
Title: Re: Does spamassassin scan all emails coming through a sme gateway?
Post by: joshAU on May 01, 2009, 09:22:43 AM
err, one minor issue though, probably user fault.

Now I cannot send any emails to any other email address that is outside of my domain, from the account I specified in the "Configure External Mailbox Retrieval" panel.

For example, emails from josh@mydomain.com.au to staff1@mydomain.com.au works fine, but to any other domain eg adud@bogpond.com, I get this error:

Quote
The message could not be sent because one of the recipients was rejected by the server. The rejected e-mail address was 'adud@bogpond.com'. Subject 'test', Account: 'josh@mydomain.com.au', Server: 'mail.mydomain.com.au', Protocol: SMTP, Server Response: '550 Relaying denied (#5.7.1)', Port: 25, Secure(SSL): No, Server Error: 550, Error Number: 0x800CCC79

all other email accounts on my server appear to work fine.

And I can send/receive mail from my ISPs email account correctly, and seems to be going through my sme box first now.

In the Configure External Mailbox Retrieval panel, i have the following options set:
Fetchmail is Enabled
 Workstations on the internal LAN can access external POP and IMAP servers
 Workstations on the internal LAN can access external News servers
 Workstations on the internal LAN can access external SMTP servers
 Workstations on the internal LAN have direct access to external SMTP servers

If, from that panel I click modify next to this user, i have the following options set:
Ghost account NO
Debug NO
retrieve all mails
No fowarding enabled
mail copy to : no one

in OE, i have mail.mydomain.com.au specified for incoming and outgoing servers.

Could it be that its somehow reversing it so my server thinks the email is coming from my isps account and therefore refusing to relay it?

Its after 5pm on a Friday.
So like I said its probably user fault.


Any advice/help greatly appreciated.

Thanks

JoshAU


Title: Re: Does spamassassin scan all emails coming through a sme gateway?
Post by: Franco on May 01, 2009, 12:30:47 PM
Fetchmail will get the email from your ISP and deliver to your local account.
You should go to the Email Panel and configure your ISP there, so you can send email via your ISP using your local server..

The way you configure your OE to send and receive email is to use the local SME. And SME will do the job of getting and sending the email via your ISP(s).

This will make your life easier, with control of your email, filtering of spam/AV, can collect from multiple ISP's, deny other SMTP's except the local, and so much more.

Title: Re: Does spamassassin scan all emails coming through a sme gateway?
Post by: joshAU on May 06, 2009, 05:06:34 AM
Thanks again Franco.
My spam has dropped from 100+ a day to approx 0 after setting up Fetchmail.

I was worried that it had stopped all emails....I was getting so few, but legit ones are coming through fine.

This is excellent, thank you.

JoshAU