Page 1 of 1

How to block email address or domain

Posted: Tue Dec 21, 2021 10:24 pm
by T4B
hey, can block the mail address in myvestacp ?

Re: mail block

Posted: Fri Dec 24, 2021 10:21 pm
by myVesta
To block Incoming mail

First run:

Code: Select all

vi /etc/exim4/deny_senders
Here you add email or whole domain which you want to block for receiving emails.
You can also use the wildcards.

Example:

Code: Select all

*.win
*@example.com
*.stream
*.bid
*.racing
*.trade
*.cricket
*.download
*.date
*.loan
*.faith
qq.com
126.com
getgoood.com
*.fun
ict.com
procore.com
[email protected]
Each email/domain have to be in separate line.

Re: mail block

Posted: Fri Dec 24, 2021 10:26 pm
by T4B
thank you :P

Re: mail block

Posted: Tue Jun 06, 2023 12:50 am
by bfcrew
How to block outgoing mail to specific address?

Re: How to block email address or domain

Posted: Tue Jun 06, 2023 8:55 am
by myVesta
I know how to block the whole domain - just ADD that domain to MAIL section under any hosting account.

Re: How to block email address or domain

Posted: Tue Jun 06, 2023 10:12 pm
by bfcrew
myVesta wrote: Tue Jun 06, 2023 8:55 am I know how to block the whole domain - just ADD that domain to MAIL section under any hosting account.
Sorry I'm not quite understand, you meant to add the domain intended to MAIL section on MyVesta platform? How?

Re: How to block email address or domain

Posted: Wed Jun 07, 2023 7:33 am
by myVesta
bfcrew wrote: Tue Jun 06, 2023 10:12 pm
myVesta wrote: Tue Jun 06, 2023 8:55 am I know how to block the whole domain - just ADD that domain to MAIL section under any hosting account.
Sorry I'm not quite understand, you meant to add the domain intended to MAIL section on MyVesta platform? How?
Let's say you want to block outgoing emails to BADDOMAIN.COM.
As Admin, go to MAIL section, and just add BADDOMAIN.COM as you normally would in case you want to host it.
Exim4 on your server will then try to do local_delivery to that domain (it will completely ignore MX records of BADDOMAIN.COM domain), and in fact, that way you blocked outgoing emails to that domain.