schneerunzel
Goto Top

Postfix: Annahme von Mails

Hallo zusammen,

ich habe seit über eine Jahr ein Zarafa Server mit einem Postfix dadrunter.


Bisher hatten wir nur immer folgende Situation:

User Max Mustermann mit dem Username max hatte die Mailadresse max@meinedomain.com
Diese Mails kommen auch problemlos an.
Jetzt haben wir den Fall:
User Lisa Mustermann mit dem Username lisa soll die Mailadresse abcd@meinedomain.com bekommen.
Die Mails die an abcd@... gesendet werden kommen nicht an....

Im mail.log finde ich dann folgenden Eintrag:
Nov 27 09:30:17 mail-server postfix/local[43627]: B11D016129B: to=<abcd@meinedomain.com>, relay=local, delay=0.46, delays=0.29/0.09/0/0.08, dsn=5.1.1, status=bounced (unknown user: "abcd")  

Kurz ein paar Hintergrund Infos:
- ich setzte eine LDAP Server ein, sowohl die Authentifizierung am Mailserver (SSH), die SASL Authentifizierung , Zarafa etc laufen gegen LDAP
- Im LDAP ist unter dem Mail-Attribut die Mailadresse abcd@meinedomain.com eingetragen
- Code zur suche im LDAP:
server_host = ldap://ldap.******.local
search_base = dc=ldap,dc=******,dc=******
query_filter = (&(mail=%s)(zarafaAccount=1)(objectClass=zarafa-user))
result_attribute = uid
- wenn ich
 postmap -q "abcd@meinedomain.com" ldap:/etc/postfix/ldap-users.cf  
mache bekomme ich lisa zurück.
- Wenn ich ein Eintrag in der /etc/aliases mache für abcd: lisa kommt die Mail auch durch. Aber das kann nicht die Lösung sein.


Habt Ihr eine Idee?
Welche Einstellungen müssen in der main.cf gemacht werden

main.cf:
# See /usr/share/postfix/main.cf.dist for a commented, more complete version


# Debian specific:  Specifying a file name will cause the first
# line of that file to be used as the name.  The Debian default
# is /etc/mailname.
#myorigin = /etc/mailname

smtpd_banner = $myhostname ESMTP $mail_name (********)
biff = no

# appending .domain is the MUA's job. 
append_dot_mydomain = no

# Uncomment the next line to generate "delayed mail" warnings 
#delay_warning_time = 4h

readme_directory = no

# TLS parameters
smtpd_tls_cert_file=/etc/ssl/certs/ssl-cert-snakeoil.pem
smtpd_tls_key_file=/etc/ssl/private/ssl-cert-snakeoil.key
smtpd_use_tls=yes
smtpd_tls_session_cache_database = btree:${data_directory}/smtpd_scache
smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache
smtpd_sasl_auth_enable = yes
smtpd_sasl_path = smtpd
smtpd_recipient_restrictions = permit_mynetworks

# See /usr/share/doc/postfix/TLS_README.gz in the postfix-doc package for

# information on enabling SSL in the smtp client.

smtpd_relay_restrictions = permit_mynetworks permit_sasl_authenticated defer_unauth_destination
myhostname = **************
alias_maps = hash:/etc/aliases, ldap:/etc/postfix/ldap-group.cf, ldap:/etc/postfix/ldap-aliases.cf, ldap:/etc/postfix/ldap-virtual-aliases.cf, ldap:/etc/postfix/ldap-group.cf, ldap:/etc/postfix/ldap-distribution.cf
alias_database = hash:/etc/aliases, ldap:/etc/postfix/ldap-group.cf, ldap:/etc/postfix/ldap-aliases.cf, ldap:/etc/postfix/ldap-virtual-aliases.cf, ldap:/etc/postfix/ldap-group.cf, ldap:/etc/postfix/ldap-distribution.cf
mydestination = *****************************
relayhost = smtp.********.de
mynetworks = 127.0.0.0/8 **************************
#mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128
mailbox_size_limit = 0
recipient_delimiter = +
inet_interfaces = all
smtp_sasl_auth_enable = yes
smtp_sender_dependent_authentication = yes
smtp_sasl_password_maps = hash:/etc/postfix/sasl/sasl_passwd
sender_dependent_relayhost_maps = hash:/etc/postfix/sasl/sender_relay
smtp_sasl_security_options = noanonymous
smtp_use_tls = yes
smtp_enforce_tls = yes
smtp_tls_security_level = may
inet_protocols = ipv4
myorigin = /etc/mailname
mailbox_command = /usr/bin/zarafa-dagent "$USER"  
virtual_mailbox_domains = *****************
virtual_alias_maps = hash:/etc/aliases, ldap:/etc/postfix/ldap-aliases.cf, ldap:/etc/postfix/ldap-virtual-aliases.cf, ldap:/etc/postfix/ldap-group.cf, ldap:/etc/postfix/ldap-distribution.cf
virtual_mailbox_maps = ldap:/etc/postfix/ldap-users.cf


Vielen Dank für Eure Hilfe

Content-Key: 289489

Url: https://administrator.de/contentid/289489

Printed on: April 18, 2024 at 23:04 o'clock