Greylisting Toggle menu not working properly

Report bugs and workarounds
Post Reply
e-d-i-t
Posts: 94
Joined: 27 Apr 2016 19:28
Contact:

Greylisting Toggle menu not working properly

Post by e-d-i-t »

So I disabled Greylisting by using menu 6) MailWatch Settings, 1) Toggle Greylisting
But now, every time I visit this menu it states that Greylisting is enabled (and it's not) so I can't enable it.

So everytime I go into this menu:

[EFA] Enable/Disable greylisting

[EFA] Greylisting will temporarily reject any email from a sender it
[EFA] does not recognize. If the mail is legitimate the originating server
[EFA] will, after a delay, try again and, if sufficient time has elapsed,
[EFA] the email will be accepted.

[EFA] This however causes an delay in receiving mail, by default this system
[EFA] is configured to reject any email for 5 minutes.
[EFA] Not all admin's like this setup so giving you the option to disable
[EFA] greylisting on this system.

[EFA] Greylisting is currently ENABLED
[EFA] Would you like to DISABLE greylisting? [y/N/c]: y
postfix/postfix-script: refreshing the Postfix mail system
Shutting down SQLgrey: Coudn't read pidfile: /var/run/sqlgrey.pid
[ OK ]
[EFA] Greylisting DISABLED
Press [Enter] key to continue...
User avatar
shawniverson
Posts: 3649
Joined: 13 Jan 2014 23:30
Location: Indianapolis, Indiana USA
Contact:

Re: Greylisting Toggle menu not working properly

Post by shawniverson »

Version?
121mhz
Posts: 8
Joined: 21 Nov 2014 21:49

Re: Greylisting Toggle menu not working properly

Post by 121mhz »

Same here. Can't disable it after upgrading to 3.0.1.8
User avatar
shawniverson
Posts: 3649
Joined: 13 Jan 2014 23:30
Location: Indianapolis, Indiana USA
Contact:

Re: Greylisting Toggle menu not working properly

Post by shawniverson »

grrr....can't reproduce but know its there. Do either of you have a snippet of your postfix config you could share? I wonder if it has something to do with how things are in the config....
mayrmart
Posts: 15
Joined: 15 May 2016 15:50

Re: Greylisting Toggle menu not working properly

Post by mayrmart »

Same here - cant disable greylisting in 3.0.1.8 !
-------------
[EFA] Greylisting is currently ENABLED
[EFA] Would you like to DISABLE greylisting? [y/N/c]: Y
postfix/postfix-script: refreshing the Postfix mail system
Shutting down SQLgrey: Coudn't read pidfile: /var/run/sqlgrey.pid
[ OK ]
[EFA] Greylisting DISABLED
Press [Enter] key to continue...

--------------
but its still enabled !
stusmith
Posts: 63
Joined: 27 Jan 2017 15:24

Re: Greylisting Toggle menu not working properly

Post by stusmith »

mayrmart wrote: 06 Mar 2017 17:30 Same here - cant disable greylisting in 3.0.1.8 !
-------------
[EFA] Greylisting is currently ENABLED
[EFA] Would you like to DISABLE greylisting? [y/N/c]: Y
postfix/postfix-script: refreshing the Postfix mail system
Shutting down SQLgrey: Coudn't read pidfile: /var/run/sqlgrey.pid
[ OK ]
[EFA] Greylisting DISABLED
Press [Enter] key to continue...

--------------
but its still enabled !

post the output of the following

Code: Select all

sudo service sqlgrey status

sudo chkconfig sqlgrey --list
also try

Code: Select all

sudo grep -ri 'sqlgrey' /var/log
stusmith
Posts: 63
Joined: 27 Jan 2017 15:24

Re: Greylisting Toggle menu not working properly

Post by stusmith »

Also, if you want to get really nasty, you could always:

/etc/sqlgrey/clients_fqdn_whitelist.local

Code: Select all


/.*/


that should match any possible domain and 'whitelist' them in sqlgrey ( bypass greylisting for matches ). it's a dirty workaround, but I've already found a ton of providers who don't resend via the same IP address, so I've had to white list them via

Code: Select all


*.stupidMTA.com
stupidMTA.com

Admittedly, I'm lucky in that I only have a single mail gateway to worry about, so I really shouldn't poo-poo folks who run a bigger environment...
mayrmart
Posts: 15
Joined: 15 May 2016 15:50

Re: Greylisting Toggle menu not working properly

Post by mayrmart »

Current Status :

[efa@efa ~]$ sudo service sqlgrey status
[sudo] password for efa:
sqlgrey is stopped
[efa@efa ~]$ sudo chkconfig sqlgrey --list
sqlgrey 0:off 1:off 2:off 3:off 4:off 5:off 6:off
[efa@efa ~]$
--------------------
efa menu says :
[EFA] Greylisting is currently ENABLED
[EFA] Would you like to DISABLE greylisting? [y/N/c]:
---------------
[efa@efa ~]$ sudo grep -ri 'sqlgrey' /var/log
/var/log/secure:Mar 6 19:10:34 efa sudo: efa : TTY=pts/0 ; PWD=/home/efa ; USER=root ; COMMAND=/sbin/service sqlgrey status
/var/log/secure:Mar 6 19:10:43 efa sudo: efa : TTY=pts/0 ; PWD=/home/efa ; USER=root ; COMMAND=/sbin/chkconfig sqlgrey --list
/var/log/secure:Mar 6 19:13:30 efa sudo: efa : TTY=pts/0 ; PWD=/home/efa ; USER=root ; COMMAND=/bin/grep -ri sqlgrey /var/log
------------
i can manually start SQL Grey

[efa@efa ~]$ sudo service sqlgrey start
Starting SQLgrey: [ OK ]
[efa@efa ~]$ sudo service sqlgrey status
sqlgrey (pid 19149) is running...

but still no mails and no greylisting menu in web Frontend
stusmith
Posts: 63
Joined: 27 Jan 2017 15:24

Re: Greylisting Toggle menu not working properly

Post by stusmith »

mayrmart wrote: 06 Mar 2017 18:18 Current Status :

[efa@efa ~]$ sudo service sqlgrey status
[sudo] password for efa:
sqlgrey is stopped
[efa@efa ~]$ sudo chkconfig sqlgrey --list
sqlgrey 0:off 1:off 2:off 3:off 4:off 5:off 6:off
[efa@efa ~]$
--------------------
efa menu says :
[EFA] Greylisting is currently ENABLED
[EFA] Would you like to DISABLE greylisting? [y/N/c]:
---------------
[efa@efa ~]$ sudo grep -ri 'sqlgrey' /var/log
/var/log/secure:Mar 6 19:10:34 efa sudo: efa : TTY=pts/0 ; PWD=/home/efa ; USER=root ; COMMAND=/sbin/service sqlgrey status
/var/log/secure:Mar 6 19:10:43 efa sudo: efa : TTY=pts/0 ; PWD=/home/efa ; USER=root ; COMMAND=/sbin/chkconfig sqlgrey --list
/var/log/secure:Mar 6 19:13:30 efa sudo: efa : TTY=pts/0 ; PWD=/home/efa ; USER=root ; COMMAND=/bin/grep -ri sqlgrey /var/log
------------
i can manually start SQL Grey

[efa@efa ~]$ sudo service sqlgrey start
Starting SQLgrey: [ OK ]
[efa@efa ~]$ sudo service sqlgrey status
sqlgrey (pid 19149) is running...

but still no mails and no greylisting menu in web Frontend
the documentation is available by running

Code: Select all

sqlgrey --man
--EDITED-- with correct IP for loopback address

My guess is that you'll want to remove the

Code: Select all

check_policy_service inet:127.0.0.1:2501
from the /etc/postfix/main.cf file. It's probably under smtpd_recipient_restrictions. Don't forget to remove any extra commas if you just comment the line out to test ( I recommend doing this first ).
ajmind
Posts: 55
Joined: 28 Mar 2017 15:26
Location: Eltville, Germany

Re: Greylisting Toggle menu not working properly

Post by ajmind »

but still no mails and no greylisting menu in web Frontend
You can enable in Mailwatch the greylisting by editing the file

/var/www/html/mainscanner/conf.php

Code: Select all

// Greylisting menu item
define('SHOW_GREYLIST', true);
Post Reply