I/II
Dear forum members,
I am experimenting around a bit in creating a mailserver with Postfix. It is, so far, local, bearing the name dove.flying. Everything else being fine, I cannot receive any e-mails when I turn on clamav. If I comment out the corresponding lines in main.cf and master.cf which activate clamav, everything is working - mail that I locally send I can also locally retrieve; but not so if clamav shall run as well, then no mail is received. I have installed clamav from the binary packages.
Please let me know what information you need to further analyse the problem. Below you can find the content of some files; I just removed the #-lines manually to enease reading, hope I did not erase anything important. Please let me know what error you deem I am making; I have been intensely fighting with this now for over two weeks.
uname -a:
Permissions on clamd:
ClamAV's working directory permissions:
Contents of this directory - PLEASE NOTE, SOMEHOW THERE IS NO clamd.ctl:
postconf -n:
master.cf:
main.cf:
clamd.conf:
clamsmtpd.conf:
rc.conf:
I would be extremely gratefuly for any help with this. Thank you in advance for looking at it.
Dear forum members,
I am experimenting around a bit in creating a mailserver with Postfix. It is, so far, local, bearing the name dove.flying. Everything else being fine, I cannot receive any e-mails when I turn on clamav. If I comment out the corresponding lines in main.cf and master.cf which activate clamav, everything is working - mail that I locally send I can also locally retrieve; but not so if clamav shall run as well, then no mail is received. I have installed clamav from the binary packages.
Please let me know what information you need to further analyse the problem. Below you can find the content of some files; I just removed the #-lines manually to enease reading, hope I did not erase anything important. Please let me know what error you deem I am making; I have been intensely fighting with this now for over two weeks.
uname -a:
Code:
FreeBSD dove.flying 8.0-RELEASE FreeBSD 8.0-RELEASE #0: Sat Nov 21 15:48:17 UTC 2009 root@almeida.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC i386
Permissions on clamd:
Code:
-r-xr-xr-x 1 root wheel 106692 Oct 21 09:25 /usr/local/sbin/clamd
ClamAV's working directory permissions:
Code:
drwxr-xr-x 2 clamav clamav 512 Mar 16 08:16 /var/run/clamav/
Contents of this directory - PLEASE NOTE, SOMEHOW THERE IS NO clamd.ctl:
Code:
total 2
-rw-rw---- 1 clamav clamav 3 Mar 16 08:16 clamd.pid
srwxrwxrwx 1 clamav clamav 0 Mar 16 08:16 clamd.sock
postconf -n:
Code:
biff = no
broken_sasl_auth_clients = yes
command_directory = /usr/local/sbin
config_directory = /usr/local/etc/postfix
content_filter = scan:127.0.0.1:10026
daemon_directory = /usr/local/libexec/postfix
data_directory = /var/db/postfix
debug_peer_level = 2
html_directory = /usr/local/share/doc/postfix
inet_interfaces = all
mail_owner = postfix
mailq_path = /usr/local/bin/mailq
manpage_directory = /usr/local/man
mydomain = flying
myhostname = dove.flying
mynetworks = 127.0.0.0/8
mynetworks_style = host
myorigin = dove.flying
newaliases_path = /usr/local/bin/newaliases
queue_directory = /var/spool/postfix
readme_directory = /usr/local/share/doc/postfix
receive_override_options = no_address_mappings
sample_directory = /usr/local/etc/postfix
sendmail_path = /usr/local/sbin/sendmail
setgid_group = maildrop
smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache
smtpd_banner = $myhostname ESMTP $mail_name
smtpd_sasl_auth_enable = yes
smtpd_sasl_authenticated_header = yes
smtpd_sasl_local_domain = $myhostname
smtpd_sasl_path = /var/spool/postfix/private/dovecot-auth
smtpd_sasl_security_options = noanonymous
smtpd_sasl_type = dovecot
smtpd_sender_restrictions = permit_sasl_authenticated, permit_mynetworks
smtpd_tls_auth_only = yes
smtpd_tls_cert_file = /etc/ssl/certs/dovecot.pem
smtpd_tls_key_file = /etc/ssl/private/dovecot.pem
smtpd_tls_loglevel = 1
smtpd_tls_received_header = yes
smtpd_tls_session_cache_database = btree:${data_directory}/smtpd_scache
smtpd_use_tls = yes
tls_random_source = dev:/dev/urandom
unknown_local_recipient_reject_code = 550
master.cf:
Code:
smtp inet n - n - - smtpd -o content-filter=spamm:
scan unix - - n - 16 smtp -o smtp_send_xforward_command=yes
127.0.0.1:10025 inet n - n - 16 smtpd
-o receive_override_options=no_unknown_recipient_checks,no_header_body_checks
-o smtpd_recipient_restrictions=permit_mynetworks,reject
-o mynetworks_style=host
-o smtpd_authorized_xforward_hosts=127.0.0.0/8
pickup fifo n - n 60 1 pickup
cleanup unix n - n - 0 cleanup
qmgr fifo n - n 300 1 qmgr
tlsmgr unix - - n 1000? 1 tlsmgr
rewrite unix - - n - - trivial-rewrite
bounce unix - - n - 0 bounce
defer unix - - n - 0 bounce
trace unix - - n - 0 bounce
verify unix - - n - 1 verify
flush unix n - n 1000? 0 flush
proxymap unix - - n - - proxymap
proxywrite unix - - n - 1 proxymap
smtp unix - - n - - smtpd -o content-filter=spamm:
relay unix - - n - - smtp
-o smtp_fallback_relay=
showq unix n - n - - showq
error unix - - n - - error
retry unix - - n - - error
discard unix - - n - - discard
local unix - n n - - local
virtual unix - n n - - virtual
lmtp unix - - n - - lmtp
anvil unix - - n - 1 anvil
scache unix - - n - 1 scache
spamm unix - n n - - pipe flags=Rq user=spamd argv=/usr/local/bin/spamm.sh -f ${sender} -- ${recipient}
main.cf:
Code:
queue_directory = /var/spool/postfix
command_directory = /usr/local/sbin
daemon_directory = /usr/local/libexec/postfix
data_directory = /var/db/postfix
mail_owner = postfix
unknown_local_recipient_reject_code = 550
mynetworks_style = host
smtpd_banner = $myhostname ESMTP $mail_name
biff = no
debug_peer_level = 2
debugger_command =
PATH=/bin:/usr/bin:/usr/local/bin:/usr/X11R6/bin
ddd $daemon_directory/$process_name $process_id & sleep 5
sendmail_path = /usr/local/sbin/sendmail
newaliases_path = /usr/local/bin/newaliases
mailq_path = /usr/local/bin/mailq
setgid_group = maildrop
html_directory = /usr/local/share/doc/postfix
manpage_directory = /usr/local/man
sample_directory = /usr/local/etc/postfix
readme_directory = /usr/local/share/doc/postfix
mydomain = flying
myhostname = dove.flying
mynetworks_style = host
myorigin = dove.flying
mynetworks = 127.0.0.0/8
smtpd_tls_cert_file = /etc/ssl/certs/dovecot.pem
smtpd_tls_key_file = /etc/ssl/private/dovecot.pem
smtpd_use_tls = yes
smtpd_tls_auth_only = yes
smtpd_tls_received_header = yes
smtpd_tls_loglevel = 1
smtpd_tls_session_cache_database = btree:${data_directory}/smtpd_scache
smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache
inet_interfaces = all
smtpd_sasl_auth_enable = yes
smtpd_sasl_type = dovecot
smtpd_sasl_path = /var/spool/postfix/private/dovecot-auth
smtpd_sasl_authenticated_header = yes
smtpd_sasl_security_options = noanonymous
smtpd_sasl_local_domain = $myhostname
broken_sasl_auth_clients = yes
smtp_recipient_restrictions = permit_mynetworks, permit_sasl_authenticated, reject_unauth_destination
smtpd_sender_restrictions = permit_sasl_authenticated, permit_mynetworks
tls_random_source = dev:/dev/urandom
content_filter=scan:127.0.0.1:10026
receive_override_options = no_address_mappings
clamd.conf:
Code:
LogFile /var/log/clamav/clamd.log
LogFileMaxSize 10M
PidFile /var/run/clamav/clamd.pid
DatabaseDirectory /var/db/clamav
LocalSocket /var/run/clamav/clamd.sock
FixStaleSocket yes
TCPSocket 3310
TCPAddr 127.0.0.1
User clamav
AllowSupplementaryGroups yes
ScanMail yes
clamsmtpd.conf:
Code:
OutAddress: 10026
Listen: 127.0.0.1:10025
ClamAddress: /var/run/clamav/clamd.sock
User: clamav
rc.conf:
Code:
gateway_enable="YES"
hostname="dove.flying"
ifconfig_sis0="DHCP"
keymap="german.iso"
moused_enable="YES"
moused_flags="-3"
sshd_enable="YES"
sendmail_enable="NONE"
sendmail_submit_enable="NO"
sendmail_outbound_enable="NO"
sendmail_msp_queue_enable="NO"
postfix_enable="YES"
dovecot_enable="YES"
clamd_enable="YES"
clamav_clamd_enable="YES"
clamav_clamd_socket="/var/run/clamav/clamd.sock"
apache22_enable="YES"
apache22_http_accept_enable="YES"
spamd_enable="YES"
spamd_flags="-u spamd -H /var/spool/spamd"
# -- sysinstall generated deltas -- # Sat Mar 6 08:55:36 2010
ifconfig_sis0="DHCP"
hostname="dove.flying"
# -- sysinstall generated deltas -- # Sat Mar 6 21:38:12 2010
ifconfig_sis0="DHCP"
hostname="dove.flying"
I would be extremely gratefuly for any help with this. Thank you in advance for looking at it.