This is an old revision of the document!


mynetwork

The purpose of the mynetwork feature is to prevent clapf running spam check on emails coming from certain IP-addresses. If the client IP-address matches mynetwork, clapf will add “<clapf-header-field>: mynetwork” to the message header.

Note 1: clapf checks for viruses even in emails coming from “mynetwork”.

Let's say, your postfix box running clapf relays emails coming from your LAN (11.22.33.0/24), and you don't want clapf to spamcheck these emails. All you have to do is to specify your LAN, eg.

mynetwork=11.22.33.

The mynetwork variable is a similar comma separated list like skipped_received_ips. The '$'-sign is available, too, see the following example:

mynetwork=84.15.1.8$

This will match on 84.15.1.8, but not on 84.15.1.80-84.15.1.89!

To use this feature, you have to activate XFORWARD in postfix, ie.

/etc/postfix/main.cf:

lmtp_send_xforward_command = yes
smtp_send_xforward_command = yes
smtpd_authorized_xforward_hosts = 127.0.0.0/8