where is the mail/sendmail configs

Status
Not open for further replies.

pcloadetter

Explorer
Joined
Aug 15, 2015
Messages
65
I've looked under /etc/mail with no luck. I'm trying to use sendmail from command line. Would I be using the existing configurations in place for the system emails? Where can I find those?
 

jgreco

Resident Grinch
Joined
May 29, 2011
Messages
18,680
Typical UNIX mail is a complete subsystem, involving processing, queueing, and routing, something FreeNAS would not want, need, or use. Last I looked, FreeNAS was using one of the common mail-on-a-webserver micromailers to establish outbound SMTP to a real outgoing mailserver.
 

DrKK

FreeNAS Generalissimo
Joined
Oct 15, 2013
Messages
3,630
Yeah, I actually went down the OP's path in the past.

The mail system on the FreeNAS appliance is completely handled by python scripts that are part of the Django GUI, I believe. There is no "sendmail" or any of the typical daemons/service for that. I found this confusing myself when I began poking around.
 

pcloadetter

Explorer
Joined
Aug 15, 2015
Messages
65
Thank you for the responses. So how can I send emails from scripts? I'm not too familiar with Django. I can figure out Python if I have a place to look as a sample.
 

danb35

Hall of Famer
Joined
Aug 16, 2011
Messages
15,504
There is no "sendmail" or any of the typical daemons/service for that.
Well, /usr/bin/sendmail does exist--it's just a symlink to mailwrapper, which I didn't follow any further. @pcloadetter, I have scripts that send mail using things like "
sendmail -t < /var/cover". The server configuration is however it's set through the web GUI.
 

jgreco

Resident Grinch
Joined
May 29, 2011
Messages
18,680
Well, /usr/bin/sendmail does exist--it's just a symlink to mailwrapper, which I didn't follow any further. @pcloadetter, I have scripts that send mail using things like "
sendmail -t < /var/cover". The server configuration is however it's set through the web GUI.

DO NOT DO THIS. If sendmail isn't properly set up, bad things can (and ultimately will) happen.
 
Status
Not open for further replies.
Top