You are not logged in.

#1 2010-05-17 20:55:37

scar
Member
From: Hungary
Registered: 2009-10-01
Posts: 449

clamsmtpd + postfix

has anyone tried to use clamsmtpd?

I think i need some help to set this up

(before installing clamsmtp from aur and editing the appropriate files, everything was working file )

my /etc/conf.d/clamsmtp:

# clamav startup script config options

# change these to "yes" to start
START_CLAMSMTP="yes"
CLAMSMTP_OPTIONS=""

my /etc/clamav/clamsmtpd.conf:

OutAddress: 127.0.0.1:10026

#MaxConnections: 64

TimeOut: 240

#KeepAlives: 0

#XClient: off

Listen: 127.0.0.1:10025

ClamAddress: /var/lib/clamav/clamd.sock

#Header: X-Virus-Scanned: ClamAV using ClamSMTP

TempDirectory: /tmp

Action: drop

#Quarantine: off

#TransparentProxy: off

User: clamav


my /etc/postfix/main.cf

as normal, plus the line:

content_filter = scan:[127.0.0.1]:10025



my /etc/postfix/master.cf:

as normal, plus

# 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
127.0.0.1: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

Last edited by scar (2010-05-17 21:49:00)


“The future has already arrived. It's just not evenly distributed yet.”
― William Gibson

Offline

Board footer

Powered by FluxBB