This is an update of the Russel's state to use it basically as mail forwarder in auto scaled environments. The tipycal problem is that if you get notification emails from "webserver@mydomain.com" in an environment where you really have 5 or 6 webservers for the same application, it is difficult to track back the issue to the right server. I have solved it renaming the server and the headers: All the emails sent from the server for .domain.com will renamed to @.domain.com. Also adds a header replacement to avoid problems with Office365 mail servers, which rejects to send emails with different names on the hostname and the email headers Original job: http://russell.ballestrini.net/postfix-salt-state-formula/ note: replace "." in file names with "/" to get the right folder structure.