Quantcast

Courierfilter + spamassassin = smtp slow.

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Courierfilter + spamassassin = smtp slow.

mariobetim
Hi,

After activating courierfilter with spamassassin, the smtp service was slow.

Spamassassin is very important to block spam's!

Questions:
1. Is it possible to include whitelist for the courierfilter, thus reducing the load to the spamassassin whitelist?

2. Is there any way to do tuning to alleviate smtp?

Thanks.

-----------------------[ www.viciotemcura.com ]-----------
 "A graça de nosso Senhor Jesus Cristo seja com todos vós."


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
courier-users mailing list
[hidden email]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Courierfilter + spamassassin = smtp slow.

Szépe Viktor
Hello Mário!

You could use courier-pythonfilter's "whitelist BLOCK" module:
https://github.com/szepeviktor/courier-pythonfilter/blob/master/pythonfilter.conf#L32

Then you add a line to /etc/courier/smtpaccess/default
212.52.165.208<TAB>allow,BLOCK

See other whitelist modules too.

All the best!!


Idézem/Quoting Mário Ferreira <[hidden email]>:

> Hi,
>
> After activating courierfilter with spamassassin, the smtp service was
> slow.
>
> Spamassassin is very important to block spam's!
>
> Questions:
> 1. Is it possible to include whitelist for the courierfilter, thus reducing
> the load to the spamassassin whitelist?


SZÉPE Viktor
https://github.com/szepeviktor/debian-server-tools/blob/master/CV.md
--
+36-20-4242498  [hidden email]  skype: szepe.viktor
Budapest, III. kerület





------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
courier-users mailing list
[hidden email]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Courierfilter + spamassassin = smtp slow.

Jérôme Blion
In reply to this post by mariobetim
Le 2017-02-08 13:25, Mário Ferreira a écrit :

> Hi,
>
>  After activating courierfilter with spamassassin, the smtp service
> was slow.
>
>  Spamassassin is very important to block spam's!
>
>  Questions:
>  1. Is it possible to include whitelist for the courierfilter, thus
> reducing the load to the spamassassin whitelist?
>
>  2. Is there any way to do tuning to alleviate smtp?
>
>  Thanks.
>

Hello,

You can use latest courier-pythonfilter's versions to "chain" whitelist
and spamassassin.

HTH.
Jérôme Blion.

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
courier-users mailing list
[hidden email]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Courierfilter + spamassassin = smtp slow.

Bowie Bailey
In reply to this post by mariobetim
On 2/8/2017 7:25 AM, Mário Ferreira wrote:
Hi,

After activating courierfilter with spamassassin, the smtp service was slow.

Spamassassin is very important to block spam's!

Questions:
1. Is it possible to include whitelist for the courierfilter, thus reducing the load to the spamassassin whitelist?

2. Is there any way to do tuning to alleviate smtp?


You should probably look at your spamassassin setup for tuning. 

- Are you loading any 3rd-party rules?
- Have you created any custom rules that might be causing problems?
- Is your machine swapping at all?  If so, you may need to add more RAM or reduce the number of spamd processes.

You ARE using spamc/spamd, right?  If you are calling spamassassin for every email, that will be very slow.

By default, spamd will log how much time it takes to process each email.  Take a look in the maillog.

Check out the spamassassin mailing list for more info.

--
Bowie

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
courier-users mailing list
[hidden email]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Courierfilter + spamassassin = smtp slow.

mariobetim
In reply to this post by mariobetim
On 2/8/2017 7:25 AM, Mário Ferreira wrote:
Hi,

After activating courierfilter with spamassassin, the smtp service was slow.

Spamassassin is very important to block spam's!

Questions:
1. Is it possible to include whitelist for the courierfilter, thus reducing the load to the spamassassin whitelist?

2. Is there any way to do tuning to alleviate smtp?

You should probably look at your spamassassin setup for tuning. 

Courier-perl-filter + spamassassin.

- Are you loading any 3rd-party rules?

>> No.

- Have you created any custom rules that might be causing problems?

>> No. Only default rules .

- Is your machine swapping at all?  If so, you may need to add more RAM or reduce the number of spamd processes.

>> 16gb RAM
>>  No swapping.


You ARE using spamc/spamd, right?  If you are calling spamassassin for every email, that will be very slow.

By default, spamd will log how much time it takes to process each email.  Take a look in the maillog.

Check out the spamassassin mailing list for more info.

--
Bowie
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot_______________________________________________
courier-users mailing list
[hidden email]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
courier-users mailing list
[hidden email]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users
Loading...