I currently use Postfix on an Ubuntu machine that uses Nagios for monitoring.I'd like to change the email address that Postfix uses to send out.Postfix just relays all its email through our Exchange Server.Here is my current config bitsmyhostname = mywindowsdomain.co.uk  mydestination = $myhostname    localhost relayhost = IP of Exchange server mynetworks = 127.0.0.0/8 192.168.1.0/24 inet_protocols = ipv4 inet_interfaces = allNow this works and emails out through my exchange server.However it comes from the username of the user on the machine.eg user1@mywindowsdomain.co.ukI'd like it to come from the machine hostname that postfix is installed on.How do I do this? Everything I try refuses to change the email that it's sent out as username@mywindowsdomain.co.uk rather than hostname@mywindowsdomain.co.uk
How to change the email address Postfix sends out as
postfix