My system mail is sent with the sender address login@server1 . server1 is the host name ( /etc/hostname ).
I did this in hardcore mode in /etc/exim4/exim4.conf.template in the begin rewrite section with the rule login@server1 login@domain.tld . It works.
How to write a rule:
instead of
server1to specify the file/etc/hostnameinstead of
domain.tldto specify a search from the/etc/email-addresses
The server1:domain.tld line will be added to /etc/email-addresses .
/etc/email-addresses, then what does/etc/hostnamedo with it? - aleksandr barakin