sendmail rule


Subject: sendmail rule
From: Matthew Schumacher (schu@schu.net)
Date: Wed Apr 03 2002 - 14:20:18 AKST


Hello all,

I have this rule:

Kserverblacklist text /etc/mail/serverblacklist

SLocal_check_blacklist
R$* $: $(dequote "" $&{client_addr} $)
R$-.$-.$-.$- $: $(serverblacklist $1 . $2 . $3 . $4 $: DENY $)
RDENY $#error $@ 5.7.1 $: "Mail sent from blacklisted server"

All I want to do is have a text file (later to be a hash) that will
contain IP addresses for servers I don't except mail from.

I realize that I can do this in the access db but I want to keep this
list separate.

Anyway, this rule does the exact opposite of what I accept. The middle
line returns DENY if it DOESN'T find the IP address in the database macro.

Anyone have a quick second to explain what the correct syntax is and why?

Thanks,

schu

-- 
"We'll need 2000 crickets, 4 cans of Easy Cheese, and the fluid from 18
glowsticks for this plan to work..."

--------- To unsubscribe, send email to <aklug-request@aklug.org> with 'unsubscribe' in the message body.



This archive was generated by hypermail 2a23 : Wed Apr 03 2002 - 14:29:24 AKST