Disabling greylisting

1,681 views
Skip to first unread message

Dave Jones

unread,
Apr 9, 2018, 7:39:34 PM4/9/18
to rsp...@googlegroups.com
Can someone give a working config file example for 1.7.2 of how to disable greylisting?  I have done 'enabled = false;' in /etc/rspamd/local.d/greylist.conf.  I have tried setting 'grelist_min_score = 999;' and 'whitelisted_ip = ' but rspamd continues to greylist.

I have looked for the settings to disable the GRELIST_CHECK and GREYLIST_SAVE symbols but don't see where these values should go based on a default 'rspamadm configdump' output.

The UCL seems very flexible -- almost too flexible -- without very detailed documentation.  I am having to spend hours doing trial and error to get things into the proper place before it works as desired.

Thanks,
Dave

Patrick Steiner

unread,
Apr 10, 2018, 2:08:52 AM4/10/18
to rspamd
This is working for me:

/etc/rspamd/local.d/actions.conf:
reject = 999;
add_header = 5;
rewrite_subject = 15;
greylist = 999;


/etc/rspamd/override.d/greylist.conf:
enabled = false;


Then I get the following in the logs:
018-04-09 14:46:12 #19174(main) <hk5jmy>; cfg; rspamd_config_is_module_enabled: lua module greylist is disabled in the configuration
2018-04-09 15:09:53 #19448(main) <bewjn7>; cfg; rspamd_config_is_module_enabled: lua module greylist is disabled in the configuration

Dave Jones

unread,
Apr 10, 2018, 2:54:33 PM4/10/18
to rsp...@googlegroups.com
No matter what I try I am still getting greylisting hits in my /var/log/rspamd/rspamd.log.  Seems the mx_check also triggers greylisting when there is an MX_INVALID hit.

On Tue, Apr 10, 2018 at 7:44 AM, Dave Jones <da...@jonesol.com> wrote:
Thank you.  I had greylist.conf in local.d.  Trying this now in override.d.

--
You received this message because you are subscribed to the Google Groups "rspamd" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rspamd+unsubscribe@googlegroups.com.
Visit this group at https://groups.google.com/group/rspamd.


Dave Jones

unread,
Apr 11, 2018, 11:15:00 AM4/11/18
to rsp...@googlegroups.com

And I also did this to disable greylisting in the check_mx module:

local.d/check_mx.conf
greylist_invalid = false;

Dave Jones

unread,
Apr 11, 2018, 8:17:00 PM4/11/18
to rsp...@googlegroups.com
Something is seriously strange/wrong with the RHEL/CentOS 6 official RPM.  I am able to disable greylisting on my test server running CentOS 7:

2018-04-11 18:49:11 #4718(main) <45udhi>; cfg; rspamd_config_is_module_enabled: lua module greylist is disabled in the configuration

but no matter what I do I can not get greylisting disabled trying every option possible:

rspamadm configdump

greylist {
    ipv6_mask = 64;
    whitelist_domains_url [
        "/etc/rspamd/local.d/greylist-whitelist-domains.inc",
    ]
    greylist_min_score = 999;
    expire = 86400;
    enabled = false;
    ipv4_mask = 19;
    message = "Try again later in 5 minutes.";
    max_data_len = 10000;
    action = "no action";
    key_prefix = "rg";
    timeout = 300;
}

Notice the message above is not even showing up below in the rspamd.log -- "in 5 minutes" is not there:

Apr 11 19:04:19 mr13 postfix/cleanup[16811]: 969A8148072C: milter-reject: END-OF-MESSAGE from omp.e.nationalgeographic.com[199.7.202.190]: 4.7.1 Try again later; from=<n...@e.nationalgeographic.com> to=<mccui...@rheacounty.org> proto=ESMTP helo=<omp.e.nationalgeographic.com>

I feel like I have been wasting my time making config changes that aren't even being read.  All servers are running rspamd-1.7.3-1.x86_64 and I have rsync'd the /etc/rspamd directory from the working C7 box to the non-working C6.9 production servers but they act differently.

Dave

Vsevolod Stakhov

unread,
Apr 12, 2018, 2:36:38 AM4/12/18
to Dave Jones, rsp...@googlegroups.com
> <http://omp.e.nationalgeographic.com>[199.7.202.190]: 4.7.1 Try again
> later; from=<n...@e.nationalgeographic.com
> <mailto:n...@e.nationalgeographic.com>> to=<mccui...@rheacounty.org
> <mailto:mccui...@rheacounty.org>> proto=ESMTP
> helo=<omp.e.nationalgeographic.com <http://omp.e.nationalgeographic.com>>
>
> I feel like I have been wasting my time making config changes that
> aren't even being read.  All servers are running rspamd-1.7.3-1.x86_64
> and I have rsync'd the /etc/rspamd directory from the working C7 box to
> the non-working C6.9 production servers but they act differently.

Why do you show Postfix log line without the corresponding lines from
Rspamd log? All config changes are displayed by `rspamadm configdump`
command, there is no magic at all. I'm absolutely sure that you have a
mistake in your MTA setup.
Reply all
Reply to author
Forward
0 new messages