Filtering content in Postfix using Clamav: warning: connect to transport private/scan:

by Cod1ngFree   Last Updated May 15, 2018 20:00 PM

I was trying to setup Postfix with Clamav and I saw the following error:

May 15 21:42:10 postfix/qmgr[30159]: warning: connect to transport private/scan: No such file or directory

My master process configuration file has:

# AV scan filter
smtps     inet  n       -       -       -       -       smtpd
  -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

While my main.cf has:

smtpd_relay_restrictions = permit_mynetworks permit_sasl_authenticated defer_unauth_destination
myhostname = myexample.com
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
myorigin = /etc/mailname
mydestination = myexample.com,localhost
relayhost =
mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128
mailbox_size_limit = 0
recipient_delimiter = +
inet_interfaces = all
inet_protocols = ipv4
virtual_alias_maps = hash:/etc/postfix/virtual
home_mailbox = Maildir/
milter_protocol = 2
milter_default_action = accept
smtpd_milters = inet:localhost:12301
non_smtpd_milters = inet:localhost:12301
smtp_generic_maps = hash:/etc/postfix/generic
content_filter = scan:127.0.0.1:10025
receive_override_options = no_address_mappings

Eventually, in my clamsmtpd.conf there is:

OutAddress: 10026
Listen: 127.0.0.1:10025

Would you know what am I missing in my configuration? It is as if the emails were not being processed.

Best regards.

Tags : postfix clamav


Related Questions


postfix fails sending mails with clamav

Updated March 28, 2017 07:00 AM


Connection refused by AMAVISD-NEW

Updated May 02, 2016 09:00 AM

Outgoing mail runs into a series of spamd errors

Updated January 25, 2017 14:00 PM