Hi,
I’m searching for the setting to rewrite the root sender mail address for system notifications. At the moment I get these error messages from the relayhost:
<edv@mydomain.tld>: host myrelayserver.tld[0.0.0.101] said:
550-Verification failed for <root@ucs01.intra.mydomain.tld> 550-The
mail server does not recognize root@ucs01.intra.mydomain.tld as a
valid sender. 550 Sender verify failed (in reply to RCPT TO command)
The undeliverable notification, on the other hand, arrives.
Jan 18 13:15:21 ucs01 postfix/smtpd[2550]: connect from localhost[127.0.0.1]
Jan 18 13:15:21 ucs01 postfix/smtpd[2550]: disconnect from localhost[127.0.0.1] helo=1 quit=1 commands=2
Jan 18 13:15:21 ucs01 postfix/pickup[1693]: 48074192: uid=0 from=<root>
Jan 18 13:15:21 ucs01 postfix/cleanup[2558]: 48074192: message-id=<20260118121521.48074192@ucs.intra.mydomain.tld>
Jan 18 13:15:21 ucs01 postfix/qmgr[1694]: 48074192: from=<root@ucs.intra.mydomain.tld>, size=741, nrcpt=1 (queue active)
Jan 18 13:15:21 ucs01 postfix/smtp[2566]: 48074192: to=<edv@mydomain.tld>, orig_to=<root>, relay=mydomain.tld[5.9.106.101]:587, delay=0.71, delays=0.06/0.03/0.56/0.05, dsn=5.0.0, status=bounced (host mydomain.tld[5.9.106.101] said: 550-Verification failed for>
Jan 18 13:15:22 ucs01 postfix/cleanup[2558]: F3A2C193: message-id=<20260118121521.F3A2C193@ucs.intra.mydomain.tld>
Jan 18 13:15:22 ucs01 postfix/qmgr[1694]: F3A2C193: from=<>, size=3306, nrcpt=1 (queue active)
Jan 18 13:15:22 ucs01 postfix/bounce[2572]: 48074192: sender non-delivery notification: F3A2C193
Jan 18 13:15:22 ucs01 postfix/qmgr[1694]: 48074192: removed
Jan 18 13:15:22 ucs01 postfix/smtp[2566]: F3A2C193: to=<edv@mydomain.tld>, orig_to=<root@ucs.intra.mydomain.tld>, relay=mydomain.tld[5.9.106.101]:587, delay=0.29, delays=0.01/0/0.24/0.04, dsn=2.0.0, status=sent (250 OK id=1vhRgg-00000004b5h-3LOq)
Jan 18 13:15:22 ucs01 postfix/qmgr[1694]: F3A2C193: removed
I have no mailserver installed. Only the local system mails should be send via relayhost.
My mail settings in ucs:
root@ucs01:~# ucr search --brief mail/
mail/alias/.*: <empty>
mail/alias/postmaster: edv@mydomain.tld
mail/alias/root: edv@mydomain.tld
mail/alias/webmaster: edv@mydomain.tld
mail/antivir: no
mail/archivefolder: <empty>
mail/hosteddomains: <empty>
mail/localmailboxsizelimit: 51200000
mail/maps/canonical/recipient/classes: <empty>
mail/maps/canonical/recipient/enable: <empty>
mail/maps/canonical/sender/classes: <empty>
mail/maps/canonical/sender/enable: <empty>
mail/maps/transport/.*: <empty>
mail/messagesizelimit: 10240000
mail/postfix/activate_ldap_attribute_mailForwardCopyToSelf_in_virtual_alias_maps: no
mail/postfix/activate_unionmap_in_virtual_alias_maps: no
mail/postfix/cron/recreate/dh/parameter: <empty>
mail/postfix/dnslookups: <empty>
mail/postfix/dovecot_sasl: <empty>
mail/postfix/inet/interfaces: 127.0.0.1
mail/postfix/inet/protocols: <empty>
mail/postfix/ldap/timeout: 15
mail/postfix/ldaptable/debuglevel: 0
mail/postfix/ldaptable/starttls: yes
mail/postfix/ldaptable/tlscacertfile: /etc/univention/ssl/ucsCA/CAcert.pem
mail/postfix/ldaptable/tlsrequirecert: yes
mail/postfix/local/header/rewrite/clients: <empty>
mail/postfix/masquerade/domains: $mydomain
mail/postfix/masquerade/exceptions: root
mail/postfix/mastercf/options/smtp/.*: <empty>
mail/postfix/mastercf/options/smtps/.*: <empty>
mail/postfix/mastercf/options/smtps/smtpd_sasl_auth_enable: yes
mail/postfix/mastercf/options/smtps/smtpd_tls_wrappermode: yes
mail/postfix/mastercf/options/submission/.*: <empty>
mail/postfix/mastercf/options/submission/smtpd_enforce_tls: yes
mail/postfix/mastercf/options/submission/smtpd_sasl_auth_enable: yes
mail/postfix/mynetworks: 127.0.0.0/8
mail/postfix/mynetworks_style: subnet
mail/postfix/myorigin: <empty>
mail/postfix/policy/listfilter/debug: <empty>
mail/postfix/policy/listfilter/maxproc: <empty>
mail/postfix/policy/listfilter/use_sasl_username: yes
mail/postfix/policy/listfilter: no
mail/postfix/postscreen/access_list: permit_mynetworks, cidr:/etc/postfix/postscreen_access.cidr
mail/postfix/postscreen/blacklist/action: ignore
mail/postfix/postscreen/dnsbl/action: enforce
mail/postfix/postscreen/dnsbl/sites: <empty>
mail/postfix/postscreen/dnsbl/threshold: 3
mail/postfix/postscreen/enabled: no
mail/postfix/postscreen/greet/action: drop
mail/postfix/postscreen/greet/ttl: 1d
mail/postfix/postscreen/helo/required: no
mail/postfix/smtp/hostlookup: <empty>
mail/postfix/smtp/tls/loglevel: 0
mail/postfix/smtpd/banner: <empty>
mail/postfix/smtpd/data_restrictions: <empty>
mail/postfix/smtpd/debug: no
mail/postfix/smtpd/discard_ehlo_keywords: <empty>
mail/postfix/smtpd/restrictions/recipient/.*: <empty>
mail/postfix/smtpd/restrictions/recipient/10: permit_mynetworks
mail/postfix/smtpd/restrictions/recipient/30: permit_sasl_authenticated
mail/postfix/smtpd/restrictions/recipient/50: reject_unauth_destination
mail/postfix/smtpd/restrictions/recipient/70: reject_unlisted_recipient
mail/postfix/smtpd/restrictions/sender/reject_unknown_client_hostname: <empty>
mail/postfix/smtpd/restrictions/sender/reject_unknown_reverse_client_hostname: <empty>
mail/postfix/smtpd/tls/dh1024/param/file: /etc/postfix/dh_2048.pem
mail/postfix/smtpd/tls/dh512/param/file: /etc/postfix/dh_512.pem
mail/postfix/smtpd/tls/eecdh/grade: strong
mail/postfix/smtpd/tls/exclude_ciphers: RC4, aNULL
mail/postfix/smtpd/tls/loglevel: 0
mail/postfix/smtpd/tls/mandatory_protocols: >=TLSv1.2
mail/postfix/smtpd/tls/protocols: <empty>
mail/postfix/smtputf8_enable: no
mail/postfix/softbounce: <empty>
mail/postfix/ssl/cafile: <empty>
mail/postfix/ssl/capath: <empty>
mail/postfix/ssl/certificate: <empty>
mail/postfix/ssl/key: <empty>
mail/postfix/submission/restrictions/recipient/.*: <empty>
mail/postfix/tls/client/exclude_ciphers: RC4, aNULL
mail/postfix/tls/client/level: encrypt
mail/postfix/tls/client/mandatory_protocols: >=TLSv1.2
mail/postfix/tls/client/policy/.*: <empty>
mail/postfix/tls/client/policy/amavis: [127.0.0.1]:10024 none
mail/postfix/tls/client/protocols: >=TLSv1.2
mail/postfix/tls/policy/maps: hash:/etc/postfix/tls_policy
mail/postfix/tls/preempt/cipherlist: yes
mail/postfix/transport/ldap/enabled: no
mail/postfix/virtual/enabled: yes
mail/relayauth: yes
mail/relayhost: myrelayhost.tld:587
mail/smtp/VRFY/disabled: no
mail/smtp/helo/name: <empty>
mail/smtpport: 25
syslog/mail/mirrorto/syslog: no
umc/self-service/account-deregistration/email/sender_address: <empty>
umc/self-service/account-deregistration/email/server: <empty>
umc/self-service/account-deregistration/email/subject: Account deletion
umc/self-service/account-deregistration/email/text_file: <empty>
umc/self-service/account-verification/email/sender_address: <empty>
umc/self-service/account-verification/email/server: <empty>
umc/self-service/account-verification/email/subject: Account verification
umc/self-service/account-verification/email/text_file: <empty>
umc/self-service/account-verification/email/token_length: 64
umc/self-service/account-verification/email/webserver_address: <empty>
umc/self-service/email-change-notification/email/subject: Account recovery email changed
umc/self-service/email-change-notification/email/text_file: <empty>
umc/self-service/passwordreset/email/enabled: yes
umc/self-service/passwordreset/email/sender_address: Password Reset Service <noreply@ucs01.intra.mydomain.tld>
umc/self-service/passwordreset/email/server: localhost
umc/self-service/passwordreset/email/subject: Password reset
umc/self-service/passwordreset/email/text_file: <empty>
umc/self-service/passwordreset/email/token_length: 64
umc/self-service/passwordreset/email/webserver_address: ucs01.intra.mydomain.tld
Which settings can I use to change the sender of system emails?
Thanks