cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
467
Views
0
Helpful
2
Replies

ESA Message Filter

bruce747
Level 1
Level 1

I need to filter on a authentication user account (AD account) and the action is to allow to only send messages to a particular recipient domain, eg: *@recipientdomain.com. Emails destined to other domains should be dropped. The sending email could be anything and can't be used to filter, only the authenticating account(smtpauth). Can this be done and what would the syntax of the message filter be? Thanks.

2 Replies 2

First off I'd add $SMTPAuthID to a spare header or log message, so you know what the ESA is getting.

Then once you know what that is:

Checksmtpauthid:

If ($SMTPAuthID=='whatever its supposed to be')
{ if (rcpt-to != 'recipientdomain\.com')

{

Quarantine ('Policy');

}

{


Fiddle with the logic, make sure its right.
Then change the Quarantine line to Drop();

Thanks, I'll give that a go.