only allow whitlisted smtp hosts on certain domains

huizinga

New member
Joined
May 17, 2008
Messages
3
hello,

i'm using an MX-based spamfiltering sollution. i've changed my mx records and the mail will be filtered correctly and sended back to my server.

the problem is that some spamsenders still use my old mx records (directly to my server) for sending spam to my users. (waited for about 2 weeks now)

because the mail is for my users it will be automaticly routed to my users.

i like to block all senders beside some ips (the ips from the mailfilter). but because not all my users uses this filter i like to make an configuration based on the domain.

i've tried to unckeck the checkbox in the MX settings tab in DirectAdmin to not use this server as mailserver. now the mails couldn't be routed back from anywhere (included the spamfilter)
i've added the spamfilter ip's to the whitelist (/etc/virtual/whitelist_hosts)
now the mail will be accepted by my mailserver but will not be delivered to my users mailbox because the domain is not in the list of domains(/etc/virtual/domains)

if i add the domain to /etc/virtual/domains all senders will be accepted.

anyone an solution for my problem?
 
You could of course completely rewrite the exim.conf file; you really don't need most of it's features anymore.

The way most of us solve your problem is to block port 25 traffic on all your IP#s except one new one which has never been used for email previously.

Note however that many spammers always try A records.

Jeff
 
Back
Top