Short version:
To make “Mail Rate Limiting” work (it does not out of the box):
Add “noauth” and “nospf” (no quotes on either) on lines by themselves in:
/etc/milter-greylist/greylist.conf
(I did mine right at the top of that first block on non-commented text.)
And enable (or disabled and re-enable) “Rate limiting enabled
” here:
Virtualmin -> Email Settings -> Mail Rate Limiting
Long version:
At least on my version of things setting this:
Virtualmin -> Email Settings -> Mail Rate Limiting
Does nothing on a nearly out-of-the-box install. I demonstrated a similar problem a last year and found a solution (which I left for myself in the forum) but was unsure then whether I had done anything else which might have resulted in that working (as I had tried some other things along the way), today with a newer install I have confirmed that that thread does not have (or no longer has) the complete answer:
https://forum.virtualmin.com/t/mail-rate-limiting-broken-out-of-the-box-ubuntu-24-04/129907/5
However, I believe that I have discovered the issue (or another issue) and how to correct it.
After following my instructions from the link above (which amount to putting “noauth” on a line by itself in the greylist.conf file) I was getting:
2025-08-06T18:30:21.477096+00:00 testsystem001 milter-greylist: smfi_getsymval failed for {I}
2025-08-06T18:30:21.477434+00:00 testsystem001 milter-greylist: (unknown id): Sender IP [the ip] and address <realuser@realdomain.com> are SPF-compliant, bypassing greylist
(and nothing else “milter-greylist” related when I sent a mail). This is because my domain is a real domain with SPF configured (of course) and milter-greylist seems to ignore all things SPFed by default. This does no good if the purpose is to rate-limit outgoing mail to combat spammers with guessed passwords (etc) so “nospf” in the config disables that.
My previous post addressed a problem that I was having then, with non-SPFed (test) domains:
2024-10-31T15:39:13.889351+00:00 xmail2 milter-greylist: User ronetest@newestisotest.com authenticated, bypassing greylisting
Indicating that milter-greylist also allows all mail from authenticated users by default (and ignores the rate limiting), also not useful for combating guessed-password disruption.
This is the equivalent of running the milter-greylist.service with -S and -A flags after them, and that is also an option/will do the same thing, in:
Webmin -> System -> Bootup and Shutdown
Click milter-greylist.service
and add -S -A to the end of the ExecStart line as such:
ExecStart=/usr/sbin/milter-greylist -S -A
And click “Restart Now
”
Ron
SYSTEM INFORMATION | |
---|---|
OS type and version | Ubuntu 24.04.2 |
Virtualmin version | 7.30.8 |