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
Post a Comment