Block outgoing email

depot123

Verified User
Joined
Mar 27, 2018
Messages
19
Is there any way to block outgoing emails? That is, specific email addresses.

Reason is, I am receiving "complaint about message from" emails from [email protected]
Investigating, I find when a user sends a message with more than one hotmail recipient in the message, Hotmail is not liking this.
For example, I have one outgoing email which a user sent, there were a total of 40 recipients. Of that, 10 were hotmail addresses.

The result is Hotmail/Microsoft blacklisting my IP.

In DirectAdmin, I can block incoming messages in various ways.
Is there a way to block outgoing messages?
 
Create /etc/exim.acl_check_recipient.pre.conf and add this to it:

Code:
deny    senders     = [email protected]
        message     = Error message to return when they try to send a message

Change [email protected] to the sender you want to block. You can use a wildcard to block a whole domain, like *@domain.tld. Replace the error with the one you want to return when they try to send mail. Restart exim. Done. This file will not be replaced on exim update, it will persist.
 
Back
Top