Koozali.org: home of the SME Server

Obsolete Releases => SME 9.x Contribs => Topic started by: Parsival1973 on January 15, 2017, 08:39:24 PM

Title: How Do I Remove Greylisting
Post by: Parsival1973 on January 15, 2017, 08:39:24 PM
Hello, not sure if appropriate forum or not.

I would like to know how I can remove greylisting from my server.

Thank you,
Title: Re: How Do I Remove Greylisting
Post by: Stefano on January 16, 2017, 07:52:23 AM
Well, how did you enable it? :-)
Title: Re: How Do I Remove Greylisting
Post by: Parsival1973 on January 16, 2017, 08:00:54 AM
I followed the directions posted here...

https://wiki.contribs.org/Greylisting
Title: Re: How Do I Remove Greylisting
Post by: Stefano on January 16, 2017, 09:47:35 AM
ok..
so

Code: [Select]
rm /etc/e-smith/templates-custom/var/service/qpsmtpd/config/peers/0/10greylisting
rm /etc/e-smith/templates-custom/var/service/qpsmtpd/config/peers/0/05whitelist_soft
rm /etc/e-smith/templates-custom/var/service/qpsmtpd/config/whitelisthosts/10whitelisthosts
/sbin/e-smith/expand-template /var/service/qpsmtpd/config/peers/0
signal-event email-update
Title: Re: How Do I Remove Greylisting
Post by: brianr on January 16, 2017, 12:25:10 PM
ok..
so

Code: [Select]
rm /etc/e-smith/templates-custom/var/service/qpsmtpd/config/peers/0/10greylisting
rm /etc/e-smith/templates-custom/var/service/qpsmtpd/config/peers/0/05whitelist_soft
rm /etc/e-smith/templates-custom/var/service/qpsmtpd/config/whitelisthosts/10whitelisthosts
/sbin/e-smith/expand-template /var/service/qpsmtpd/config/peers/0
signal-event email-update

I've added these instructions to the Wiki..

https://wiki.contribs.org/Greylisting
Title: Re: How Do I Remove Greylisting
Post by: Stefano on January 16, 2017, 12:35:10 PM
I've added these instructions to the Wiki..

https://wiki.contribs.org/Greylisting

Thank you
Title: Re: How Do I Remove Greylisting
Post by: mmccarn on January 16, 2017, 01:06:30 PM
If you're having performance problems and only need to fine-tune the settings you could set greylisting in "test" mode, or turn it off in the custom template used to enable it.

Here is the code from the wiki page that enables greylisting:
Code: [Select]
echo greylisting black_timeout 60 db_dir /var/lib/qpsmtpd/greylisting > /etc/e-smith/templates-custom/var/service/qpsmtpd/config/peers/0/10greylisting
/sbin/e-smith/expand-template /var/service/qpsmtpd/config/peers/0
signal-event email-update

Adding "mode testonly" :
Code: [Select]
echo greylisting black_timeout 60 db_dir /var/lib/qpsmtpd/greylisting mode testonly> /etc/e-smith/templates-custom/var/service/qpsmtpd/config/peers/0/10greylisting
/sbin/e-smith/expand-template /var/service/qpsmtpd/config/peers/0
signal-event email-update

Quote from: perldoc /usr/share/qpsmtpd/plugins/greylisting
mode ( denysoft | testonly | off )
           Operating mode. In 'denysoft' mode we log and track connections and issue DENYSOFTs for black
           connections; in 'testonly' mode we log and track connections as normal, but never actually issue
           DENYSOFTs (useful for seeding the database and testing without impacting deliveries); in 'off'
           mode we do nothing (useful for turning greylisting off globally if using per_recipient configs).
           Default: denysoft.
Title: Re: How Do I Remove Greylisting
Post by: Parsival1973 on January 16, 2017, 03:49:35 PM
Thank you very much.