My requirement is slightly different from this question : Only allowing authenticated user on host to relay emails to external address in Exchange Server 2013
We are using Exchange-2016 and need to send Anonymous mail(doesn't have mailbox) to external domain like Gmail from dedicated Application/DB Server which have limited access and it's IP is maintained in Exchange Server Application mail relay
For Example : Database Server IP is added in Exchange Server Application mail relay
Following mail is valid because From Mail is help@myCompanydomain.in
EXEC msdb.dbo.sp_send_dbmail
@profile_name='AutomatedMail',
@body = 'test body',
@from_address='AutomatedMail <help@myCompanydomain.in>',
@body_format ='HTML',
@recipients = 'coolBuddy1980@gmail.com',
@subject = 'test Email';
But below mail is spoof mail and must be stopped as From Mail is CMD@myCompanydomain.in or could be my colleague(basically want to stop internal spoofing)
EXEC msdb.dbo.sp_send_dbmail
@profile_name='AutomatedMail',
@body = 'Kindly Transfer 10000$ to Account in my bank ASAP',
@from_address='ManagingDirector <CMD@myCompanydomain.in>',
@body_format ='HTML',
@recipients = 'Victim@gmail.com',
@subject = 'Send Money urgently';
Kindly suggest if we can add list of email address in Anonymous Email address like in following command
[PS] C:\>Set-ReceiveConnector "EXSERVER\Anon Relay EXSERVER" -PermissionGroups AnonymousUsers
[PS] C:\>Get-ReceiveConnector "EXSERVER\Anon Relay EXSERVER" | Add-ADPermission -User 'NT AUTHORITY\Anonymous Logon' -ExtendedRights MS-Exch-SMTP-Accept-Any-Recipient*
is there any option -ExtendedRights MS-Exch-SMTP-Send-Filter-Sender "help@myCompanydomain.in; noreply@myCompanydomain.in" which allow only sending anonymous email with predefined email address?
(MS-Exch-SMTP-Send-Filter-Sender is just an example and not an actual parameter. I have limited info about exchange)
If it is not allowed then authenticated sender is always an option(or DKIM etc.)