Ich kann den Namen nicht ändern, wenn ich eine Nachricht mit Postfix versende. Ich erhalte immer[email geschützt], ich habe den gesamten Vorgang bereits überprüft, aber etwas fehlt. Könnten Sie einen Blick darauf werfen?
in /etc/postfix/main.cf habe ich
smtpd_banner = $myhostname ESMTP $mail_name (Ubuntu)
biff = no
append_dot_mydomain = no
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_relay_restrictions = permit_mynetworks permit_sasl_authenticated defer_unauth_destination
myhostname = mydomain.com
mydomain = mydomain.com
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
myorigin = /etc/mailname
#myorigin = $mydomain
#mydestination = mydomain.com, localhost.localdomain, localhost.localdomain, localhost
mydestination = $myhostname localhost.$mydomain localhost
relayhost =
mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128
mailbox_size_limit = 0
recipient_delimiter = +
inet_interfaces = all
inet_protocols = all
postconf -n
alias_database = hash:/etc/aliases
alias_maps = hash:/etc/aliases
append_dot_mydomain = no
biff = no
config_directory = /etc/postfix
inet_interfaces = all
inet_protocols = all
mailbox_size_limit = 0
milter_default_action = accept
milter_protocol = 2
mydestination = $myhostname localhost.$mydomain localhost
mydomain = mydomain.com
myhostname = mydomain.com
mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128
myorigin = /etc/mailname
non_smtpd_milters = inet:localhost:8891
readme_directory = no
recipient_delimiter = +
relayhost =
smtp_destination_concurrency_limit = 2
smtp_destination_rate_delay = 3s
smtp_extra_recipient_limit = 2
smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache
smtpd_banner = $myhostname ESMTP $mail_name (Ubuntu)
smtpd_milters = inet:localhost:8891
smtpd_relay_restrictions = permit_mynetworks permit_sasl_authenticated defer_unauth_destination
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
cat /etc/Mailname
mydomain.com
ich sende eine Test-E-Mail mit:
mail -s "test" [email protected] < test.txt
hinein/var/log/mail.logIch bekomme:
ED8021574F: from=<[email protected]>, size=35175, nrcpt=1 (queue active)
und in meinem Posteingang erhalte ich folgende Quell-E-Mail:
From: [email protected] (root)
Antwort1
Ändern
mail -s "test" [email protected] < test.txt
Zu
mail -s "test" [email protected] -a "From:[email protected]" < test.txt
Wenn diese Domäne einen SPF-Eintrag hat, der nicht das System enthält, von dem Sie senden, oder dessen Smarthost (sofern Sie einen verwenden), wird die E-Mail wahrscheinlich als Spam behandelt.