Disable email spoofing with exim

brandon45

Member
May 26, 2014
7
0
1
cPanel Access Level
Root Administrator
recently a couple of email accounts on my server got compromised and bots started to use them to send spam mails, but they used "from: " with domains that are not even on my server like @yahoo.com etc..
I would like to still be able to send mails from the same domain as the authenticated user but not from other domains or at least not domains that aren't on my server
for example if I have mydomain1.com and mydomain2.com on my server and I authenticate with [email protected] I want to be able to send mails with "from:"[email protected] but not "[email protected]" and "[email protected]"