Page 1 of 1

Greylisting Toggle menu not working properly

Posted: 22 Feb 2017 18:44
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...

Re: Greylisting Toggle menu not working properly

Posted: 22 Feb 2017 21:32
by shawniverson
Version?

Re: Greylisting Toggle menu not working properly

Posted: 01 Mar 2017 20:21
by e-d-i-t
Latest, 3.0.1.8

Re: Greylisting Toggle menu not working properly

Posted: 05 Mar 2017 22:35
by 121mhz
Same here. Can't disable it after upgrading to 3.0.1.8

Re: Greylisting Toggle menu not working properly

Posted: 06 Mar 2017 16:33
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....

Re: Greylisting Toggle menu not working properly

Posted: 06 Mar 2017 17:30
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 !

Re: Greylisting Toggle menu not working properly

Posted: 06 Mar 2017 17:51
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

Re: Greylisting Toggle menu not working properly

Posted: 06 Mar 2017 17:57
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...

Re: Greylisting Toggle menu not working properly

Posted: 06 Mar 2017 18:18
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

Re: Greylisting Toggle menu not working properly

Posted: 06 Mar 2017 18:57
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 ).

Re: Greylisting Toggle menu not working properly

Posted: 04 Apr 2017 16:22
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);