Koozali.org: home of the SME Server

How Do I Remove Greylisting

Offline Parsival1973

  • **
  • 52
  • +0/-0
How Do I Remove Greylisting
« 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,

Offline Stefano

  • *
  • 10,839
  • +2/-0
Re: How Do I Remove Greylisting
« Reply #1 on: January 16, 2017, 07:52:23 AM »
Well, how did you enable it? :-)

Offline Parsival1973

  • **
  • 52
  • +0/-0
Re: How Do I Remove Greylisting
« Reply #2 on: January 16, 2017, 08:00:54 AM »
I followed the directions posted here...

https://wiki.contribs.org/Greylisting

Offline Stefano

  • *
  • 10,839
  • +2/-0
Re: How Do I Remove Greylisting
« Reply #3 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

Offline brianr

  • *
  • 988
  • +2/-0
Re: How Do I Remove Greylisting
« Reply #4 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
« Last Edit: January 16, 2017, 12:33:35 PM by brianr »
Brian j Read
(retired, for a second time, still got 2 installations though)
The instrument I am playing is my favourite Melodeon.
.........

Offline Stefano

  • *
  • 10,839
  • +2/-0
Re: How Do I Remove Greylisting
« Reply #5 on: January 16, 2017, 12:35:10 PM »

Offline mmccarn

  • *
  • 2,626
  • +10/-0
Re: How Do I Remove Greylisting
« Reply #6 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.

Offline Parsival1973

  • **
  • 52
  • +0/-0
Re: How Do I Remove Greylisting
« Reply #7 on: January 16, 2017, 03:49:35 PM »
Thank you very much.