For the first time, I have to accommodate IMAP users, outside the office, so their IP addresses could be anything.
I want to allow authenticated, logged in IMAP users to be able to send (relay) email through SMTP, but I don’t want spammers to, obviously.
But while I’d love in the SMTP site doc to allow only name and password use, I can’t: I need to keep SMTP open to accept email that comes in from from spam filter service, always the same IP address, unauthenticated.
in the servers configuration under “Router/SMTP → Restrictions & Controls → SMTP Inbound Controls” you set:
“Exceptions for authenticated users: Allow all authenticated users to relay”
But be careful and set an event generator/handler to alert you in case of unexpected number of routing events, so that you realize when the credentials have been compromised and you are converted to a spam relay.
The spammers aren’t authenticating - these are anonymous connections?
I have pretty much the same requirement - inbound cannot relay, we have a handful of internal trusted IP addresses, and I have a couple smtp connections that authenticate to relay mail outside.
I do not use either SMTPAllowConnectionsAnonymous=1 or SMTPVerifyAuthenticatedSender=1