![zwei E-Mails mit derselben Domain](https://rvso.com/image/697396/zwei%20E-Mails%20mit%20derselben%20Domain.png)
Ich bin verwirrt, wie ich meine Postfix-Einstellungen ändern kann, um einfach 2 E-Mails basierend auf 1 Domain hinzuzufügen. Laut Handbuch sollte es ungefähr so aussehen:
/etc/postfix/main.cf:
virtual_alias_domains = example.com (...other hosted domains here if needed...)
virtual_alias_maps = hash:/etc/postfix/virtual
/etc/postfix/virtual:
[email protected] postmaster
[email protected] joe
[email protected] jane
(...virtual aliases for more domains...)
meine aktuellen funktionierenden Postfix-Einstellungen hier (das funktioniert für[email geschützt]):
/etc/postfix/main.cf:
smtpd_banner = $myhostname ESMTP $mail_name (Ubuntu)
biff = no
append_dot_mydomain = no
readme_directory = no
mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128
mailbox_size_limit = 0
recipient_delimiter = +
inet_interfaces = loopback-only
inet_protocols = all
smtp_tls_policy_maps = hash:/etc/postfix/tls_policy
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
smtp_header_checks = pcre:/etc/postfix/smtp_header_checks
myhostname = pcelgery
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
mydestination = pcelgery, localhost.com, localhost
relayhost = smtp.zoho.com:587
smtp_sasl_auth_enable = yes
smtp_sasl_password_maps = hash:/etc/postfix/password
smtp_generic_maps = hash:/etc/postfix/generic
smtp_sasl_security_options = noanonymous
smtp_always_send_ehlo = yes
smtpd_recipient_restrictions = permit_sasl_authenticated,permit_mynetworks,reject_unauth_destination
smtpd_relay_restrictions = permit_mynetworks,permit_sasl_authenticated,defer_unauth_destination
/etc/postfix/generic:
root [email protected]
/etc/postfix/password:
smtp.zoho.com:587 [email protected]:DonaldMcDonaldKangreBurger
/etc/postfix/smtp_header_checks:
/^From:.*/ REPLACE From:[email protected]
/etc/postfix/tls_policy:
smtp.zoho.com:587 encrypt
Basierend auf der obigen Konfiguration muss ich eine weitere E-Mail hinzufügen ([email geschützt]), das auch über smtp.zoho.com:587 geht.
Wie kann ich also meine obige Konfiguration entsprechend anpassen? Benötige ich dazu virtuelle Maps und Aliase in der Postfix-Datei main.cf?
Für Hinweise bin ich sehr dankbar.
Antwort1
Ich gehe davon aus, dass Sie Postfix bereits für Ihre Domain konfiguriert haben, sagen wir@beispiel.com. Das bedeutet, dass Postfix jedem in Ihrem Host definierten Benutzer eine E-Mail zustellen mussAbonnieren. Beispiel:[email geschützt]
Also, ich beantworte deine Fragen
Wie fügen Sie Ihrer Domäne neue Postfächer hinzu?
Erstellen Sie einfach einen neuen OS-Benutzer.
Benötigen Sie virtuelle Karten und Aliase?
Nein, es sei denn, Sie möchten E-Mails an andere lokale oder Remotedomänen zustellen.
Hoffe, das klärt das Problem