[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[msmtp-users] `No route to host' can mean `incorrect port number'



I was getting the following error with msmtp. The problem goes away if
I set the port to be something other than 25 (e.g. the correct port
number: 587). The moral of the story:
  "`No route to host' may actually mean `incorrect port number'"

$ ./msmtp a
msmtp: cannot connect to smtp.gmail.com, port 25: No route to host
msmtp: could not send mail (account default from /home/elizabeth/.msmtprc)
$ ping smtp.gmail.com
PING gmail-smtp.l.google.com (66.249.93.111) 56(84) bytes of data.
64 bytes from 66.249.93.111: icmp_seq=1 ttl=238 time=375 ms
64 bytes from 66.249.93.111: icmp_seq=2 ttl=238 time=374 ms


BTW, the msmtprc for gmail at
 http://typo.onxen.info/articles/2006/06/27/activemailer-sending-via-gmail
doesn't work, use the one at
 http://wiki.archlinux.org/index.php/Mutt

--
John C. McCabe-Dansted
PhD Student
University of Western Australia