AW: Postfix / Dovecot - aliases funktionieren nicht

LS l.schilling.mz at posteo.de
Mo Feb 10 07:54:05 CET 2025


-----Ursprüngliche Nachricht-----
Von: Dovecot <dovecot-bounces at listen.jpberlin.de> Im Auftrag von Markus Winkler via Dovecot
Gesendet: Sonntag, 9. Februar 2025 17:44
An: dovecot at listen.jpberlin.de
Cc: Markus Winkler <ml at irmawi.de>
Betreff: Re: Postfix / Dovecot - aliases funktionieren nicht

Hallo Lothar,

On 09.02.25 16:07, LS via Dovecot wrote:
> 
> postfix/lmtp[7324]: 3EA9481A40: to=<some.alias at my.domain>, 
> relay=127.0.0.1[127.0.0.1]:24, delay=1.3, delays=1.2/0.01/0.01/0.02, 
> dsn=5.1.1, status=bounced (host 127.0.0.1[127.0.0.1] said: 550 5.1.1 
> <some.alias at my.domain> User doesn't exist: some.alias at my.domain (in 
> reply to RCPT TO command)

wie sieht denn der Output davon aus?:

postmap -q some.alias at my.domain mysql:/etc/postfix/mysql-virtual_alias_maps.cf

> main.cf
> 
> [...]

Schicke bitte den Output von 'postconf -n' und 'postconf -fM'.

Danke und viele Grüße
Markus

Hallo Markus,

postmap -q some.alias at my.domain mysql:/etc/postfix/mysql-virtual_alias_maps.cf:
zeigt die hinterlegten Weiterleitungsadressen korrekt an

postconf -fM
smtp       inet  n       -       y       -       -       smtpd
submission inet  n       -       y       -       -       smtpd
    -o syslog_name=postfix/submission
    -o smtpd_tls_security_level=encrypt
    -o smtpd_sasl_auth_enable=yes
    -o smtpd_tls_auth_only=yes
    -o smtpd_tls_wrappermode=no
    -o smtpd_relay_restrictions=reject_non_fqdn_recipient,reject_non_fqdn_sender,reject_unknown_recipient_domain,reject_unknown_sender_domain,permit_sasl_authenticated,reject
    -o smtpd_sasl_type=dovecot
    -o smtpd_sasl_path=private/auth
smtps      inet  n       -       y       -       -       smtpd
    -o smtpd_tls_wrappermode=yes
    -o smtpd_sasl_auth_enable=yes
    -o smtpd_client_restrictions=permit_sasl_authenticated,reject
pickup     unix  n       -       y       60      1       pickup
cleanup    unix  n       -       y       -       0       cleanup
qmgr       unix  n       -       n       300     1       qmgr
tlsmgr     unix  -       -       y       1000?   1       tlsmgr
rewrite    unix  -       -       y       -       -       trivial-rewrite
bounce     unix  -       -       y       -       0       bounce
defer      unix  -       -       y       -       0       bounce
trace      unix  -       -       y       -       0       bounce
verify     unix  -       -       y       -       1       verify
flush      unix  n       -       y       1000?   0       flush
proxymap   unix  -       -       n       -       -       proxymap
proxywrite unix  -       -       n       -       1       proxymap
smtp       unix  -       -       y       -       -       smtp
    -o smtp_bind_address=[my.ip.is.here]
relay      unix  -       -       y       -       -       smtp
    -o syslog_name=postfix/$service_name
showq      unix  n       -       y       -       -       showq
error      unix  -       -       y       -       -       error
retry      unix  -       -       y       -       -       error
discard    unix  -       -       y       -       -       discard
local      unix  -       n       n       -       -       local
virtual    unix  -       n       n       -       -       virtual
lmtp       unix  -       -       y       -       -       lmtp
anvil      unix  -       -       y       -       1       anvil
scache     unix  -       -       y       -       1       scache
postlog    unix-dgram n  -       n       -       1       postlogd
maildrop   unix  -       n       n       -       -       pipe flags=DRhu
    user=vmail argv=/usr/bin/maildrop -d ${recipient}
uucp       unix  -       n       n       -       -       pipe flags=Fqhu
    user=uucp argv=uux -r -n -z -a$sender - $nexthop!rmail ($recipient)
ifmail     unix  -       n       n       -       -       pipe flags=F user=ftn
    argv=/usr/lib/ifmail/ifmail -r $nexthop ($recipient)
bsmtp      unix  -       n       n       -       -       pipe flags=Fq.
    user=bsmtp argv=/usr/lib/bsmtp/bsmtp -t$nexthop -f$sender $recipient
scalemail-backend unix - n       n       -       2       pipe flags=R
    user=scalemail argv=/usr/lib/scalemail/bin/scalemail-store ${nexthop}
    ${user} ${extension}
mailman    unix  -       n       n       -       -       pipe flags=FR
    user=list argv=/usr/lib/mailman/bin/postfix-to-mailman.py ${nexthop}
    ${user}
127.0.0.1:10025 inet n   -       y       -       -       smtpd
    -o content_filter=
    -o smtpd_helo_restrictions=
    -o smtpd_sender_restrictions=
    -o smtpd_recipient_restrictions=permit_mynetworks,reject
    -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 receive_override_options=no_header_body_checks,no_milters
    -o smtpd_helo_required=no
    -o smtpd_client_restrictions=
    -o smtpd_restriction_classes=
    -o disable_vrfy_command=no
    -o strict_rfc821_envelopes=yes
dovecot    unix  -       n       n       -       -       pipe flags=DRhu
    user=vmail:mail argv=/usr/lib/dovecot/deliver -d ${recipient}
vacation   unix  -       n       n       -       -       pipe flags=Rq
    user=vacation argv=/var/spool/vacation/vacation.pl -f ${sender} --
    ${recipient}
policy-spf unix  -       n       n       -       -       spawn user=nobody
    argv=/usr/bin/policyd-spf

postconf -n
alias_database = hash:/etc/aliases
alias_maps = hash:/etc/aliases
broken_sasl_auth_clients = yes
command_directory = /usr/sbin
compatibility_level = 3.6
daemon_directory = /usr/lib/postfix/sbin
data_directory = /var/lib/postfix
debug_peer_level = 4
header_checks = regexp:/etc/postfix/header_checks
html_directory = /usr/share/doc/postfix/html
inet_interfaces = $myhostname, localhost, [my.ip.is.here]
inet_protocols = ipv4
lmtp_host_lookup = native
message_size_limit = 35000000
milter_default_action = accept
milter_protocol = 6
mydestination = $myhostname, localhost.$mydomain, localhost
mydomain = [my.domain]
myhostname = [my.mail.server]
mynetworks = [my.ip.is.here]/32, 127.0.0.0/8
myorigin = $mydomain
non_smtpd_milters = ${smtpd_milters}
policy-spf_time_limit = 3600
readme_directory = /usr/share/doc/postfix
receive_override_options = no_address_mappings
relay_domains = proxy:mysql:/etc/postfix/mysql-relay_domains_maps.cf
smtp_host_lookup = native
smtp_tls_CAfile = /etc/letsencrypt/live/[my.mail.server]/fullchain.pem
smtp_tls_ciphers = high
smtp_tls_loglevel = 1
smtp_tls_protocols = !SSLv2, !SSLv3
smtp_tls_security_level = may
smtp_use_tls = yes
smtpd_banner = $myhostname ESMTP $mail_name (Ubuntu)
smtpd_milters = inet:127.0.0.1:8892
smtpd_recipient_restrictions = reject_unauth_destination
smtpd_relay_restrictions = permit_mynetworks permit_sasl_authenticated reject_unauth_destination check_sender_access hash:/etc/postfix/sender_whitelist reject_rbl_client zen.spamhaus.org reject_rbl_client ix.dnsbl.manitu.net reject_rbl_client dul.dnsbl.sorbs.net reject_rhsbl_sender cbl.abuseat.org reject_non_fqdn_recipient reject_non_fqdn_sender reject_invalid_hostname reject_unauth_destination reject_unknown_recipient_domain reject_unknown_sender_domain
smtpd_sasl_auth_enable = yes
smtpd_sasl_local_domain = $myhostname
smtpd_sasl_path = private/auth
smtpd_sasl_security_options = noanonymous
smtpd_sasl_type = dovecot
smtpd_sender_restrictions = check_sender_access hash:/etc/postfix/sender_access_denied, pcre:/etc/postfix/reject_domains
smtpd_tls_CAfile = /etc/letsencrypt/live/[my.mail.server]/fullchain.pem
smtpd_tls_auth_only = yes
smtpd_tls_cert_file = /etc/letsencrypt/live/[my.mail.server]/cert.pem
smtpd_tls_ciphers = high
smtpd_tls_dh1024_param_file = /etc/postfix/dh_1024.pem
smtpd_tls_dh512_param_file = /etc/postfix/dh_512.pem
smtpd_tls_eecdh_grade = strong
smtpd_tls_key_file = /etc/letsencrypt/live/[my.mail.server]/privkey.pem
smtpd_tls_loglevel = 1
smtpd_tls_protocols = !SSLv2, !SSLv3
smtpd_tls_security_level = may
smtpd_use_tls = yes
soft_bounce = no
transport_maps = hash:/etc/postfix/transport
unknown_local_recipient_reject_code = 550
unverified_recipient_reject_code = 577
virtual_alias_expansion_limit = 1500
virtual_alias_maps = proxy:mysql:/etc/postfix/mysql-virtual_alias_maps.cf, regexp:/etc/postfix/virtual_regexp, hash:/etc/postfix/virtual

Vielen Dank und Gruß
Lothar



Mehr Informationen über die Mailingliste Dovecot