sendmail inside jails does not work

Status
Not open for further replies.

DeaDSouL

Dabbler
Joined
Dec 21, 2015
Messages
34
Hi,

I have configured System->Email. And it is working just fine inside FreeNAS, but it doesn't work inside jails.
How can I use the same email configuration in FreeNAS, to be able to send emails from jails?


Code:
root@transmission_1:/ # cat /var/cover
To: MyEmail@hotmail.com
Subject: TESTING FROM JAIL


This is just a test.


Code:
root@transmission_1:/ # sendmail -vt < /var/cover
MyEmail@hotmail.com... Connecting to [127.0.0.1] via relay...
MyEmail@hotmail.com... Deferred: Connection refused by [127.0.0.1]


Code:
root@transmission_1:/ # service sendmail onestart
Starting sendmail.
Starting sendmail_msp_queue.


Code:
root@transmission_1:/ # sendmail -vt < /var/cover
MyEmail@hotmail.com... Connecting to [127.0.0.1] via relay...
220 localhost.localdomain ESMTP Sendmail 8.15.2/8.15.2; Mon, 29 Jan 2018 17:34:55 +0300 (+03)
>>> EHLO localhost.localdomain
250-localhost.localdomain Hello localhost [127.0.0.1], pleased to meet you
250-ENHANCEDSTATUSCODES
250-PIPELINING
250-8BITMIME
250-SIZE
250-DSN
250-ETRN
250-STARTTLS
250-DELIVERBY
250 HELP
>>> STARTTLS
220 2.0.0 Ready to start TLS
>>> EHLO localhost.localdomain
250-localhost.localdomain Hello localhost [127.0.0.1], pleased to meet you
250-ENHANCEDSTATUSCODES
250-PIPELINING
250-8BITMIME
250-SIZE
250-DSN
250-ETRN
250-DELIVERBY
250 HELP
>>> MAIL From:<root@localhost.localdomain> SIZE=142
250 2.1.0 <root@localhost.localdomain>... Sender ok
>>> RCPT To:<MyEmail@hotmail.com>
>>> DATA
250 2.1.5 <MyEmail@hotmail.com>... Recipient ok
354 Enter mail, end with "." on a line by itself
>>> .
250 2.0.0 w0TEYtdc089889 Message accepted for delivery
MyEmail@hotmail.com... Sent (w0TEYtdc089889 Message accepted for delivery)
Closing connection to [127.0.0.1]
>>> QUIT
221 2.0.0 localhost.localdomain closing connection


Code:
root@transmission_1:/ # grep -i 'sendmail' /etc/rc.conf
sendmail_enable="NO"
sendmail_submit_enable="NO"
sendmail_outbound_enable="NO"
sendmail_msp_queue_enable="NO"


Thanks
 

Nick2253

Wizard
Joined
Apr 21, 2014
Messages
1,633
I'm confused by exactly what is going on for you. I think I understand the question, but the logs you've posted don't make sense. The second sendmail -vt < /var/cover seems to show everything working. And all the commands are run from the jail.
 
Status
Not open for further replies.
Top