This is a discussion on checkremotehost () $TCPREMOTEHOST is ANONIMUS warning_msg (spam) within the alt.comp.mail.qmail forums, part of the Mail Servers and Related category; Hello qmail group, How i can check remote reverse ip and send him a warning message? example: ==========snip=========> #!/bin/...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
Hello qmail group,
How i can check remote reverse ip and send him a warning message? example: ==========snip=========> #!/bin/sh # I use this in a user's .qmail file # by adding the line # |/usr/local/sbin/remoteipcheck beta question # before the ./Maildir/ # check if the ip printmsg () { echo "Hello $SENDER," echo "WARNING! ....." echo "Your remote ip adresse $TCPREMOTEHOST is ANONIMUS " echo "This server dont` accept Anonimus remote host " echo "but is only spam potential .. or so ... " echo "Contact Your Provider to make a PTR entry in to dns server" echo "or owner from ip adresse => whois ipadresse" } checkremotehost () { case $notresolve in printmsg $TCPREMOTEHOST exit 100;; *) ;; esac } sh -c 'test -z "$TCPREMOTEHOST" exit 0 ==========snip=========> Best regards patrik www.swisse.net |
|
|||
|
On Thu, 25 Sep 2003 12:48:01 +0200, Patrik <ppk2@nospaam-valle.maggia.net> may have written:
> Hello qmail group, > How i can check remote reverse ip and send him > a warning message? [snip script] man bouncesaying HTH, -- Brian T Glenn delink.net Internet Services |
![]() |
| Thread Tools | |
| Display Modes | |
|
|