qpsmtpd - Configuration
This page contains a few example configurations
Using my aliases plugin together with denysoft_greylist (with my patches) and rcpt_ok
# this plugin initializes the note "recipient_options" and therefore # has to run before all other "rcpt" plugins which access this note. aliases denysoft_greylist remote_ip 1 sender 1 recipient 1 black_timeout 900 grey_timeout 32400 per_recipient # this plugin must run after all other "rcpt" plugins. It will simply # allow all recipients. rcpt_ok
This will call the aliases module first to determine if the recipient exists at all and to set per-recipient options. Then greylisting will be done but only if the recipient requested it. Finally the recipient will be accepted if none of the previous modules has rejected it. Note that this implements a "everything allowed unless forbidden" policy.
An entry in the aliases file could look like this
hjp,peter.holzer @wsr.ac.at, wifo.ac.at, wifo.at :email@example.com (denysoft_greylist)
This accepts mail for all combinations of the local parts hjp and peter.holzer with the domains wsr.ac.at, wifo.ac.at and wifo.at, passes it on to firstname.lastname@example.org and sets the denysoft_greylist recipient_option (which is checked by my version of the denysoft_greylist plugin.
Some MTAs have strange or broken configurations and cannot reliably send mail to MTAs using greylisting. Here is an example var/db/denysoft_whitelist (yes, I know, the filename is a bit stupid):
188.8.131.52 # our own servers (g.l. would be pointless) 184.108.40.206 220.127.116.11 # chello 18.104.22.168 22.214.171.124 126.96.36.199 188.8.131.52 184.108.40.206 220.127.116.11/26 # yahoogroups 18.104.22.168/29 # t-online.at 22.214.171.124/29 # t-online.at 126.96.36.199 # tekaef.at 188.8.131.52 # oesb.at (Novell GroupWise) 184.108.40.206 # Zidcluster1.edvz.uni-linz.ac.at 220.127.116.11 # long queue intervall (12h?)