'+'-Zeichen in Mailadresse erzeugt einen neuen Ordner im Imap und wird zugestellt

Andreas postfix at linuxmaker.de
Fr Aug 31 11:12:17 CEST 2018


Hallo,

ich stelle ein Verhalten bei Postfix fest, dass mich irritiert.
Wenn ich Mails erhalte, die im Namensteil vor dem at-Zeichen ein '+'-Zeichen 
einhält, wie nachfolgend an "info+test at empfaenger.com", dann wird die Mail 
angenommen und nicht verworfen. Stattdessen erzeugt Dovecot einen neuen Ordner 
namens "test", dem Teil der nach dem + folgt.

Aug 31 10:55:05 mx postfix/smtpd[21677]: NOQUEUE: 
client=mail.headlight.de[192.85.84.20]
Aug 31 10:55:05 mx amavis[18513]: (18513-13) ESMTP [127.0.0.1]:10024 /var/lib/
amavis/tmp/amavis-20180831T020434-18513-HhQHv5Vr: <wh at sender.com> -> <info
+test at empfaenger.com> SIZE=8303 BODY=7BIT Received: from mx.empfaenger.com 
([127.0.0.1]) by localhost (mx.empfaenger.com [127.0.0.1]) (amavisd-new, port 
10024) with ESMTP for <info+test at empfaenger.com>; Fri, 31 Aug 2018 10:55:05 
+0200 (CEST)
Aug 31 10:55:05 mx amavis[18513]: (18513-13) Checking: fzz3o1MkUOxO 
[192.85.84.20] <wh at sender.com> -> <info+test at empfaenger.com>
Aug 31 10:55:09 mx postfix/smtpd[21660]: disconnect from 
mail1.mn.man.de[151.136.108.88] ehlo=2 starttls=1 mail=1 rcpt=1 data=1 quit=1 
commands=7
Aug 31 10:55:11 mx postfix/smtpd[21670]: connect from localhost[127.0.0.1]
Aug 31 10:55:11 mx postfix/smtpd[21670]: 2FA571A1F4C: 
client=localhost[127.0.0.1]
Aug 31 10:55:11 mx postfix/cleanup[21671]: 2FA571A1F4C: message-id=<35CE5074-
AE37-4014-B5F1-D3C23B609065 at sender.com>
Aug 31 10:55:11 mx opendkim[913]: 2FA571A1F4C: no signing table match for 
'wh at sender.com'
Aug 31 10:55:11 mx opendkim[913]: 2FA571A1F4C: no signature data
Aug 31 10:55:11 mx postfix/qmgr[31179]: 2FA571A1F4C: from=<wh at sender.com>, 
size=9238, nrcpt=1 (queue active)
Aug 31 10:55:11 mx postfix/smtpd[21670]: disconnect from localhost[127.0.0.1] 
ehlo=1 mail=1 rcpt=1 data=1 quit=1 commands=5
Aug 31 10:55:11 mx amavis[18513]: (18513-13) fzz3o1MkUOxO FWD from 
<wh at sender.com> -> <info+test at empfaenger.com>, BODY=7BIT 250 2.0.0 from 
MTA(smtp:[127.0.0.1]:10025): 250 2.0.0 Ok: queued as 2FA571A1F4C
Aug 31 10:55:11 mx dovecot: lmtp(21673): Connect from local
Aug 31 10:55:11 mx amavis[18513]: (18513-13) Passed CLEAN {RelayedInbound}, 
[192.85.84.20]:53912 [77.4.42.48] <wh at sender.com> -> <info
+test at empfaenger.com>, Message-ID: <35CE5074-AE37-4014-B5F1-
D3C23B609065 at sender.com>, mail_id: fzz3o1MkUOxO, Hits: -2.599, size: 8496, 
queued_as: 2FA571A1F4C, 5651 ms
Aug 31 10:55:11 mx postfix/smtpd[21677]: proxy-accept: END-OF-MESSAGE: 250 
2.0.0 from MTA(smtp:[127.0.0.1]:10025): 250 2.0.0 Ok: queued as 2FA571A1F4C; 
from=<wh at sender.com> to=<info+test at empfaenger.com> proto=ESMTP 
helo=<mail.headlight.de>
Aug 31 10:55:11 mx postfix/smtpd[21677]: disconnect from 
mail.headlight.de[192.85.84.20] ehlo=2 starttls=1 mail=1 rcpt=1 data=1 quit=1 
commands=7
Aug 31 10:55:11 mx dovecot: lmtp(andreas at empfaenger.com): 
oQxWEW8CiVupVAAAqUe9JA: sieve: msgid=<35CE5074-AE37-4014-B5F1-
D3C23B609065 at sender.com>: stored mail into mailbox 'INBOX/test'

Kann man das irgendwie unterbinden?
Anbei meine main.cf:

alias_database = hash:/etc/aliases
alias_maps = hash:/etc/aliases
append_dot_mydomain = no
biff = no
bounce_queue_lifetime = 1h
broken_sasl_auth_clients = yes
compatibility_level = 2
content_filter = smtp-amavis:[127.0.0.1]:10024
disable_vrfy_command = yes
greylist = permit_dnswl_client list.dnswl.org, check_policy_service inet:
127.0.0.1:10023
html_directory = /usr/share/doc/postfix/html
inet_interfaces = all
inet_protocols = all
mailbox_size_limit = 0
maximal_backoff_time = 15m
maximal_queue_lifetime = 1h
message_size_limit = 52428800
milter_default_action = accept
milter_protocol = 6
minimal_backoff_time = 300s
mydestination = mx.empfaenger.com, localhost.empfaenger.com, localhost
myhostname = mx.empfaenger.com
mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128 192.168.1.1/32 
192.168.1.4/32 192.168.1.5/32 188.40.80.30/32
myorigin = /etc/mailname
non_smtpd_milters = inet:localhost:12248
plaintext_reject_code = 550
postscreen_access_list = permit_mynetworks, cidr:/etc/postfix/
postscreen_access.cidr
postscreen_bare_newline_enable = no
postscreen_blacklist_action = drop
postscreen_cache_cleanup_interval = 24h
postscreen_cache_map = proxy:btree:$data_directory/postscreen_cache
postscreen_dnsbl_action = drop
postscreen_dnsbl_sites = b.barracudacentral.org=127.0.0.2*7 
dnsbl.inps.de=127.0.0.2*7 bl.mailspike.net=127.0.0.2*5 
bl.mailspike.net=127.0.0.[10;11;12]*4 dnsbl.sorbs.net=127.0.0.10*8 
dnsbl.sorbs.net=127.0.0.5*6 dnsbl.sorbs.net=127.0.0.7*3 
dnsbl.sorbs.net=127.0.0.8*2 dnsbl.sorbs.net=127.0.0.6*2 
dnsbl.sorbs.net=127.0.0.9*2 zen.spamhaus.org=127.0.0.[10;11]*8 
zen.spamhaus.org=127.0.0.[4..7]*6 zen.spamhaus.org=127.0.0.3*4 
zen.spamhaus.org=127.0.0.2*3 hostkarma.junkemailfilter.com=127.0.0.2*3 
hostkarma.junkemailfilter.com=127.0.0.4*1 
hostkarma.junkemailfilter.com=127.0.1.2*1 wl.mailspike.net=127.0.0.
[18;19;20]*-2 hostkarma.junkemailfilter.com=127.0.0.1*-2
postscreen_dnsbl_threshold = 8
postscreen_dnsbl_ttl = 5m
postscreen_greet_action = enforce
postscreen_greet_banner = $smtpd_banner
postscreen_greet_ttl = 2d
postscreen_greet_wait = 3s
postscreen_non_smtp_command_enable = no
postscreen_pipelining_enable = no
proxy_read_maps = proxy:mysql:/etc/postfix/sql/mysql_virtual_sender_acl.cf, 
proxy:mysql:/etc/postfix/sql/mysql_tls_enforce_out_policy.cf, proxy:mysql:/
etc/postfix/sql/mysql_tls_enforce_in_policy.cf, $local_recipient_maps 
$mydestination $virtual_alias_maps $virtual_alias_domains 
$virtual_mailbox_maps $virtual_mailbox_domains $relay_recipient_maps 
$relay_domains $canonical_maps $sender_canonical_maps 
$recipient_canonical_maps $relocated_maps $transport_maps $mynetworks 
$smtpd_sender_login_maps
queue_run_delay = 300s
readme_directory = /usr/share/doc/postfix
recipient_delimiter = +
relay_domains = proxy:mysql:/etc/postfix/sql/mysql_virtual_mxdomain_maps.cf
relay_recipient_maps = proxy:mysql:/etc/postfix/sql/
mysql_relay_recipient_maps.cf
relayhost =
sender_dependent_default_transport_maps = proxy:mysql:/etc/postfix/sql/
mysql_tls_enforce_out_policy.cf
smtp_dns_support_level = dnssec
smtp_header_checks = pcre:/etc/postfix/submission_header_cleanup
smtp_tls_CAfile = /etc/ssl/certs/ca-certificates.crt
smtp_tls_loglevel = 1
smtp_tls_security_level = dane
smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache
smtpd_banner = $myhostname
smtpd_client_restrictions = permit_mynetworks check_client_access hash:/etc/
postfix/without_ptr reject_unknown_client_hostname
smtpd_data_restrictions = reject_unauth_pipelining, permit
smtpd_delay_reject = yes
smtpd_error_sleep_time = 10s
smtpd_hard_error_limit = ${stress?1}${stress:5}
smtpd_helo_required = yes
smtpd_milters = inet:localhost:12248
smtpd_proxy_timeout = 600s
smtpd_recipient_restrictions = check_sender_access hash:/etc/postfix/access-
recipient, permit_sasl_authenticated, permit_mynetworks, 
reject_invalid_helo_hostname, reject_unknown_reverse_client_hostname, 
reject_unauth_destination
smtpd_restriction_classes = greylist
smtpd_sasl_auth_enable = yes
smtpd_sasl_authenticated_header = yes
smtpd_sasl_path = private/auth_dovecot
smtpd_sasl_type = dovecot
smtpd_sender_login_maps = proxy:mysql:/etc/postfix/sql/
mysql_virtual_sender_acl.cf
smtpd_sender_restrictions = reject_authenticated_sender_login_mismatch, 
permit_mynetworks, reject_sender_login_mismatch, permit_sasl_authenticated, 
reject_unlisted_sender, reject_unknown_sender_domain
smtpd_soft_error_limit = 3
smtpd_tls_auth_only = yes
smtpd_tls_cert_file = /etc/ssl/mail/mail.crt
smtpd_tls_ciphers = high
smtpd_tls_dh1024_param_file = /etc/ssl/mail/dhparams.pem
smtpd_tls_eecdh_grade = strong
smtpd_tls_exclude_ciphers = ECDHE-RSA-RC4-SHA, RC4, aNULL
smtpd_tls_key_file = /etc/ssl/mail/mail.key
smtpd_tls_loglevel = 1
smtpd_tls_mandatory_ciphers = high
smtpd_tls_mandatory_exclude_ciphers = ECDHE-RSA-RC4-SHA, RC4, aNULL
smtpd_tls_mandatory_protocols = !SSLv3
smtpd_tls_protocols = !SSLv3
smtpd_tls_security_level = may
smtpd_tls_session_cache_database = btree:${data_directory}/smtpd_scache
tls_high_cipherlist = EDH+CAMELLIA:EDH+aRSA:EECDH+aRSA+AESGCM:EECDH+aRSA
+SHA384:EECDH+aRSA+SHA256:EECDH:+CAMELLIA256:+AES256:+CAMELLIA128:+AES128:
+SSLv3:!aNULL:!eNULL:!LOW:!3DES:!MD5:!EXP:!PSK:!DSS:!RC4:!SEED:!
ECDSA:CAMELLIA256-SHA:AES256-SHA:CAMELLIA128-SHA:AES128-SHA
tls_preempt_cipherlist = yes
tls_ssl_options = NO_COMPRESSION
virtual_alias_maps = proxy:mysql:/etc/postfix/sql/mysql_virtual_alias_maps.cf, 
proxy:mysql:/etc/postfix/sql/mysql_virtual_spamalias_maps.cf, proxy:mysql:/
etc/postfix/sql/mysql_virtual_alias_domain_maps.cf, proxy:mysql:/etc/postfix/
sql/mysql_virtual_alias_domain_catchall_maps.cf
virtual_gid_maps = static:5000
virtual_mailbox_base = /var/vmail/
virtual_mailbox_domains = proxy:mysql:/etc/postfix/sql/
mysql_virtual_domains_maps.cf
virtual_mailbox_maps = proxy:mysql:/etc/postfix/sql/
mysql_virtual_mailbox_maps.cf, proxy:mysql:/etc/postfix/sql/
mysql_virtual_alias_domain_mailbox_maps.cf
virtual_minimum_uid = 104
virtual_transport = lmtp:unix:private/dovecot-lmtp
virtual_uid_maps = static:5000


Beste Grüße

Andreas


Mehr Informationen über die Mailingliste Postfixbuch-users