Re: [exim] How to disable spamassassin for outgoing messages…

Startseite
Nachricht löschen
Nachricht beantworten
Autor: pencho kuncho
Datum:  
To: exim-users@exim.org
Betreff: Re: [exim] How to disable spamassassin for outgoing messages?
HI,

Yes, my config is close to default. But i think there is other problem. I want to get report scores in header of messages. So, when i set in exim  this config, spamd hangs 100% cpu:
warn    message   = X-Spam_score: $spam_score\n\X-Spam_score_int: $spam_score_int\n\X-Spam_bar: $spam_barspam = mail:truewarn    message   = X-Spam_report: $spam_reportcondition = ${if <{$message_size}{100k}{1}{0}}     spam = mail:true
If I set this:
warn    message   = X-Spam_score: $spam_score\n\X-Spam_score_int: $spam_score_int\n\X-Spam_bar: $spam_barcondition = ${if <{$message_size}{100k}{1}{0}}  spam = mail:true


everything is fine. But then i don't have spam report in mail header.  I was thinking if stop checking outgoing mails, this will help me. Now, i'm not sure. Even i set

accept authenticated = *
accept hosts = +trusted_hosts
this will not help for spamd hangs.

Thanks.






From: Heiko Schlittermann <hs@???>
To: exim-users@???
Sent: Thursday, March 17, 2016 9:19 PM
Subject: Re: [exim] How to disable spamassassin for outgoing messages?

Hi,
pencho kuncho <mkp_71@???> (Do 17 Mär 2016 15:10:52 CET):
> Hi,
> How can i disable spamassassin for outgoing messages? I'll post my acl for spamassassin:
> domainlist local_domains = domain.com
> acl_check_data:
> warn    message   = X-Spam_score: $spam_score\n\                                  X-Spam_score_int: $spam_score_int\n\+                                  X-Spam_bar: $spam_bar                  spam = mail:true
> warn    message   = X-Spam_report: $spam_report           condition = ${if <{$message_size}{100k}{1}{0}}
>                  spam = mail:true
>  
> I read that i should put "hosts = !localhost :" before spamassassin acl , but without success. All mails are scanned. :(


What is "outgoing", what is "incoming"?
Let's think about "outgoing" as "not for my domains" or as "submitted by
known (authenticated) users".

I suppose your configuration is close to the default.  DATA ACL works
for incoming SMTP connections. Having "hosts = !localhost" matches all
messages that come from a host that is not the local host.  In your case
not very helpful, as I suppose that all messages are sent from any other
but your local host.

Mostly matching on the list of the local domains is a good first
approach, or considering messages from authorized connections as
"outgoing".

The "not my domains" approach doesn't help in the DATA ACL, as the
message can have a mixture of local and non local recipients. So the
originator of the message is left … we can't trust the sender, but we
can trust the sending IP (probably), we can trust authenticated
connections.

    acl_check_data:

        accept authenticated = *
        accept hosts = +trusted_hosts

        warn  spam = …

    Best regards from Dresden/Germany
    Viele Grüße aus Dresden
    Heiko Schlittermann
--
SCHLITTERMANN.de ---------------------------- internet & unix support -
Heiko Schlittermann, Dipl.-Ing. (TU) - {fon,fax}: +49.351.802998{1,3} -
gnupg encrypted messages are welcome --------------- key ID: F69376CE -
! key id 7CBF764A and 972EAC9F are revoked since 2015-01 ------------ -
--
## List details at https://lists.exim.org/mailman/listinfo/exim-users
## Exim details at http://www.exim.org/
## Please use the Wiki with this list - http://wiki.exim.org/