Koozali.org: home of the SME Server

Obsolete Releases => SME Server 7.x => Topic started by: Fraunhofer on January 12, 2007, 04:51:03 PM

Title: spamassassin doesn't work in SME7 for fetchmail
Post by: Fraunhofer on January 12, 2007, 04:51:03 PM
Spamassasin doesn't work with SME 7.1 :(
Title: Please report issues in the bug tracker
Post by: gordonr on January 12, 2007, 09:03:07 PM
Quote from: "Fraunhofer"
Spamassasin doesn't work with SME 7.1 :(


Please report all issues to the bug tracker, and only there.

This issue has already been reported, and only affects sites using fetchmail. A workaround has been noted in the bug:

http://bugs.contribs.org/show_bug.cgi?id=2223
Title: spamassassin doesn't work in SME7 for fetchmail
Post by: svangool on January 13, 2007, 01:53:43 AM
Hi Gordonr,

I will feel the negative waves coming over me, but I do have some comments here:
1 There are people really seriously using fetchmail for retrieving external e-mail accounts like hotmail and pop accounts, I combine it with "freepops", which works perfectly on SME.
2 I do find that potential bugs should be reported in the bugtracker.
3 I know that Charlie and others are heavily/consistently directing people to the bugtracker, but did you ever really read the thread you are mentioning? I lost track there.
4 I don't find the bug tracker the best structured source to look for a solution of a problem, I think that should be the forum. I would promote, when a solution is found, that it will be reported in the "normal fora" in a way that an average user/developer understands the problem and the workaround.

To conclude, is there anyone who can explain to me the best workaround that can be derived from http://bugs.contribs.org/show_bug.cgi?id=2223 ???

If I can help somehow in this matter, let me know.

Sjef.
Title: spamassassin doesn't work in SME7 for fetchmail
Post by: william_syd on January 13, 2007, 02:56:16 AM
Quote from: "svangool"

To conclude, is there anyone who can explain to me the best workaround that can be derived from http://bugs.contribs.org/show_bug.cgi?id=2223 ???


Sjef.


Charlie has provided a workaround for Mutidrop in server/gateway mode.

I have the fetchmail contrib (multi-pop). The suggestion from Gordon it to reactivate spam checking for local mail. This is the option I took.

Code: [Select]
mkdir -p /etc/e-smith/templates-custom/var/service/qpsmtpd/config/peers/local
ln -s /etc/e-smith/templates/var/service/qpsmtpd/config/plugins/70spamassassin /etc/e-smith/templates-custom/var/service/qpsmtpd/config/peers/local/70spamassassin
expand-template /var/service/qpsmtpd/config/peers/local
signal-event email-update


Before...
Code: [Select]
#------------------------------------------------------------
#       !!DO NOT MODIFY THIS FILE!!
#
# Manual changes will be lost when this file is regenerated.
#
# Please read the developer's guide, which is available
# at http://wiki.contribs.org/development/
#
# Copyright (C) 1999-2006 Mitel Networks Corporation
#------------------------------------------------------------

auth/auth_cvm_unix_local cvm_socket /var/lib/cvm/cvm-unix-local.socket enable_smtp no enable_ssmtp yes
# 10check_earlytalker disabled for local connections
# 12count_unrecognized_commands disabled for local connections
# bcc disabled
check_relay
check_norelay

# 16require_resolvable_fromhost disabled for local connections
check_basicheaders 1
# 20rhsbl disabled for local connections
# 22dnsbl disabled for local connections
check_badmailfrom
check_badrcptto_patterns
check_badrcptto
check_spamhelo
# check_smtp_forward not required


rcpt_ok
virus/pattern_filter check=patterns action=deny

tnef2mime

# 70spamassassin disabled for local connections
virus/clamav clamscan_path=/usr/bin/clamdscan action=reject max_size=25000000
queue/qmail-queue


After...
Code: [Select]
#------------------------------------------------------------
#       !!DO NOT MODIFY THIS FILE!!
#
# Manual changes will be lost when this file is regenerated.
#
# Please read the developer's guide, which is available
# at http://wiki.contribs.org/development/
#
# Copyright (C) 1999-2006 Mitel Networks Corporation
#------------------------------------------------------------

auth/auth_cvm_unix_local cvm_socket /var/lib/cvm/cvm-unix-local.socket enable_smtp no enable_ssmtp yes
# 10check_earlytalker disabled for local connections
# 12count_unrecognized_commands disabled for local connections
# bcc disabled
check_relay
check_norelay

# 16require_resolvable_fromhost disabled for local connections
check_basicheaders 1
# 20rhsbl disabled for local connections
# 22dnsbl disabled for local connections
check_badmailfrom
check_badrcptto_patterns
check_badrcptto
check_spamhelo
# check_smtp_forward not required


rcpt_ok
virus/pattern_filter check=patterns action=deny

tnef2mime

spamassassin reject_threshold 10 munge_subject_threshold 3
virus/clamav clamscan_path=/usr/bin/clamdscan action=reject max_size=25000000
queue/qmail-queue

Could a moderator please prune/split this thread.
Title: spamassassin doesn't work in SME7 for fetchmail
Post by: svangool on January 13, 2007, 03:44:34 AM
Hi William,

Thank you very much for your answer, I know these things use a lot of time  !!!

But .....  with your first two lines you are confirming my statement about "fuzziness": "Charlie has ..." and "The suggestion from Gordon ...". I do have a server/gateway system, does that mean I have to go with Charlies solution???

P.S.: I do agree, this thread should better be split now.

Thanks again, Sjef.
Title: spamassassin doesn't work in SME7 for fetchmail
Post by: william_syd on January 13, 2007, 04:07:34 AM
My general overview...

Gordon's WA can be applied in all situations.

Charlie states he only wants to deal with MultiDrop and as such I did not look into his method.

In summary...

I'm lazy. I wanted a fix NOW and given it's a home setup I can accept the slowdown in mail sending in exchange for a reduction in spam.
Title: spamassassin doesn't work in SME7 for fetchmail
Post by: gordonr on January 13, 2007, 11:23:04 AM
Quote from: "william_syd"

Could a moderator please prune/split this thread.

Done (before I noticed your request).
Title: spamassassin doesn't work in SME7 for fetchmail
Post by: Fraunhofer on January 13, 2007, 11:57:27 AM
Thank you very much , it Works !

Marcel
Title: spamassassin doesn't work in SME7 for fetchmail
Post by: gordonr on January 13, 2007, 12:44:13 PM
Quote from: "svangool"
Hi Gordonr,

I will feel the negative waves coming over me, but I do have some comments here:


I've split my reply into a new thread about FAQ maintenance and forum moderators.
Title: spamassassin doesn't work in SME7 for fetchmail
Post by: CharlieBrady on January 13, 2007, 10:42:20 PM
Quote from: "william_syd"

Charlie has provided a workaround for Mutidrop in server/gateway mode.


My suggestion in comment #6 is valid for any use of fetchmail, in any mode. Just change localhost to 127.0.0.2 in /etc/fetchmail.conf (via a custom template).
Title: spamassassin doesn't work in SME7 for fetchmail
Post by: william_syd on January 13, 2007, 11:53:20 PM
Quote from: "CharlieBrady"
Quote from: "william_syd"

Charlie has provided a workaround for Mutidrop in server/gateway mode.


My suggestion in comment #6 is valid for any use of fetchmail, in any mode. Just change localhost to 127.0.0.2 in /etc/fetchmail.conf (via a custom template).


Thanks.

However I don't have a /etc/fetchmail.conf

The box is a sme7.0 with Schrrim's FetchMail Contrib (http://www.schirrms.net/sme/SMEFetchMail.php) then updated to 7.1.

I do have a /etc/fetchmail but no mention of localhost.

I do understand that you may only want to deal with what comes standard with SME.
Title: spamassassin doesn't work in SME7 for fetchmail
Post by: SchulzStefan on January 15, 2007, 08:42:45 PM
It's hard for me to understand, what this discussion is about?

The point is, that by announcing the update from 7.0 to 7.1 those users who had updated and are running a multidrop as catchall in STANDARD MODE (NO ADDONS!) are left alone with a bunch of spam! Everyone of us knows what it means, to die in spam.

If there's a solution, it has to be launched in the community. Easy and clearly in understanding and implementing for everybody. How about a patch via yum?
Title: spamassassin doesn't work in SME7 for fetchmail
Post by: svangool on January 15, 2007, 09:36:44 PM
The solution that was posted by william_syd at 13 Jan 2007 02:56 in this same thread earlier, works fine, I tested it.

Sjef
Title: spamassassin doesn't work in SME7 for fetchmail
Post by: gordonr on January 15, 2007, 09:38:24 PM
Quote from: "SchulzStefan"

If there's a solution, it has to be launched in the community. Easy and clearly in understanding and implementing for everybody. How about a patch via yum?

There are two solutions, which are being actively worked on in bug 2223. The workarounds have been posted in this thread. An updated package will be released via yum when the best solution is chosen and included in a package.

Packages and patches come out as quickly as the developers can find time to do them. I'm not sure what else you expect.
Title: spamassassin doesn't work in SME7 for fetchmail
Post by: smeusr on January 21, 2007, 02:41:52 PM
I applied the patch yesterday and it didn't fix it.

 :(
Title: spamassassin doesn't work in SME7 for fetchmail
Post by: SchulzStefan on January 22, 2007, 11:49:30 AM
Quote from: "gordonr"
Packages and patches come out as quickly as the developers can find time to do them.
That's o.k. for me.

Quote from: "gordonr"
I'm not sure what else you expect.


The sme-box is specially for smaller companies surely the best deal! But not every sysadmin is an IT-Guru. Fighting against SPAM isn't really funny. In this case a simple HOW-TO might have been helpful.