December 8, 201411 yr Now that I finally upgraded from unRAID 4.7 to 5.0.6 I'm getting emails with what I perceive to be an odd "From" source. With 4.7 all of the system emails sent to me by unRAID root came with a FROM address of [email protected]. Now they're coming with FROM showing up as "Console and webGui login account", which when I evaluate in my email does show the [email protected]. Is there a way to change this? I know it's not a big deal, but I liked the previous format and I've been unable to figure out how to change this behavior. Thanks!
December 8, 201411 yr You can try user usermod -c "" to remove the descriptive name of the root account. root@unRAIDb:# grep root /etc/passwd root:x:0:0:Console and webGui login account:/root:/bin/bash root@unRAIDb:# usermod -c "" root root@unRAIDb:# grep root /etc/passwd root:x:0:0::/root:/bin/bash root@unRAIDb:# mail -v root Subject: test mail from ssmtp EOT [->] EHLO unRAIDb [<-] 250 HELP [->] STARTTLS [<-] 220 TLS go ahead [->] EHLO unRAIDb [<-] 250 HELP ..... [->] MAIL FROM:<root@unRAIDb> [<-] 250 OK ..... [->] DATA [<-] 354 Enter message, ending with "." on a line by itself [->] Received: by unRAIDb (sSMTP sendmail emulation); Sun, 07 Dec 2014 23:28:05 -0500 [->] From: root@unRAIDb [->] Date: Sun, 07 Dec 2014 23:28:05 -0500 [->] To: root [->] Subject: test mail from ssmtp ..... [->] QUIT If you do not have mail or mailx installed you can pipe it to sendmail/ssmtp like this. echo "Subject: Test Mail\n\n" | ssmtp -d root
Archived
This topic is now archived and is closed to further replies.