![]()
Site links: |
qgreylist - simple greylisting for qmailWhat is greylisting?Greylisting is a spam control method. It works by returning a temporary SMTP error to the first delivery attempt. Most spam is sent from bulk mailers which don't retry, so these are blocked. Real mail servers will retry later after a temporary error, allowing the message through. See http://projects.puremagic.com/greylisting/ for more details. What is qgreylist?qgreylist is a 'lite' version of greylisting. The puremagic.com page suggests using the source IP, the envelope from address and the envelope to address. This, in my opinion, is too extreme. qgreylist, on the other hand, just greylists by source IP address. This is mainly because it's written as a wrapper for qmail-smtp so has no other information available. For home and small office use this works nearly as well. Requirementsqgreylist is written in perl. It has been tested with perl 5.8.0, but should work with much older versions as long as Sys::Syslog is available. Download qgreylistThe latest version can be downloaded here: qgreylist-0.3.tar.gz. Installing qgreylist
qgreylist is now ready. You now need to change things so that qgreylist is called between tcp-env and qmail-smtpd
If you are using inetd, change your inetd.conf from (on one line):
The change for tcpserver or xinetd is similar - just add /var/qmail/bin/greylist directly before /var/qmail/bin/qmail-smtpd and restart. Note: if using tcpserver, there may be a softlimit setting which is too low for perl to launch - try a larger value. That's it - greylisting should now be working. TestingSend some emails from an external host which *isn't* allowed to relay. If you don't have an external account send a 'help' command to a majordomo or simillar list server to get a reply. For each external server which attempts to send mail a file will be created in /var/qmail/greylist. Check this is happening. If it is not, check the permissions/owner on the directory - you will not receive any mail until this is fixed. qgreylist and SMTP AUTHqgreylist is not compatable with SMTP AUTH. To work around this, run a separate instance of qmail-smtpd without qgreylist. This can either be on a separate host, or a separate IP address or port on the same host. Port 587 is recommended (see RFC 2476). This alternate instance of qmail-smtpd should not be listed in any MX records, and it should only accept SMTP AUTH connections (and perhaps non-AUTH connections from the local LAN). Changes
| |
|