Block outgoing mail with From address that doesn't exist
Hello,
I would like to block outgoing email from users who authenticate with a valid username/password, but use a non-existent "From" address to send their emails.
I've read about the "Experimental: Rewrite From: header to match actual sender" option, but from what I can tell this will only show an informational message in the exim logs - it will not actually block the outgoing email.
Think of a mail client configured with proper credentials for the incoming/outgoing mailserver (ie. info@domain.com) but with a "From" address that does not exist (ie first.lastname@domain.com)
With the default configuration, the email will go through and will get delivered to the destination email address (the receiver will of course not be able to reply, since replying to first.lastname@domain.com will go nowhere).
Is there any option to block this email from even getting send? Can exim check that the From address does not exist on the server and block the email from getting sent?
Thanks in advance,
George
-
Hi, Try setting up the option that says sender verification callout, check whether that also checks for mails that are send out.. 0 -
Hello, You could try using the option referenced in the previous post. It's found under the "Mail" tab in "WHM >> Exim Configuration Manager >> Basic Editor": Sender Verification Callouts Per it's description: Use callouts to verify the existence of email senders. Exim will connect to the mail exchanger for a given address to verify it exists before accepting mail from it. Also, note the "EXPERIMENTAL: Rewrite From: header to match actual sender" does more than just add information to the Exim logs. While it won't block the message, it actually rewrites the from address to match the actual email user used to authenticate. Thank you. 0
Please sign in to leave a comment.
Comments
2 comments