Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

how to change default email address for postfix? [closed]

Tags:

I have a server running python, php, perl, ruby, and I have couple applications which also send mail. I was wondering in case if one of the applications don't specify a from email address, the sender email address is set to [email protected] and the sender name was "http".

I was able change the sender name by going into /etc/passwd and changing the name to what I wanted, but how do I change [email protected] to [email protected]?

like image 703
samwell Avatar asked Mar 02 '12 18:03

samwell


People also ask

Where is postfix email stored?

Once you have access to the disk, Postfix stores email in /var/spool/postfix , in a binary format that you really want the postcat(1) tool to extract in human readable format.


1 Answers

You can use the smtp_generic_maps of postfix to rewrite email headers for outgoing smtp mail:

user:~$ echo "[email protected]  [email protected]" >> /etc/postfix/generic 
user:~$ echo "smtp_generic_maps = hash:/etc/postfix/generic" >> /etc/postfix/main.cf
user:~$ postmap /etc/postfix/generic
user:~$ service postfix restart
like image 97
knittl Avatar answered Dec 11 '22 12:12

knittl