Hallo Linuxgemeinde,
Seit einiger Zeit arbeite ich daran eine Art Mail Archivsystem mittels Postfix und Dovecot umzusetzen.
Meine Wunsch Konstellation sieht wie folgt aus:
Mails die an diverse Mailadressen gesendet worden sind (in diesem Beispiel an receiver empfänger@example.org und empfänger@example.com) sollen in das entsprechende Postfach des Dovecot Nutzers landen.
Schematisches bsp:
Empfänger Mailbox receiver1@example.org --> Dovecotuser/Receiver1 receiver2@example.org --> Dovecotuser/Receiver2
Zur Zeit landen alle Mails im INBOX Postfach des Dovecot Nutzers. Ich bekomme das Mapping einfach nicht hin.
Meine Postfix Konfiguration
postconf -n
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 | alias_database = hash:/etc/aliases alias_maps = hash:/etc/aliases append_dot_mydomain = no biff = no compatibility_level = 2 default_transport = error inet_interfaces = all inet_protocols = all lmtp_destination_recipient_limit = 1 mailbox_size_limit = 0 mailbox_transport = lmtp:unix:private/dovecot-lmtp mydestination = $myhostname myhostname = localhost, example.org mynetworks = 127.0.0.0/8 myorigin = /etc/mailname readme_directory = no recipient_delimiter = + relay_transport = error relayhost = smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache smtpd_banner = $myhostname smtpd_recipient_restrictions = permit_mynetworks, permit_sasl_authenticated, reject_unauth_destination, reject_non_fqdn_sender, reject_non_fqdn_recipient, reject_unknown_recipient_domain, reject_unknown_reverse_client_hostname, reject_unknown_client_hostname, check_client_access hash:/etc/postfix/_incoming_whitelist, reject smtpd_relay_restrictions = permit_mynetworks, permit_sasl_authenticated, reject_unauth_destination 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_tls_cert_file = /etc/ssl/certs/ssl-cert-snakeoil.pem smtpd_tls_key_file = /etc/ssl/private/ssl-cert-snakeoil.key smtpd_tls_session_cache_database = btree:${data_directory}/smtpd_scache smtpd_use_tls = yes virtual_alias_maps = hash:/etc/postfix/_virtual virtual_gid_maps = static:10000 virtual_mailbox_base = /var/vmail virtual_mailbox_maps = hash:/etc/postfix/vmaps virtual_uid_maps = static:10000 |
virtual_alias_maps = hash:/etc/postfix/_virtual
1 2 | receiver1@example.org Dovecotuser/Receiver1 receiver2@example.org Dovecotuser/Receiver2 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 | auth_debug = yes auth_verbose = yes disable_plaintext_auth = no mail_debug = yes mail_location = maildir:~/Maildir mail_plugins = " quota acl" namespace { list = children location = maildir:%%h/Maildir:INDEX=~/Maildir/shared/%%u prefix = shared/%%u/ separator = / subscriptions = yes type = shared } namespace inbox { inbox = yes location = mailbox Drafts { special_use = \Drafts } mailbox Junk { special_use = \Junk } mailbox Trash { special_use = \Trash } prefix = separator = / type = private } passdb { args = username_format=%u /etc/dovecot/users driver = passwd-file } plugin { acl = vfile acl_shared_dict = file:/var/lib/dovecot/db/shared-mailboxes.db } protocols = imap imap lmtp service auth { unix_listener /var/spool/postfix/private/auth { group = postfix mode = 0666 user = postfix } unix_listener auth-userdb { group = vmail mode = 0600 user = vmail } } service imap-login { inet_listener imap { port = 143 } } service lmtp { unix_listener /var/spool/postfix/private/dovecot-lmtp { group = postfix mode = 0666 user = postfix } } ssl = no userdb { args = username_format=%u /etc/dovecot/users driver = passwd-file } protocol imap { mail_plugins = " quota acl imap_quota imap_acl" } |
Bearbeitet von sebix:
Hilfe und Frage aus Titel entfernt
Bearbeitet von sebix:
Bitte verwende in Zukunft Codeblöcke, um die Übersicht im Forum zu verbessern!