OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
 
content_filter and lmtp ?

From: Achim Altmann (aacom-gate.com)
Date: Thu Sep 11 2003 - 12:19:15 CDT


Hello,

i use postfix 2.0.6 with smtpd_sasl_auth_enable = yes
and i would like use kaspersky virus-scanner
/i use also cyrus-sasl-2.1.10 and cyrus-imapd-2.1.10)

i have configured kaspersky with the install.pl from them and the daemon is
running

if i enable content_filter like
content_filter = lmtp:127.0.0.1:10025

then i have the following errors in maillog
if i send a mail from an external-account to aacom-gate.com

Sep 11 00:38:02 alpha1 postfix/master[13623]: reload configuration
Sep 11 00:38:58 alpha1 postfix/smtpd[17753]: starting TLS engine

I send a mail from an external account like kubinekgmx.de to that mailserver
smtp.com-gate.com (to aacom-gate.com) that i have an account

Sep 11 00:38:58 alpha1 postfix/smtpd[17753]: connect from
mx0.gmx.net[213.165.64.100]
Sep 11 00:38:58 alpha1 postfix/smtpd[17753]: 73AE51C00081:
client=mx0.gmx.net[213.165.64.100]
Sep 11 00:38:58 alpha1 postfix/cleanup[17754]: 73AE51C00081:
message-id=<15681.1063233538www45.gmx.net>
Sep 11 00:38:58 alpha1 postfix/nqmgr[17728]: 73AE51C00081:
from=<kubinekgmx.de>, size=968, nrcpt=1 (queue active)
Sep 11 00:38:58 alpha1 postfix/smtpd[17753]: disconnect from
mx0.gmx.net[213.165.64.100]
Sep 11 00:38:58 alpha1 postfix/smtpd[17767]: starting TLS engine
Sep 11 00:38:58 alpha1 postfix/smtpd[17767]: connect from
localhost[127.0.0.1]
Sep 11 00:38:58 alpha1 postfix/smtpd[17767]: A35B71C00082:
client=localhost[127.0.0.1]
Sep 11 00:38:58 alpha1 postfix/smtpd[17767]: A35B71C00082: reject: RCPT from
localhost[127.0.0.1]: 450 <aa.com-gate.comsmtp.com-gate.com>: User unknown
in local recipient table; from=<kubinekgmx.de> proto=SMTP
helo=<alpha1.com-gate.com>
Sep 11 00:38:59 alpha1 postfix/smtpd[17767]: disconnect from
localhost[127.0.0.1]
Sep 11 00:38:59 alpha1 postfix/lmtp[17763]: 73AE51C00081:
to=<aa.com-gate.comsmtp.com-gate.com>, orig_to=<aacom-gate.com>,
relay=127.0.0.1[1
27.0.0.1], delay=1, status=deferred (host 127.0.0.1[127.0.0.1] said: 450
<aa.com-gate.comsmtp.com-gate.com>: User unknown in local recipient
table (in reply to end of DATA command))
Sep 11 00:38:59 alpha1 postfix/nqmgr[17728]: 73AE51C00081:
from=<kubinekgmx.de>, size=968, nrcpt=1 (queue active)
Sep 11 00:38:59 alpha1 postfix/smtpd[17767]: connect from
localhost[127.0.0.1]
Sep 11 00:38:59 alpha1 postfix/smtpd[17767]: C08111C00082:
client=localhost[127.0.0.1]
Sep 11 00:38:59 alpha1 postfix/smtpd[17767]: C08111C00082: reject: RCPT from
localhost[127.0.0.1]: 450 <aa.com-gate.comsmtp.com-gate.com>: Us
er unknown in local recipient table; from=<kubinekgmx.de> proto=SMTP
helo=<alpha1.com-gate.com>
Sep 11 00:39:00 alpha1 postfix/smtpd[17767]: disconnect from
localhost[127.0.0.1]
Sep 11 00:39:00 alpha1 postfix/lmtp[17763]: 73AE51C00081:
to=<aa.com-gate.comsmtp.com-gate.com>, orig_to=<aacom-gate.com>,
relay=127.0.0.1[1
27.0.0.1], delay=2, status=deferred (host 127.0.0.1[127.0.0.1] said: 450
<aa.com-gate.comsmtp.com-gate.com>: User unknown in local recipient
table (in reply to end of DATA command))

her is my postconf -n
without content_filter

alias_database = hash:/etc/aliases
alias_maps = hash:/etc/aliases
broken_sasl_auth_clients = yes
canonical_maps = hash:/etc/postfix/canonical
command_directory = /usr/sbin
config_directory = /etc/postfix
daemon_directory = /usr/libexec/postfix
debug_peer_level = 2
local_recipient_maps = $alias_maps unix:passwd.byname
mail_owner = postfix
mailbox_size_limit = 110240000
mailbox_transport = cyrus
mailq_path = /usr/bin/mailq
manpage_directory = /usr/share/man
message_size_limit = 102400000
mydestination = $myhostname, localhost.localdomain, localhost.$mydomain,
mysql:/etc/postfix/mysql-mydestination.cf
mydomain = com-gate.com
myhostname = smtp.com-gate.com
mynetworks = 80.190.226.51/32, 127.0.0.0/8
newaliases_path = /usr/bin/newaliases
qmgr_message_active_limit = 70000000
qmgr_message_recipient_limit = 70000000
queue_directory = /var/spool/postfix
readme_directory = no
relay_domains = $mydestination
sample_directory = /etc/postfix/sample
sender_canonical_maps = mysql:/etc/postfix/mysql-canonical.cf
sendmail_path = /usr/sbin/sendmail
setgid_group = postdrop
smtpd_banner = $myhostname ESMTP
smtpd_recipient_restrictions = permit_sasl_authenticated, permit_mynetworks,
reject_unauth_destination
smtpd_sasl_auth_enable = yes
smtpd_sasl_local_domain =
smtpd_sasl_security_options = noanonymous
smtpd_sender_restrictions = hash:/etc/postfix/sender_checks
smtpd_tls_CAfile = /etc/postfix/RootCert.pem
smtpd_tls_cert_file = /etc/postfix/smtp.com-gate.com_cert.pem
smtpd_tls_key_file = /etc/postfix/smtp.com-gate.com_key.pem
smtpd_tls_loglevel = 3
smtpd_tls_received_header = yes
smtpd_tls_session_cache_timeout = 3600s
smtpd_use_tls = yes
tls_random_source = dev:/dev/urandom
unknown_local_recipient_reject_code = 450

my cyrus.conf
START {
  # do not delete these entries!
  mboxlist cmd=\"ctl_mboxlist -r\"
  deliver cmd=\"ctl_deliver -r\"

  # this is only necessary if using idled for IMAP IDLE
# idled cmd=\"idled\"
}

# UNIX sockets start with a slash and are put into /var/imap/socket
SERVICES {
  # add or remove based on preferences
  imap cmd=\"imapd\" listen=\"imap\" prefork=0
  imaps cmd=\"imapd -s\" listen=\"imaps\" prefork=0
  pop3 cmd=\"pop3d\" listen=\"pop3\" prefork=0
  pop3s cmd=\"pop3d -s\" listen=\"pop3s\" prefork=0
  sieve cmd=\"timsieved\" listen=\"127.0.0.1:sieve\" prefork=0

  # at least one LMTP is required for delivery
# lmtp cmd=\"lmtpd\" listen=\"lmtp\" prefork=0
  lmtpunix cmd=\"lmtpd\" listen=\"/var/imap/socket/lmtp\" prefork=0
  notify cmd=\"notifyd\" listen=\"/var/imap/socket/notify\" proto=\"udp\"
prefork=1
}

EVENTS {
  # this is required
  checkpoint cmd=\"ctl_mboxlist -c\" period=5

  # this is only necessary if using duplicate delivery suppression
  delprune cmd=\"ctl_deliver -E 3\" period=1440

Please could any help ?

Thank's a lot

reagards
Achim