Thu Mar 23 08:02:56 EDT 2017 Slept from nine-thirty to six-thirty. Woke briefly around two-thirty. High of forty-two and mostly sunny today. Work: - Golang glue notes Done. https://utcc.utoronto.ca/~cks/space/blog/sysadmin/IdentifyMachineEmailByRootName > Yesterday I wrote about making sure you can identify what machine sent you a status email, and the comments Sotiris Tsimbonis shared a brilliant yet simple solution to this problem: > > We change the gecos info for this purpose. > > chfn -f "$HOSTNAME root" root > > Take it from me; this is beautiful genius (so much so that both we and another group here immediately adopted it). It's so simple yet still extremely effective, because almost everything that sends email does so using programs like mail that will fill out the From: header using the login's GECOS full name from /etc/passwd. You get email that looks like: > > From: root@ (hebikera root) Thirty minute walk at lunch. Nice out. Home: - Go to bed early Fifteen minute walk after work. http://man.openbsd.org/mg Breakfast: carrots, spinach, yogurt, coffee Lunch: left-over tacos Dinner: turkey dogs, ice cream