Email quit working?

Status
Not open for further replies.

Crotalus

Dabbler
Joined
May 5, 2015
Messages
22
My email quit working. No changes have been done to FreeNAS or to the router(PfSense).

This is the enviroment:
Code:
Copyright (c) 1992-2016 The FreeBSD Project.
Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
        The Regents of the University of California. All rights reserved.
FreeBSD is a registered trademark of The FreeBSD Foundation.
FreeBSD 10.3-RELEASE-p3 #0 215c0d0(9.10-STABLE): Mon May 23 21:40:06 PDT 2016
    root@build.ixsystems.com:/tank/home/nightlies/build-freenas9/_BE/objs/tank/home/nightlies/build-freenas9/_BE/trueos/sys/FreeNAS.amd64 amd64
FreeBSD clang version 3.4.1 (tags/RELEASE_34/dot1-final 208032) 20140512
CPU: Intel(R) Core(TM) i3-4370 CPU @ 3.80GHz (3791.61-MHz K8-class CPU)
  Origin="GenuineIntel"  Id=0x306c3  Family=0x6  Model=0x3c  Stepping=3
  Features=0xbfebfbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CLFLUSH,DTS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE>
  Features2=0x7fdafbbf<SSE3,PCLMULQDQ,DTES64,MON,DS_CPL,VMX,EST,TM2,SSSE3,SDBG,FMA,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,MOVBE,POPCNT,TSCDLT,AESNI,XSAVE,OSXSAVE,AVX,F16C,RDRAND>
  AMD Features=0x2c100800<SYSCALL,NX,Page1GB,RDTSCP,LM>
  AMD Features2=0x21<LAHF,ABM>
  Structured Extended Features=0x27ab<FSGSBASE,TSCADJ,BMI1,AVX2,SMEP,BMI2,ERMS,INVPCID,NFPUSG>
  XSAVE Features=0x1<XSAVEOPT>
  VT-x: PAT,HLT,MTF,PAUSE,EPT,UG,VPID
  TSC: P-state invariant, performance statistics
real memory  = 17985175552 (17152 MB)
avail memory = 16520798208 (15755 MB)

Code:
This is with port 25.
Jun  1 09:48:53 freenas manage.py: [common.system:286] Failed to send email: [Errno 65] No route to host
Traceback (most recent call last):
  File "/usr/local/www/freenasUI/../freenasUI/common/system.py", line 268, in send_mail
  server = _get_smtp_server(timeout, local_hostname=local_hostname)
  File "/usr/local/www/freenasUI/../freenasUI/common/system.py", line 201, in _get_smtp_server
  local_hostname=local_hostname)
  File "/usr/local/lib/python2.7/smtplib.py", line 256, in __init__
  (code, msg) = self.connect(host, port)
  File "/usr/local/lib/python2.7/smtplib.py", line 316, in connect
  self.sock = self._get_socket(host, port, self.timeout)
  File "/usr/local/lib/python2.7/smtplib.py", line 291, in _get_socket
  return socket.create_connection((host, port), timeout)
  File "/usr/local/lib/python2.7/socket.py", line 575, in create_connection
  raise err
error: [Errno 65] No route to host


If I change it to port465 I get this.
Code:
Jun  1 09:49:57 freenas manage.py: [common.system:286] Failed to send email: Connection unexpectedly closed: timed out
Traceback (most recent call last):
  File "/usr/local/www/freenasUI/../freenasUI/common/system.py", line 268, in send_mail
  server = _get_smtp_server(timeout, local_hostname=local_hostname)
  File "/usr/local/www/freenasUI/../freenasUI/common/system.py", line 201, in _get_smtp_server
  local_hostname=local_hostname)
  File "/usr/local/lib/python2.7/smtplib.py", line 256, in __init__
  (code, msg) = self.connect(host, port)
  File "/usr/local/lib/python2.7/smtplib.py", line 317, in connect
  (code, msg) = self.getreply()
  File "/usr/local/lib/python2.7/smtplib.py", line 365, in getreply
  + str(e))
SMTPServerDisconnected: Connection unexpectedly closed: timed out


The last email I received was on 05/26/2016 at 8:55 AM. Nothing has come through since that time.
This the name servers being used;
Code:
75.75.75.74
208.67.222.222
8.8.8.8.


This is the release;
Code:
FreeNAS-9.10-STABLE-201605240427 (64fcd8e)
Intel(R) Core(TM) i3-4370 CPU @ 3.80GHz
16291MB


I have tried using TLS, SSL, and Plain without any success. The user root has the correct email address and the password is set correctly. I need SMTP authentication set as Comcast requires it.

Does anybody have any ideas?

Thanks!
 

Sakuru

Guru
Joined
Nov 20, 2015
Messages
527
What happens if you telnet to the mail server?
Code:
telnet name.of.server 25
 

Crotalus

Dabbler
Joined
May 5, 2015
Messages
22
Here it is! I tried it from two different systems to the outgoing mail server.

Code:
[root@freenas] /# telnet smtp.comcast.net 25
Trying 96.114.157.81...
telnet: connect to address 96.114.157.81: Operation timed out
Trying 2001:558:fe21:2a::5...
telnet: connect to address 2001:558:fe21:2a::5: No route to host
telnet: Unable to connect to remote host
[root@freenas] /#


root@Prometheus:/ # telnet smtp.comcast.net 25
Trying 96.114.157.81...
telnet: connect to address 96.114.157.81: Operation timed out
Trying 2001:558:fe16:1b::16...
telnet: connect to address 2001:558:fe16:1b::16: No route to host
telnet: Unable to connect to remote host
root@Prometheus:/ #




Code:
[root@freenas] /# telnet smtp.comcast.net 465
Trying 96.114.157.81...
Connected to smtp.g.comcast.net.
Escape character is '^]'.
Connection closed by foreign host.
[root@freenas] /#


root@Prometheus:/ # telnet smtp.comcast.net 465
Trying 96.114.157.81...
Connected to smtp.g.comcast.net.
Escape character is '^]'.
Connection closed by foreign host.
root@Prometheus:/ #


And if I try;
Code:
[root@freenas] /# telnet smtp.g.comcast.net 25
Trying 68.87.20.6...
telnet: connect to address 68.87.20.6: Operation timed out
Trying 2001:558:fe16:1b::16...
telnet: connect to address 2001:558:fe16:1b::16: No route to host
telnet: Unable to connect to remote host
[root@freenas] /#

[root@freenas] /# telnet smtp.g.comcast.net 465
Trying 68.87.20.6...
Connected to smtp.g.comcast.net.
Escape character is '^]'.
Connection closed by foreign host.
[root@freenas] /# 

root@Prometheus:/ # telnet smtp.g.comcast.net 25
Trying 96.114.157.81...
telnet: connect to address 96.114.157.81: Operation timed out
Trying 2001:558:fe16:1b::16...
telnet: connect to address 2001:558:fe16:1b::16: No route to host
telnet: Unable to connect to remote host
root@Prometheus:/ #

root@Prometheus:/ # telnet smtp.g.comcast.net 465
Trying 96.114.157.81...
Connected to smtp.g.comcast.net.
Escape character is '^]'.
Connection closed by foreign host.
root@Prometheus:/ #


I also tried to use smtp.g.net in the FreeNAS set up with the same results as before.
My Thunderbird setup is using port 465, and it works. Requires a password to access the Comcast server.
 

Sakuru

Guru
Joined
Nov 20, 2015
Messages
527
Interesting. It looks like you are no longer able to access port 25. It works for me and I'm not on Comcast :) Call them and ask them if they blocked that on purpose.
It looks like the "No route to host" message is from it trying to use IPv6.
You could also trying using 465 and filling in your credentials.
 
D

dlavigne

Guest
To add to this comment, FreeBSD 10 defaults to preferring IPv6 if it is available (as in ignoring IPv4). I discovered this on my FreeBSD-based systems as my provider automatically assigns an IPv6 address but no other IPv6 info. To tell a FreeNAS system not to do this, create a Tunable as follows and reboot the system:

Variable: ipv6_activate_all_interfaces

Value: NO

Type: rc.conf

We've also discovered that FreeBSD 11 doesn't honor that variable (something else overwrites it) and are currently troubleshooting that.
 

Crotalus

Dabbler
Joined
May 5, 2015
Messages
22
Comcast does not use port 25. They require port 465 for security reasons. They did this several years ago and I remember now that My emails quit and I was told to change the port. I have to use port 465 and set to SSL/TLS and use a password to access my emails using Thunderbird on my Windows 7 system.

When I set the FreeNAS to SSL I get

Your test email could not be sent: (550, '5.1.0 size=328 invalid address', u'freenas.local')

When I use TLS in FreeNAS I get

Your test email could not be sent: Connection unexpectedly closed: timed out

It has to be something in FreeNAS. I will give the above post a try and see what happens.













































  • Your test email could not be sent: (550, '5.1.0 size=328 invalid address', u'freenas.local')
 

Crotalus

Dabbler
Joined
May 5, 2015
Messages
22
I add the tuneable to the system, rebooted and tried the email. Result;
Code:
Jun  2 12:23:14 freenas manage.py: [common.system:286] Failed to send email: Connection unexpectedly closed: timed out
Traceback (most recent call last):
  File "/usr/local/www/freenasUI/../freenasUI/common/system.py", line 268, in send_mail
    server = _get_smtp_server(timeout, local_hostname=local_hostname)
  File "/usr/local/www/freenasUI/../freenasUI/common/system.py", line 201, in _get_smtp_server
    local_hostname=local_hostname)
  File "/usr/local/lib/python2.7/smtplib.py", line 256, in __init__
    (code, msg) = self.connect(host, port)
  File "/usr/local/lib/python2.7/smtplib.py", line 317, in connect
    (code, msg) = self.getreply()
  File "/usr/local/lib/python2.7/smtplib.py", line 365, in getreply
    + str(e))
SMTPServerDisconnected: Connection unexpectedly closed: timed out


Error message;

Your test email could not be sent: Connection unexpectedly closed: timed out

Receiving the emails from FreeNAS is not a show stopper to me, but it is a nice feature to have.

This was the last email That I have received on 5/26/2016 4:43 AM. I did apply the update then.

Code:
A new update is available for the FreeNAS-9.10-STABLE train.

Version: FreeNAS-9.10-STABLE-201605240427
Changelog:
#15462 Feature Expected Add alert to let the user know if AD was unable to bind
#15438 Bug Nice to have Need to properly format AD/LDAP connection errors
#15429 Bug Important Bring in FreeBSD SAs 16:18-19
#15400 Bug Nice to have When deleting a User Account that is the only member of a Group; the Group gets deleted
#15373 Bug Nice to have Plural-Forms issue in Pootle
#15372 Bug Important FreeNAS 9.10 Crash during Boot (Dell T20)
#15371 Bug Nice to have Log error in case deleting a jail fails while deleting associated plugin
#15347 Bug Nice to have SSH with certificates
#15331 Bug Nice to have DynDNS Password not saved/loaded correctly
#15294 Bug Critical Hide LDAP password from GUI since it can be grabbed in plain text
#15270 Bug Expected Prevent train downgrades from UI
#15267 Feature Nice to have Upgrade Smartmontools to 6.5 for added NVMe support
#15251 Bug Important Can't Import NTFS Disk
#15248 Bug Nice to have freenas-update traceback
#15216 Bug Nice to have Some Replication Settings Won't Update With API
#15183 Bug Expected Bring in latest FreeBSD ENs and SAs
#15136 Feature Nice to have Create API Storage Resource to Import ZFS Volumes
#15129 Bug Expected LDAP with TLS is not binding on bootup
#15119 Bug Nice to have Unable to create authentificated samba share with wizzard
#15097 Feature Nice to have Factory reset API call request
#15060 Bug Nice to have Remote Graphite Server Hostname entry isn't updating collectd graphite plugin
#14957 Bug Expected NFS bind addresses don't work for lockd
#14947 Bug Important SSH bind to an interface should include vlan parents
#14937 Bug Nice to have WakeOnLan fails after Upgrade from 9.3 to 9.10
#14851 Bug Nice to have locate is missing from FreeNAS 9.10
#14745 Bug Expected Special characters not handled in webdav password
#14477 Bug Nice to have Rsync command fails on importing certain media with permission errors
#12047 Bug Nice to have Updater needs more verbose output for error conditions
#11535 Bug Nice to have Cant import FAT32 Drive
#11212 Feature Nice to have We've grown up enough that we can set the vendor string of iSCSI disks to FreeNAS/TrueNAS
#11028 Bug Nice to have Import disk utility displaying django object instead of actual error.
#10284 Bug Critical From Mac OS, files appear corrupt over AFP share, but fine on CIFS share
#8967 Bug Nice to have Mail needs to be able to deal with temporary sending errors by enqueuing mail
#8163 Feature Nice to have Add auxiliary parameters for upsd.conf to services->UPS
#7307 Feature Nice to have Better message with Import Disk results in case of read error

 
Status
Not open for further replies.
Top