Greylisting Toggle menu not working properly
Greylisting Toggle menu not working properly
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...
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...
- shawniverson
- Posts: 3649
- Joined: 13 Jan 2014 23:30
- Location: Indianapolis, Indiana USA
- Contact:
Re: Greylisting Toggle menu not working properly
Latest, 3.0.1.8
Re: Greylisting Toggle menu not working properly
Same here. Can't disable it after upgrading to 3.0.1.8
- shawniverson
- Posts: 3649
- Joined: 13 Jan 2014 23:30
- Location: Indianapolis, Indiana USA
- Contact:
Re: Greylisting Toggle menu not working properly
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
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 !
-------------
[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
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
Code: Select all
sudo grep -ri 'sqlgrey' /var/log
Re: Greylisting Toggle menu not working properly
Also, if you want to get really nasty, you could always:
/etc/sqlgrey/clients_fqdn_whitelist.local
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
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...
/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
Re: Greylisting Toggle menu not working properly
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
[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
the documentation is available by runningmayrmart 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
Code: Select all
sqlgrey --man
My guess is that you'll want to remove the
Code: Select all
check_policy_service inet:127.0.0.1:2501
Re: Greylisting Toggle menu not working properly
You can enable in Mailwatch the greylisting by editing the filebut still no mails and no greylisting menu in web Frontend
/var/www/html/mainscanner/conf.php
Code: Select all
// Greylisting menu item
define('SHOW_GREYLIST', true);