bash - Getting the "From" address right when using postfix -


on machines in lab, following command:

mail -s "subject" me@example.com < body 

will generate email from address of me@machine_name.example.com. however, there 1 problematic machine generates from address of me@machine_name.localhost. there nothing special problematic machine, on same network , running same os (mac lion) others. how have "from" address others?

i have checked /etc/postfix/main.cf , /etc/postfix/master.cf files of offending machine , same others difference not lie there.

also, information on stackoverflow question not work/apply in case. accepted answer modifies "reply-to" address, , second answer not work mac lion.

i appreciate information may provide.

solved

sudo scutil --set hostname fullyqualifieddomainname 

solution provided andrzej a. filip


Comments

Popular posts from this blog

Why does Ruby on Rails generate add a blank line to the end of a file? -

keyboard - Smiles and long press feature in Android -

node.js - Bad Request - node js ajax post -