INSTALL Guide

Coming soon, I promise.  I could use some help with this if you have time :)






Simple steps to integrate dspampd with Postfix:  This configuration
is for filtering incoming mail with dspampd and assumes you are not
sending email out of this box.  It will create a tunnel that looks
like this:
Internet -> [ postfix:25 -> dspampd:125 -> postfix:225 ] -> [email server:25]

In dspampd.conf:
-----------------------------------------------------------
[networking]

    ## Address to accept smtp connections on.  ex: 127.0.0.1 or 0.0.0.0
    listenHost               => 127.0.0.1

    ## Port to accept smtp connections on.  ex. 25 or 10025
    listenPort               => 125

    ## Fixme, this needs way more options ;)
    ## Address to proxy mail to. ex: 127.0.0.1 or mail.isp.net
    relayHost                => 127.0.0.1

    ## Port to on relayHost to proxy mail to. ex. 25 or 10125
    relayPort                => 225


In Postfix's master.cf
-----------------------------------------------------------
## Incoming SMTP connections on port 25.. send everything to dspampd.
#
#  * The "-o smtpd_client_connection_count_limit=10" prevents one SMTP client
#    from using up all 20 SMTP server processes. This limit is not necessary if
#    you receive all mail from a trusted relay host.
#
smtp      inet  n       -       n       -       50     smtpd
     -o smtpd_proxy_filter=127.0.0.1:125
     -o smtpd_proxy_timeout=300
     -o smtpd_client_connection_count_limit=10


## Incoming connections from dspampd.
#
#  * The "-o smtpd_authorized_xforward_hosts=127.0.0.0/8" allows the after-
#    filter SMTP server to receive remote SMTP client information from the
#    before filter SMTP server, so that the after-filter Postfix daemons log the
#    remote SMTP client information instead of logging localhost[127.0.0.1].
#
:225       inet  n       -       -       -       -     smtpd
    -o smtpd_authorized_xforward_hosts=127.0.0.0/8
    -o local_recipient_maps=
    -o relay_recipient_maps=
    -o smtpd_restriction_classes=
    -o smtpd_helo_restrictions=
    -o smtpd_sender_restrictions=
    -o smtpd_client_restrictions=
    -o smtpd_data_restrictions=
    -o smtpd_recipient_restrictions=permit_mynetworks,reject
    -o mynetworks=127.0.0.0/8
    -o mynetworks_style=host
    -o receive_override_options=no_unknown_recipient_checks

