Random musings on random stuff.
This is a reply, basepost
I've now added a basic config file & parser in preparation for releasing this as a standalone (but Kamaelia based) app. For curious eyes, the config file format will look like this at least initially:
#
# Kamaelia: Greylist
#
# Port number that the greylist server listens on
port = 25
# Servername that we tell to people who connect to us
servername = mail.yourdomain.org
# Server software we report to people connecting
serverid = Kamaelia-SMTP 1.0
# IP Address of the real SMTP server that handles local delivery.
# (We're just a proxy after all)
smtp_ip = 192.168.2.9
# Port number the real SMTP server is listening on
smtp_port = 6025
#---------------------------------------------------------------------------
# List of IP addresses that are allowed to send to anywhere
# Put each IP address on its own line, indented
#
allowed_senders:
127.0.0.1
#---------------------------------------------------------------------------
# List of subnets (IP prefixes to be exact) that are allowed to send to
# anywhere.
#
# Put each subnet/IP prefix on its own line, indented
#
allowed_sender_nets:
192.168.2
#---------------------------------------------------------------------------
# List of domains for which we will _consider_ accepting email for
# Put each domain on its own line, indented
#
allowed_domains:
someexample.com
anotherexample.com
yetanotherexample.com
#---------------------------------------------------------------------------
# Standard triples which always allows delivery to domains we consider
# accepting for.
#
# Format:
# IP address, mail-from id, recipient id
#
whitelisted_triples:
123.45.67.89 <postermast@mx1.redcats.co.uk> <user@someexample.com>
#---------------------------------------------------------------------------
# Some non-standard triples for which we always allow delivery to domains we
# consider accepting for.
#
# Specific format is:
#
# claimed sender name, IP prefix, recipient
#
# (These may take simple wildcards at a later date)
#
whitelisted_nonstandard_triples:
listmail.artsfb.org.uk 62.73.155.19 <user@someexample.com>
mx-out.widelyusedservice.com 204.15.20 <anotheruser@anotherexample.com>
mx-out.widelyusedservice.com 204.15.20 <user@someexample.com>
fallbackmx-out.widelyusedservice.com 204.15.20 <anotheruser@anotherexample.com>
fallbackmx-out.widelyusedservice.com 204.15.20 <user@someexample.com>
The next step is to create an init.d (and a /System/Library/StartupItems) script, daemonise it properly, make it log in a standard place, and when all that's done, package up.