summaryrefslogtreecommitdiff
path: root/mail/clamsmtp/MESSAGE
blob: c9b8d61f472c66dfc10e508af8ade2773894dbfa (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
===========================================================================
$NetBSD: MESSAGE,v 1.2 2004/08/03 08:23:06 jlam Exp $

In order to use with postfix, a possible configuration using clamsmtpd as
an after-queue content filter would be:

[main.cf]

content_filter = scan:localhost:10025
receive_override_options = no_address_mappings

[master.cf]

# AV scan filter (used by content_filter)
scan      unix  -       -       n       -       16      smtp
  -o smtp_send_xforward_command=yes
# For injecting mail back into postfix from the filter
localhost:10026 inet  n -       n       -       16      smtpd
  -o content_filter=
  -o receive_override_options=no_unknown_recipient_checks,no_header_body_checks
  -o smtpd_helo_restrictions=
  -o smtpd_client_restrictions=
  -o smtpd_sender_restrictions=
  -o smtpd_recipient_restrictions=permit_mynetworks,reject
  -o mynetworks_style=host
  -o smtpd_authorized_xforward_hosts=127.0.0.0/8

That's all! please visit the following links for more information on this
setup:

	${HOMEPAGE}postfix.html
	http://www.postfix.org/FILTER_README.html

===========================================================================