mails from specific domains

prashantbhushan

Verified User
Joined
Jul 21, 2006
Messages
199
Location
Pune, India.
Hello,
I have one dedicated DA server. There i have only one domain setup.
I want only mails from specific domains should come on server.
Others get dropped. Is this can be possible ?


Thanks,
Shrinivas.
 
You can turn on SpamBlocker for your domain (search these forums or the information in your /etc/exim.conf file), add your domain name to /etc/virtual/use_rbl_domains, and then whitelist the domains from which you want to receive email, by putting just the domain names into /etc/virtual/whitelist_domains.

Then edit your /etc/exim.conf file.

Above the line OPTIONAL MODIFICATIONS insert this code:
Code:
deny message = Mail from your domain isn't accepted.
While I haven't tested this, I believe it will work. You should test first.

Don't forget to restart exim.

Jeff
 
Hello,
Suppose i have my domain abc.com, then i have to put that domain into /etc/virtual/use_rbl_domains. I want only mails from 123.com and xyz.com. I have to put those domains into whiltelist_domains file. Then Mails from all other domains except these two will get rejected.
Also in exim.conf where should i put this line. There are so many occurences of
OPTIONAL MODIFICATIONS.


Thanks,
Prashant.


You can turn on SpamBlocker for your domain (search these forums or the information in your /etc/exim.conf file), add your domain name to /etc/virtual/use_rbl_domains, and then whitelist the domains from which you want to receive email, by putting just the domain names into /etc/virtual/whitelist_domains.

Then edit your /etc/exim.conf file.

Above the line OPTIONAL MODIFICATIONS insert this code:
Code:
deny message = Mail from your domain isn't accepted.
While I haven't tested this, I believe it will work. You should test first.

Don't forget to restart exim.

Jeff
 
Hello,
Suppose i have my domain abc.com, then i have to put that domain into /etc/virtual/use_rbl_domains. I want only mails from 123.com and xyz.com. I have to put those domains into whiltelist_domains file. Then Mails from all other domains except these two will get rejected.
That's the first step. You've whitelisted those two domains; they'll be accepted immediately when exim reaches that step. Don't forget to install them one on each line.
Also in exim.conf where should i put this line. There are so many occurences of OPTIONAL MODIFICATIONS.
Sorry about the confusion. Above the first occurrance.

This only works because you've got only one domain on the server. Should you host multiple domains, this will mean only those two domains can send email to any of the domains on the server. Anything more than this will require some rule customization.

Jeff
 
Back
Top