[Rspamd-Users] Regexp Rejecting Authenticated Users

Pete Long pete at valar.uk.net
Tue Dec 7 20:17:55 UTC 2021


On Tue, Dec 07, 2021 at 08:11:46PM +0000, Pete Long wrote:
> Hi all,
> 
> I perhaps have a similar query to Jurgen regarding the usage of regular
> express in Rspamd.
> 
> After checking out a few sites, I found one that had a list of regular
> expressions like those show immediately below.
> 
> /luxury accomomdation/gi
> /luxury accommodations/gi
> ..
> ..
> 
> I used this section in /usr/local/etc/rspamd/local.d/multimap.conf:
> 
> PROBABLE_SPAM {
> 	type = "content";
> 	filter = "headers";
> 	map = "/usr/local/etc/rspamd/local.d/common.spam.regexp.map";
> 	action = "reject";
> 	regexp = true;
> 	}
> 
> I'll admit that I took it on faith to use the 'g' modifier but now that
> I look at the following URL, I cannot find any mention of this modifier.
> 
> https://rspamd.com/doc/modules/regexp.html
> 
> For a while all seemed ok but then at what seemed like a few days, all
> of my submissions to external recipients were being rejected by my mail
> server with the 'PROBABLE_SPAM' reason. This would occur whether I
> submitted a mail externally or on my own LAN which I thought I'd
> whitelisted.
> 
> The only way I could seem to fix this self-inflicted issue was to
> comment out the 'PROBABLE_SPAM' section of multimap.conf and restart the
> rspamd service.
> 
> I have this line in my smtpd.conf:
> 
> listen on bge0 tls pki mydomain.tld \
>     hostname mydomain.tld filter { check_rdns, rspamd }
> 
> If anyone can offer any information on what I did wrong then I'd be
> grateful.
> 
> Thanks for your time.
> 
> 
> Pete.

I apologise, the following in smtpd.conf is the correct line:

listen on bge0 port submission filter { rspamd } tls-require pki mydomain.tld auth hostname mydomain.tld mask-src


Pete.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 3284 bytes
Desc: not available
URL: <https://lists.rspamd.com/pipermail/users/attachments/20211207/2e2d4e2a/attachment.bin>


More information about the Users mailing list