Centos “root@/etc/mailname” als Absender

Andreas postfix at linuxmaker.de
Mi Feb 16 10:26:55 CET 2022


Hallo zusammen,

ich habe hier eine auf Debian funktionierende main.cf, die ich auf CentOS 7 
(FreePBX) übertragen habe:

alias_database = hash:/etc/aliases
alias_maps = hash:/etc/aliases
append_dot_mydomain = no
biff = no
canonical_maps = hash:/etc/postfix/canonical
config_directory = /etc/postfix
inet_interfaces = all
mailbox_command = procmail -a "$EXTENSION"
mailbox_size_limit = 0
mydestination = pbx.postfixserver.tld, localhost.postfixserver.tld, localhost
myhostname = pbx.postfixserver.tld
mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128
myorigin = /etc/mailname
readme_directory = no
recipient_delimiter = +
relayhost = [mx.example.tld]:587
smtp_sasl_auth_enable = yes
smtp_sasl_mechanism_filter = plain
smtp_sasl_password_maps = hash:/etc/postfix/smtp_auth
smtp_sasl_security_options = noanonymous
smtp_sasl_tls_security_options = noanonymous
smtp_tls_security_level = may
smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache
smtpd_banner = $myhostname ESMTP $mail_name (Debian/GNU)
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_alias_maps
postconf: warning: /etc/postfix/main.cf: unused parameter: 
compatibility_level=2

Auf dem bisherigen FreePBX-Server (Debian) funktioniert der Mail Versand zum 
Relayhost. Ich habe lediglich “mydestination”, “myhostname” und die “/etc/
mailname” mit dem richtigen Hostnamen angepasst.

caconical:
FaxMaster at pbx.postfixserver.tld     fax at example.tld
root at pbx.postfixserver.tld          root-asterisk at example.tld
asterisk at pbx.postfixserver.tld     asterisk at example.tld

Wenn ich jetzt eine Testmail senden will, sehe ich das hier im LogFile:

Feb 16 08:53:15 pbx postfix/pickup[10471]: 0936C41D41BE: uid=0 from=<root>
Feb 16 08:53:15 pbx postfix/cleanup[10536]: 0936C41D41BE: message-
id=<20220216085315.0936C41D41BE at pbx.postfixserver.tld>
Feb 16 08:53:15 pbx postfix/qmgr[10472]: 0936C41D41BE: from=<root@/etc/
mailname>, size=454, nrcpt=1 (queue active)
Feb 16 08:53:18 pbx postfix/smtp[10538]: 0936C41D41BE: to=<info at example.tld>, 
relay=mx.example.tld[2a01:4f8:120:4268::24]:587, delay=3.6, 
delays=0.08/0.04/3.5/0.01, dsn=5.1.7, status=bounced (host 
mx.example.tld[2a01:4f8:120:4268::24] said: 501 5.1.7 Bad sender address 
syntax (in reply to MAIL FROM command))

Wie zu sehen ist, trägt Postfix (Centos) als Absender "<root@/etc/mailname>" 
anstatt root-asterisk at example.tld.

Was mache ich bei Centos falsch?

Beste Grüße

Andreas

-------------- nächster Teil --------------
Ein Dateianhang mit HTML-Daten wurde abgetrennt...
URL: <https://listi.jpberlin.de/pipermail/postfixbuch-users/attachments/20220216/354983ae/attachment.htm>


Mehr Informationen über die Mailingliste Postfixbuch-users