-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi Stefan,
dynamic IP's need a dynamic whitelist. For exampe write a 30-min-cron,
looking for your
dyndns-hostname's IP and refresh spamdyke's whitelist. Something like
this should do the trick.
#!/bin/bash
WL=/var/qmail/spamdyke/whitelist_ip
IP=$(host dyndns.org | head -n1 | awk '{print $4}')
logger -t spamdyke Whitelisting $IP from $WL
#Fetch old entry using the comment (trick!)
OLD_IP=$(grep "#mydyndns" $WL | awk '{print $1}')
if [ ! -z $OLD_IP ]; then
logger -t spamdyke Removing $OLD_IP from $WL
fi
#Drop old entry from whitelist
grep -v "#mydyndns" $WL > $WL.tmp
#Add new entry to whitelist
echo $IP "#mydyndns" >> $WL.tmp
#Activate new ip
mv $WL.tmp $WL
Stefan Pausch schrieb:
> That doesn't work, because the Dyndns name is not the same as the rDNS one.
>
> Log entry:
> Jun 12 08:40:27 h868914 spamdyke[15841]: DENIED_RBL_MATCH from:
> xxxxxxxxxxxxxxxx to: [EMAIL PROTECTED] origin_ip: 91.1.208.xxx
> origin_rdns: p5b01dxxx.dip.t-dialin.net auth: (unknown)
>
>
> 91.1.208.xxx - my current dynamic ip
> p5b01dxxx.dip.t-dialin.net - my current dynamic rDNS
> xxxxxx.dyndns.org - static hostname which resolves to dynamic 91.1.208.xxx
>
>
>> -----Ursprüngliche Nachricht-----
>> Von: [EMAIL PROTECTED] [mailto:spamdyke-users-
>> [EMAIL PROTECTED] Im Auftrag von Sam Clippinger
>> Gesendet: Donnerstag, 12. Juni 2008 01:08
>> An: spamdyke users
>> Betreff: Re: [spamdyke-users] IP Whitelist based on hostname/DNS-Name?
>>
>> Yes. Use the "rdns-whitelist-file" option.
>>
>> -- Sam Clippinger
>>
>> Stefan Pausch wrote:
>>> Hello,
>>>
>>> is it possible to whitelist a hostname instead of an ip address (in
>> my case
>>> it is a hostname for a dynamic IP)?
>>>
>>> --Stefan
>
>
> __________ Information from ESET NOD32 Antivirus, version of virus
signature
> database 3179 (20080611) __________
>
> The message was checked by ESET NOD32 Antivirus.
>
> http://www.eset.com
>
>
> _______________________________________________
> spamdyke-users mailing list
> [email protected]
> http://www.spamdyke.org/mailman/listinfo/spamdyke-users
- --
Technischer Support/ Hotline
BLACKBIT neue Medien GmbH | BLACKBIT neue Werbung GmbH
Ernst-Ruhstrat-Str. 6 - D-37079 Göttingen
Geschäftsführer: Stefano Viani | Daniel Gerlach
Registergericht: Amtsgericht Göttingen, HRB 3222
Umsatzsteueridentifikationsnummer (§ 27a UstG): DE 813 114 917
Tel: +49 [551] 50675-50 - Fax: +49 [551] 50675-20
Störungs-Hotline (mobil): +49 [171] 745-843-8
E-Mail: [EMAIL PROTECTED]
Klassische Werbung und Online-Marketing: http://www.blackbit.de
Software fuer Online-Marketing: http://www.go-community.de
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFIUNnjWFnhIgg1RRoRAvcnAJ9T3mkmHpO5GsgQS99Hjb/VlUEmawCfcbeJ
eACLlDSonwj9y9YRKOMfcgo=
=f7qk
-----END PGP SIGNATURE-----
_______________________________________________
spamdyke-users mailing list
[email protected]
http://www.spamdyke.org/mailman/listinfo/spamdyke-users