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 bits
myhostname = 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 = all
Now this works and emails out through my exchange server.
However it comes from the username of the user on the machine.
I'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
firstname.lastname@example.org rather than