[Postfixbuch-users] Postfix Amavis Emails doppelt

Joerg wilming j.wilming at gmx.de
Do Feb 17 16:39:16 CET 2011


Hallo zusammen,

ich habe einmal eine Frage.
Benutzer, Ich erhalte Emails die an einen Benutzer und eine Liste gehen
doppelt.

Beispiel:
- Liste test at domain.de enthält Empfänger ab at domain.de, cd at domain.de,
jw at domain.de
- jw at domain.de ist Mailkonto
- Mail an wir an die folgenden Empfänger geschickt:
   an: jw at domain.de
   an: test at domain.de
- Mail wird an jw at domain.de zugestellt, und an die Liste (also nochmal
an jw at domain.de)

Vielleicht kann mit jemand sagen wo das Problem liegt, bzw. wie man
dieses Problem umgehen kann.
Vielen Dank.


Anbei noch die Konfigurationsdateien und Logauszüge
------------------------------------------------------------------
/var/log/maillog

Feb 17 11:34:38 mail postfix/qmgr[9662]: BF9C6D656B:
from=<jw at domain.de>, size=2402, nrcpt=5 (queue active)
Feb 17 11:34:38 mail postfix/smtpd[13184]: disconnect from
mail.domain.de[127.0.0.1]
Feb 17 11:34:38 mail amavis[5594]: (05594-11) loaded policy bank "MYNETS"
Feb 17 11:34:38 mail amavis[5594]: (05594-11) ESMTP::10024
/var/amavis/amavis-20110217T104859-05594: <jw at domain.de> ->
<jw at domain>,<dev at domain.de> SIZE=2402 Received: from mail.domain.de
([127.0.0.1]) by localhost (mail.domain.de [127.0.0.1]) (amavisd-new,
port 10024) with ESMTP; Thu, 17 Feb 2011 11:34:38 +0100 (CET)
Feb 17 11:34:38 mail amavis[5594]: (05594-11) Checking: xkJhZcNkWkeE
MYNETS [127.0.0.1] <jw at domain.de> -> <jw at domain.de>,<dev at domain.de>
Feb 17 11:34:38 mail amavis[5594]: (05594-11) p001 1 Content-Type:
text/html, size: 1594 B, name:
Feb 17 11:34:38 mail amavis[5594]: (05594-11) wbl: whitelisted sender
<jw at domain.de>
Feb 17 11:34:38 mail postfix/smtpd[13191]: connect from
mail.domain.de[127.0.0.1]
Feb 17 11:34:38 mail postfix/smtpd[13191]: F1E0FD6AED:
client=mail.domain.de[127.0.0.1]
Feb 17 11:34:39 mail postfix/cleanup[13193]: F1E0FD6AED:
message-id=<j1bck6r.bca5ad0c2ab89de38ce580918310434e at mail.domain.de>
Feb 17 11:34:39 mail postfix/qmgr[9662]: F1E0FD6AED:
from=<jw at domain.de>, size=3301, nrcpt=11 (queue active)
Feb 17 11:34:39 mail postfix/smtpd[13191]: disconnect from
mail.domain.de[127.0.0.1]
Feb 17 11:34:39 mail amavis[5594]: (05594-11) FWD via SMTP:
<jw at domain.de> -> <jw at domain.de>,<dev at domain.de>,BODY=7BIT 250 2.0.0 Ok,
id=05594-11, from MTA([127.0.0.1]:10025): 250 2.0.0 Ok: queued as F1E0FD6AED
Feb 17 11:34:39 mail amavis[5594]: (05594-11) Passed, <jw at domain.de> ->
<jw at domain.de>,<dev at domain.de>, quarantine xkJhZcNkWkeE, Message-ID:
<j1bck6r.bca5ad0c2ab89de38ce580918310434e at mail.domain.de>, Hits: -
Feb 17 11:34:39 mail postfix/smtp[13188]: BF9C6D656B: to=<jw at domain.de>,
relay=127.0.0.1[127.0.0.1]:10024, delay=0.3, delays=0.08/0.03/0.01/0.18,
dsn=2.0.0, status=sent (250 2.0.0 Ok, id=05594-11, from
MTA([127.0.0.1]:10025): 250 2.0.0 Ok: queued as F1E0FD6AED)
Feb 17 11:34:39 mail postfix/smtp[13188]: BF9C6D656B:
to=<dev at domain.de>, relay=127.0.0.1[127.0.0.1]:10024, delay=0.3,
delays=0.08/0.03/0.01/0.18, dsn=2.0.0, status=sent (250 2.0.0 Ok,
id=05594-11, from MTA([127.0.0.1]:10025): 250 2.0.0 Ok: queued as
F1E0FD6AED)
Feb 17 11:34:39 mail amavis[5594]: (05594-11) TIMING [total 185 ms] -
SMTP greeting: 3 (2%)2, SMTP EHLO: 0 (0%)2, SMTP pre-MAIL: 0 (0%)2, SMTP
pre-DATA-flush: 3 (2%)4, SMTP DATA: 38 (20%)24, check_init: 1 (0%)24,
digest_hdr: 8 (5%)29, digest_body_dkim: 0 (0%)29, gen_mail_id: 2 (1%)30,
mime_decode: 7 (4%)34, get-file-type1: 12 (6%)40, parts_decode: 0
(0%)40, AV-scan-1: 5 (3%)43, spam-wb-list: 2 (1%)44, update_cache: 1
(1%)45, decide_mail_destiny: 1 (1%)45, fwd-connect: 38 (21%)66,
fwd-mail-pip: 10 (5%)71, fwd-rcpt-pip: 1 (0%)71, fwd-data-chkpnt: 0
(0%)71, write-header: 1 (0%)72, fwd-data-contents: 0 (0%)72,
fwd-end-chkpnt: 46 (25%)97, prepare-dsn: 1 (0%)97, main_log_entry: 2
(1%)98, update_snmp: 2 (1%)99, SMTP pre-response: 0 (0%)99, SMTP
response: 0 (0%)100, unlink-1-files: 0 (0%)100, rundown: 1 (0%)100
Feb 17 11:34:39 mail postfix/qmgr[9662]: BF9C6D656B: removed
Feb 17 11:34:39 mail postfix/pipe[13199]: F1E0FD6AED: to=<jw at domain.de>,
orig_to=<dev at domain.de>, relay=dovecot, delay=0.09,
delays=0.05/0.03/0/0.01, dsn=2.0.0, status=sent (delivered via dovecot
service)
Feb 17 11:34:39 mail postfix/pipe[13197]: F1E0FD6AED: to=<ab at domain.de>,
orig_to=<dev at domain.de>, relay=dovecot, delay=0.11,
delays=0.05/0.02/0/0.03, dsn=2.0.0, status=sent (delivered via dovecot
service)
Feb 17 11:34:39 mail postfix/pipe[13195]: F1E0FD6AED: to=<cd at domain.de>,
orig_to=<dev at domain.de>, relay=dovecot, delay=0.11,
delays=0.05/0.02/0/0.04, dsn=2.0.0, status=sent (delivered via dovecot
service)
Feb 17 11:34:39 mail postfix/pipe[13195]: F1E0FD6AED: to=<jw at domain.de>,
orig_to=<jw at domain.de>, relay=dovecot, delay=0.12,
delays=0.05/0.06/0/0.01, dsn=2.0.0, status=sent (delivered via dovecot
service)
Feb 17 11:34:39 mail postfix/qmgr[9662]: F1E0FD6AED: removed


------------------------------------------------------------------
/etc/postfix/main.ce

#Definiere LDAP Mailkonten
accounts_server_host = ldap.domain.de
accounts_start_tls = yes
accounts_version = 3
accounts_search_base = dc=domain,dc=de
accounts_query_filter = (&(mail=%s)(objectClass=CourierMailAccount))
accounts_result_attribute = uid
accounts_cache = no
accounts_bind = no

#Definiere LDAP Mail-Aliases
aliases_server_host = ldap.domain.de
aliases_start_tls = yes
aliases_version = 3
aliases_search_base = ou=alias,ou=mail,dc=domain,dc=de
aliases_query_filter = (&(mail=%s)(objectClass=CourierMailAlias))
aliases_result_attribute = maildrop
aliases_bind = no
aliases_cache = no

transport_maps = hash:/etc/postfix/local_transport,
hash:/etc/postfix/transport
local_recipient_maps = $alias_maps $transport_maps
hash:/etc/postfix/local_recipients, $virtual_mailbox_maps

virtual_alias_maps = ldap:aliases
virtual_transport = dovecot
virtual_mailbox_base = /MAILSPACE/domain
virtual_mailbox_maps = ldap:accounts
virtual_mailbox_domains = hash:/etc/postfix/virtual_domains
virtual_minimum_uid = 5001
virtual_uid_maps = static:5001
virtual_gid_maps = static:5001

################### Spam- und Virusfilter ##########################
header_checks = pcre:/etc/postfix/header_checks,
pcre:/etc/postfix/header_check_custom
body_checks = pcre:/etc/postfix/body_checks
smtpd_client_restrictions =
    permit_mynetworks,
    permit_sasl_authenticated,
    reject_rbl_client ix.dnsbl.manitu.net,
    reject_rbl_client sbl.spamhaus.org,
    reject_rbl_client bl.spamcop.net,
    reject_rbl_client cbl.abuseat.org
disable_vrfy_command = yes

#SPAM / Virusfilter Amavisd
content_filter=smtp-amavis:[127.0.0.1]:10024


------------------------------------------------------------------
/etc/postfix/master.cf

#
# Postfix master process configuration file.  For details on the format
# of the file, see the master(5) manual page (command: "man 5 master").
#
# ==========================================================================
# service type  private unpriv  chroot  wakeup  maxproc command + args
#               (yes)   (yes)   (yes)   (never) (100)
# ==========================================================================
smtp      inet  n       -       n       -       -       smtpd
    -o cleanup_service_name=pre-cleanup
#submission inet n       -       n       -       -       smtpd
#  -o smtpd_enforce_tls=yes
#  -o smtpd_sasl_auth_enable=yes
#  -o smtpd_client_restrictions=permit_sasl_authenticated,reject
smtps     inet  n       -       n       -       -       smtpd
#628      inet  n       -       n       -       -       qmqpd
pickup    fifo  n       -       n       60      1       pickup
     -o cleanup_service_name=pre-cleanup
cleanup   unix  n       -       n       -       0       cleanup
    -o mime_header_checks=
    -o nested_header_checks=
    -o body_checks=
    -o header_checks=
pre-cleanup unix    n       -       n       -       0       cleanup
    -o receive_override_options=no_address_mappings
    -o virtual_alias_maps=
    -o canonical_maps=
    -o sender_canonical_maps=
    -o recipient_canonical_maps=
    -o masquerade_domains=
qmgr      fifo  n       -       n       300     1       qmgr
#qmgr     fifo  n       -       n       300     1       oqmgr
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
smtp      unix  -       -       n       -       -       smtp
# When relaying mail as backup MX, disable fallback_relay to avoid MX loops
relay     unix  -       -       n       -       -       smtp
    -o fallback_relay=
#       -o smtp_helo_timeout=5 -o smtp_connect_timeout=5
showq     unix  n       -       n       -       -       showq
error     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
#
# ====================================================================
# Interfaces to non-Postfix software. Be sure to examine the manual
# pages of the non-Postfix software to find out what options it wants.
#
# Many of the following services use the Postfix pipe(8) delivery
# agent.  See the pipe(8) man page for information about ${recipient}
# and other message envelope options.
# ====================================================================
dovecot   unix  -       n       n       -       -       pipe
  flags=ODRhu user=vmail:vmail argv=/usr/libexec/dovecot/deliver -f
${sender} -d ${recipient}

smtp-amavis unix -      -       n     -       2  smtp
    -o smtp_data_done_timeout=1200
    -o smtp_send_xforward_command=yes
    -o max_use=20

127.0.0.1:10025 inet n  -       n       -       -       smtpd
    -o content_filter=
    -o local_recipient_maps=
    -o relay_recipient_maps=
    -o smtpd_delay_reject=no
    -o smtpd_restriction_classes=
    -o smtpd_client_restrictions=
    -o smtpd_helo_restrictions=
    -o smtpd_sender_restrictions=
    -o smtpd_recipient_restrictions=permit_mynetworks,reject
    -o smtpd_data_restrictions=reject_unauth_pipelining
    -o smtpd_end_of_data_restrictions=
    -o mynetworks=127.0.0.0/8
    -o smtpd_error_sleep_time=0
    -o smtpd_soft_error_limit=1001
    -o smtpd_hard_error_limit=1000
    -o smtpd_client_connection_count_limit=0
    -o smtpd_client_connection_rate_limit=0
    -o
receive_override_options=no_header_body_checks,no_unknown_recipient_checks









Mehr Informationen über die Mailingliste Postfixbuch-users