Sendmail - FEATURE(`dnsbl') - Creating exceptions while using FEATURE(`dnsbl') in sendmail.mc

Installing, Configuring, Troubleshooting server daemons such as Web and Mail
Post Reply
amonamarth
Posts: 40
Joined: 2010/01/06 07:06:29
Location: Los Angeles

Sendmail - FEATURE(`dnsbl') - Creating exceptions while using FEATURE(`dnsbl') in sendmail.mc

Post by amonamarth » 2010/01/14 07:21:32

Hello:

Setting up an SMTP mail server using sendmail, I came up with a conundrum; but first, a bit of background information.

This particular machine is the primary SMTP server for my domain. Amongst other options, it has been setup to take advantage of real time DNS black list to help keeping SPAM under control.
This was achieved by adding the following line to the ".mc" macro file:

FEATURE(`dnsbl', `dnsbl.sorbs.net',`"554 Rejected " $&{client_addr} " found in dnsbl.sorbs.net"')dnl

Consequently, hosts that try to relay are checked against the sorbs.net database; if matched, the email message gets rejected.
Here is an example of such rejections, from /var/log/maillog:

ruleset=check_relay, arg1=[122.164.92.199], arg2=127.0.0.10, relay=ABTS-TN-dynamic-199.92.164.122.airtelbroadband.in [122.164.92.199] (may be forged), reject=554 5.7.1 Rejected 122.164.92.199 found in dnsbl.sorbs.net

My question is:

Can I specify a white list of hosts that will be allowed to relay even if they are found in sorbs.net ? :-?

User avatar
AlanBartlett
Forum Moderator
Posts: 9323
Joined: 2007/10/22 11:30:09
Location: ~/Earth/UK/England/Suffolk
Contact:

Re: Sendmail - FEATURE(`dnsbl') - Creating exceptions while using FEATURE(`dnsbl') in sendmail.mc

Post by AlanBartlett » 2010/01/15 13:58:17

You have ask exactly the same question in the [url=https://www.centos.org/modules/newbb/viewtopic.php?topic_id=24278&forum=41&post_id=95935#forumpost95935]CentOS 5 fora[/url].

Please do not multi-post and ensure that you use the correct forum for the OS version.

User avatar
toracat
Forum Moderator
Posts: 7386
Joined: 2006/09/03 16:37:24
Location: California, US
Contact:

Sendmail - FEATURE(`dnsbl') - Creating exceptions while usin

Post by toracat » 2010/01/15 15:31:42

I am going to close this one. If it turns out the question is CentOS-4 related, I will move the other one.

Post Reply

Return to “CentOS 4 - Server Support”