LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   Sendmail - FEATURE(`dnsbl') - Creating exceptions while using FEATURE(`dnsbl') (https://www.linuxquestions.org/questions/linux-server-73/sendmail-feature-%60dnsbl-creating-exceptions-while-using-feature-%60dnsbl-784656/)

amonamarth 01-25-2010 01:21 PM

Sendmail - FEATURE(`dnsbl') - Creating exceptions while using FEATURE(`dnsbl')
 
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 ?


All times are GMT -5. The time now is 05:57 PM.