Off RackSHack howto
The credit should go to Swift-AU and Bobarino
Firstly, log in to your Linux (assuming you're using RedHat) box and su to root.
At the shell prompt, type the following to download and install the ucspi-tcp package.
# wget
http://cr.yp.to/ucspi-tcp/ucspi-tcp-0.88.tar.gz # tar xzf ucspi-tcp-0.88.tar.gz
# cd ucspi-tcp-0.88
# pico -w rblsmtpd.c
Once in Pico, type CTRL-W and search for 'rbl.maps.vix.com' (no quotes.) Change it to 'relays.ordb.org'.
Type CTRL-X -> Y -> Enter to save the changes.
Back at the shell prompt, type the following:
# make
# make setup check
The rblsmtpd program is now stored in /usr/local/bin
# cd /etc/xinetd.d
# cp smtp_psa smtp_psa.bak
# pico -w smtp_psa
In the server_args line, after '/var/qmail/bin/relaylock', you need to add '/usr/local/bin/rblsmtpd'
So the first part of your server_args line will look like
/var/qmail/bin/relaylock /usr/local/bin/rblsmtpd /var/qmail/bin/qmail-smtpd...
Save the changes (CTRL-X -> Y -> Enter)
Back at the shell prompt, enter:
# /etc/rc.d/init.d/xinetd restart
# echo test | mail
ask-test-ordb@null.dk That's it! You should get a return message letting you know that the RBL filter is correctly working.
FAQ
echo test | mail
ask-test-ordb@null.dk should anything happen?
You should receive 1 email stating that the message was blocked. However this command does not always work. If you don't get a message within five minutes, just send a message to that address through a mail client using your PSA mailserver (or from webmail). response by Serve-you-net
Original post can be found at
http://forum.plesk.com/showthread.ph...hlight=spamcop