Koozali.org: home of the SME Server

spamassassin doesn't work in SME7 for fetchmail

Fraunhofer

spamassassin doesn't work in SME7 for fetchmail
« on: January 12, 2007, 04:51:03 PM »
Spamassasin doesn't work with SME 7.1 :(

Offline gordonr

  • *
  • 646
  • +0/-0
    • http://www.smeserver.com.au/
Please report issues in the bug tracker
« Reply #1 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
............

Offline svangool

  • ****
  • 73
  • +0/-0
spamassassin doesn't work in SME7 for fetchmail
« Reply #2 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.
......

Offline william_syd

  • *****
  • 1,608
  • +0/-0
  • Nothing to see here.
    • http://www.magicwilly.info
spamassassin doesn't work in SME7 for fetchmail
« Reply #3 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.
Regards,
William

IF I give advise.. It's only if it was me....

Offline svangool

  • ****
  • 73
  • +0/-0
spamassassin doesn't work in SME7 for fetchmail
« Reply #4 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.
......

Offline william_syd

  • *****
  • 1,608
  • +0/-0
  • Nothing to see here.
    • http://www.magicwilly.info
spamassassin doesn't work in SME7 for fetchmail
« Reply #5 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.
Regards,
William

IF I give advise.. It's only if it was me....

Offline gordonr

  • *
  • 646
  • +0/-0
    • http://www.smeserver.com.au/
spamassassin doesn't work in SME7 for fetchmail
« Reply #6 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).
............

Fraunhofer

spamassassin doesn't work in SME7 for fetchmail
« Reply #7 on: January 13, 2007, 11:57:27 AM »
Thank you very much , it Works !

Marcel

Offline gordonr

  • *
  • 646
  • +0/-0
    • http://www.smeserver.com.au/
spamassassin doesn't work in SME7 for fetchmail
« Reply #8 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.
............

Offline CharlieBrady

  • *
  • 6,918
  • +3/-0
spamassassin doesn't work in SME7 for fetchmail
« Reply #9 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).

Offline william_syd

  • *****
  • 1,608
  • +0/-0
  • Nothing to see here.
    • http://www.magicwilly.info
spamassassin doesn't work in SME7 for fetchmail
« Reply #10 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 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.
Regards,
William

IF I give advise.. It's only if it was me....

Offline SchulzStefan

  • *
  • 620
  • +0/-0
spamassassin doesn't work in SME7 for fetchmail
« Reply #11 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?
And then one day you find ten years have got behind you.

Time, 1973
(Mason, Waters, Wright, Gilmour)

Offline svangool

  • ****
  • 73
  • +0/-0
spamassassin doesn't work in SME7 for fetchmail
« Reply #12 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
......

Offline gordonr

  • *
  • 646
  • +0/-0
    • http://www.smeserver.com.au/
spamassassin doesn't work in SME7 for fetchmail
« Reply #13 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.
............

Offline smeusr

  • ****
  • 74
  • +0/-0
spamassassin doesn't work in SME7 for fetchmail
« Reply #14 on: January 21, 2007, 02:41:52 PM »
I applied the patch yesterday and it didn't fix it.

 :(