Email senden mit Postfix von Ubuntu

Allgemein Fragen, deutsche News, Ankündigungen & Events zum OTRS
Post Reply
bheshta
Znuny newbie
Posts: 4
Joined: 11 Jan 2018, 15:27
Znuny Version: 5.0.11

Email senden mit Postfix von Ubuntu

Post by bheshta »

Hallo Zusamman,
ich habe eine Problem mit senden email von postfix, könnte mir jemand bitte helfen ? es zeigt immer mit dem sender Domän auch die Host name, wie kann ich das beseitigen

ich schicke email von
bheshta@PCN46:/etc/postfix$ echo "This will go into the body of the mail." | mail -s "Hello world" bheshta_popal@trend.li.de

bheshta@PCN46:/var/log$ sudo less mail.log

bheshta@PCN46:/etc/postfix$ hostname --fqdn
PCN46.trend.li.de

Mar 7 08:07:00 PCN46 postfix/pickup[12109]: C552080F1D: uid=1000 from=<bheshta@PCN46.trend.li.de.>
Mar 7 08:07:00 PCN46 postfix/cleanup[12183]: C552080F1D: message-id=<20180307070700.C552080F1D@trend.li.de>
Mar 7 08:07:00 PCN46 postfix/qmgr[12110]: C552080F1D: from=<bheshta@PCN46.trend.li.de>, size=392, nrcpt=1 (queue active)
Mar 7 08:07:00 PCN46 postfix/local[12185]: C552080F1D: to=<bheshta_popal@trend.li.de>, relay=local, delay=0.02, delays=0.01/0/0/0.01, dsn=5.1.1, status=bounced (unknown user: "bheshta_popal")
Mar 7 08:07:00 PCN46 postfix/cleanup[12183]: C94B980F1E: message-id=<20180307070700.C94B980F1E@trend.li.de>
Mar 7 08:07:00 PCN46 postfix/bounce[12186]: C552080F1D: sender non-delivery notification: C94B980F1E
Mar 7 08:07:00 PCN46 postfix/qmgr[12110]: C94B980F1E: from=<>, size=2180, nrcpt=1 (queue active)
Mar 7 08:07:00 PCN46 postfix/qmgr[12110]: C552080F1D: removed
Mar 7 08:07:00 PCN46 postfix/smtp[12187]: C94B980F1E: to=<bheshta@PCN46.trend.li.de>, relay=komserv.trend.li.de[172.23.7.1]:25, delay=0.03, delays=0/0.01/0.01/0.02, dsn=2.0.0, status=sent (250 OK id=1etTAC-0005ye-R0)
Mar 7 08:07:00 PCN46 postfix/qmgr[12110]: C94B980F1E: removed



main.cf


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

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

# 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

# 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 = trend.li.de
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
myorigin = /etc/mailname
#mydestination = $myhostname, pcn46.trend.li.de, localhost.trend.li.de, localhost
mydestination = $myhostname
#, pcn46.trend.li.de, localhost.trend.li.de, localhost
relayhost = komserv.trend.li.de
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
Post Reply