LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 08-13-2009, 01:30 PM   #1
jonaskellens
Member
 
Registered: Jul 2008
Location: Ghent, Belgium
Distribution: Fedora, CentOS
Posts: 690

Rep: Reputation: 34
ssmtp : Cannot open uit.telenet.be:25


Hi there.

I'm trying to email with ssmtp.

This is my ssmtp.conf :
Quote:
[root@asterisk ~]# cat /usr/ssmtp/etc/ssmtp/ssmtp.conf
#
# /etc/ssmtp.conf -- a config file for sSMTP sendmail.
#
DEBUG=yes
# The person who gets all mail for userids < 1000
# Make this empty to disable rewriting.
root=postmaster
# The place where the mail goes. The actual machine name is required
# no MX records are consulted. Commonly mailhosts are named mail.domain.com
# The example will fit if you are in domain.com and you mailhub is so named.
mailhub=uit.telenet.be
# Where will the mail seem to come from?
rewriteDomain=asterisk
# The full hostname
hostname=asterisk.nw.local
UseSTARTTLS=YES
#UseTLS=YES
AuthUser=*****
AuthPass=*****
#AuthMethod=plain
This is the command I issue :
Code:
[root@asterisk ~]# /usr/ssmtp/sbin/ssmtp -v jonas.kellens@telenet.be
This is the maillog :
Code:
Aug 13 20:25:16 asterisk sSMTP[29268]: Set Root="postmaster" 
Aug 13 20:25:16 asterisk sSMTP[29268]: Set MailHub="uit.telenet.be" 
Aug 13 20:25:16 asterisk sSMTP[29268]: Set RemotePort="25" 
Aug 13 20:25:16 asterisk sSMTP[29268]: Set RewriteDomain="asterisk" 
Aug 13 20:25:16 asterisk sSMTP[29268]: Set HostName="asterisk.nw.local" 
Aug 13 20:25:16 asterisk sSMTP[29268]: Set UseSTARTTLS="True" 
Aug 13 20:25:16 asterisk sSMTP[29268]: Set AuthUser="*****" 
Aug 13 20:25:16 asterisk sSMTP[29268]: Set AuthPass="*****" 
Aug 13 20:25:25 asterisk sSMTP[29268]: Creating SSL connection to host
Aug 13 20:25:25 asterisk sSMTP[29268]: 220 brigitte.telenet-ops.be bizsmtp ESMTP server ready 
Aug 13 20:25:25 asterisk sSMTP[29268]: EHLO asterisk.nw.local 
Aug 13 20:25:25 asterisk sSMTP[29268]: 250 OK 
Aug 13 20:25:25 asterisk sSMTP[29268]: STARTTLS 
Aug 13 20:25:25 asterisk sSMTP[29268]: 500 5.5.1 command unrecognized 
Aug 13 20:25:25 asterisk sSMTP[29268]: STARTTLS not working
Aug 13 20:25:25 asterisk sSMTP[29268]: Cannot open uit.telenet.be:25
Aug 13 20:25:25 asterisk sSMTP[29268]: stdin is a TTY - not saving to /root/dead.letter
My firewall on this host is stopped. On the network firewall port 25 is opened to allow smtp-traffic.
 
Old 08-13-2009, 01:57 PM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
well can you telnet to it directly? There is unlikely to be much chance of being able to with such a clear error message, so I'd be looking elsewhere along the network path if indeed you can't.
 
Old 08-13-2009, 02:07 PM   #3
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,529

Rep: Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899
Does the SMTP from telenet supports SSL ?
 
Old 08-13-2009, 02:23 PM   #4
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
from the wording, it doesn't sound like it's getting that far, and stuck at pure TCP level. I may well be wrong though.
 
Old 08-13-2009, 02:28 PM   #5
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,529

Rep: Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899
Quote:
Aug 13 20:25:25 asterisk sSMTP[29268]: STARTTLS
Aug 13 20:25:25 asterisk sSMTP[29268]: 500 5.5.1 command unrecognized
The SMTP server answers
500 5.5.1 command unrecognized

IMHO he is already connected to the server, and busy with negotiating.
 
Old 08-13-2009, 03:16 PM   #6
jonaskellens
Member
 
Registered: Jul 2008
Location: Ghent, Belgium
Distribution: Fedora, CentOS
Posts: 690

Original Poster
Rep: Reputation: 34
Quote:
Originally Posted by acid_kewpie View Post
well can you telnet to it directly? There is unlikely to be much chance of being able to with such a clear error message, so I'd be looking elsewhere along the network path if indeed you can't.
Code:
[root@asterisk ~]# telnet uit.telenet.be 25
Trying 195.130.132.48...
Connected to uit.telenet.be (195.130.132.48).
Escape character is '^]'.
220 gerard.telenet-ops.be bizsmtp ESMTP server ready
Quote:
Does the SMTP from telenet supports SSL ?
Code:
#UseSTARTTLS=YES
#UseTLS=YES
AuthUser=*****
AuthPass=*****
#AuthMethod=plain
Maillog then:
Code:
Aug 13 22:14:54 asterisk sSMTP[29616]: Set Root="postmaster" 
Aug 13 22:14:54 asterisk sSMTP[29616]: Set MailHub="uit.telenet.be" 
Aug 13 22:14:54 asterisk sSMTP[29616]: Set RemotePort="25" 
Aug 13 22:14:54 asterisk sSMTP[29616]: Set RewriteDomain="asterisk" 
Aug 13 22:14:54 asterisk sSMTP[29616]: Set HostName="asterisk.nw.local" 
Aug 13 22:14:54 asterisk sSMTP[29616]: Set AuthUser="*****" 
Aug 13 22:14:54 asterisk sSMTP[29616]: Set AuthPass="*****" 
Aug 13 22:14:59 asterisk sSMTP[29616]: 220 juliette.telenet-ops.be bizsmtp ESMTP server ready 
Aug 13 22:14:59 asterisk sSMTP[29616]: EHLO asterisk.nw.local 
Aug 13 22:14:59 asterisk sSMTP[29616]: 250 OK 
Aug 13 22:14:59 asterisk sSMTP[29616]: AUTH LOGIN 
Aug 13 22:14:59 asterisk sSMTP[29616]: 500 5.5.1 command unrecognized 
Aug 13 22:14:59 asterisk sSMTP[29616]: Server didn't like our AUTH LOGIN (500 5.5.1 command unrecognized)
Aug 13 22:14:59 asterisk sSMTP[29616]: stdin is a TTY - not saving to /root/dead.letter
When executing :
Code:
[root@asterisk ~]# /usr/ssmtp/sbin/ssmtp -v jonas.kellens@telenet.be
[<-] 220 georges.telenet-ops.be bizsmtp ESMTP server ready
[->] EHLO asterisk.nw.local
[<-] 250 OK
[->] AUTH LOGIN
[<-] 500 5.5.1 command unrecognized
ssmtp: Server didn't like our AUTH LOGIN (500 5.5.1 command unrecognized)
 
Old 08-13-2009, 03:31 PM   #7
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,529

Rep: Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899
AFAIK you don't need to provide user name and pass in order to use uit.telenet.be
For ssl try port 993
 
Old 08-14-2009, 03:27 AM   #8
jonaskellens
Member
 
Registered: Jul 2008
Location: Ghent, Belgium
Distribution: Fedora, CentOS
Posts: 690

Original Poster
Rep: Reputation: 34
Quote:
Originally Posted by repo View Post
AFAIK you don't need to provide user name and pass in order to use uit.telenet.be
So I commented out my credentials :

Code:
# /etc/ssmtp.conf -- a config file for sSMTP sendmail.
#
DEBUG=yes
# The person who gets all mail for userids < 1000
# Make this empty to disable rewriting.
root=postmaster
# The place where the mail goes. The actual machine name is required
# no MX records are consulted. Commonly mailhosts are named mail.domain.com
# The example will fit if you are in domain.com and you mailhub is so named.
mailhub=uit.telenet.be
# Where will the mail seem to come from?
rewriteDomain=asterisk.networkx.be
# The full hostname
hostname=asterisk.nw.local
#UseSTARTTLS=YES
#UseTLS=YES
#AuthUser=*****
#AuthPass=*****
#AuthMethod=plain
And maillog :
Code:
Aug 14 10:23:58 asterisk sSMTP[5334]: 220 gerard.telenet-ops.be bizsmtp ESMTP server ready 
Aug 14 10:23:58 asterisk sSMTP[5334]: HELO asterisk.nw.local 
Aug 14 10:23:58 asterisk sSMTP[5334]: 250 gerard.telenet-ops.be hello [78.21.41.171], pleased to meet you 
Aug 14 10:23:58 asterisk sSMTP[5334]: MAIL FROM:<root@asterisk.networkx.be> 
Aug 14 10:23:58 asterisk sSMTP[5334]: 250 2.1.0 <root@asterisk.networkx.be> sender ok 
Aug 14 10:23:58 asterisk sSMTP[5334]: RCPT TO:<jonas.kellens@telenet.be> 
Aug 14 10:23:58 asterisk sSMTP[5334]: 250 2.1.5 <jonas.kellens@telenet.be> recipient ok 
Aug 14 10:23:58 asterisk sSMTP[5334]: DATA 
Aug 14 10:23:58 asterisk sSMTP[5334]: 354 enter mail, end with "." on a line by itself 
Aug 14 10:23:58 asterisk sSMTP[5334]: Received: by asterisk.nw.local (sSMTP sendmail emulation); Fri, 14 Aug 2009 10:23:44 +0200 
Aug 14 10:23:58 asterisk sSMTP[5334]: From: "root" <root@asterisk.networkx.be> 
Aug 14 10:23:58 asterisk sSMTP[5334]: Date: Fri, 14 Aug 2009 10:23:44 +0200 
Aug 14 10:23:58 asterisk sSMTP[5334]:  
Aug 14 10:23:58 asterisk sSMTP[5334]: . 
Aug 14 10:23:58 asterisk sSMTP[5334]: 250 2.0.0 Message accepted for delivery (U8Px1c00M3haRfS0H8Pyqg) 
Aug 14 10:23:58 asterisk sSMTP[5334]: QUIT 
Aug 14 10:23:58 asterisk sSMTP[5334]: 221 2.0.0 gerard.telenet-ops.be bizsmtp closing connection 
Aug 14 10:23:58 asterisk sSMTP[5334]: Sent mail for root@asterisk.networkx.be (221 2.0.0 gerard.telenet-ops.be bizsmtp closing connection) uid=0 username=ro
ot outbytes=289
And all goes well...
 
Old 08-14-2009, 03:36 AM   #9
jonaskellens
Member
 
Registered: Jul 2008
Location: Ghent, Belgium
Distribution: Fedora, CentOS
Posts: 690

Original Poster
Rep: Reputation: 34
Another issue :

When I issue this command :

Code:
[root@asterisk ~]# mail -v -s test jonas.kellens@telenet.be
it stays that way...

Then I press ctrl+D and the output is displayed :
Code:
Null message body; hope that's ok
[<-] 220 brigitte.telenet-ops.be bizsmtp ESMTP server ready
[->] HELO asterisk.nw.local
[<-] 250 brigitte.telenet-ops.be hello [78.21.41.171], pleased to meet you
[->] MAIL FROM:<root@asterisk.networkx.be>
[<-] 250 2.1.0 <root@asterisk.networkx.be> sender ok
[->] RCPT TO:<jonas.kellens@telenet.be>
[<-] 250 2.1.5 <jonas.kellens@telenet.be> recipient ok
[->] DATA
[<-] 354 enter mail, end with "." on a line by itself
[->] Received: by asterisk.nw.local (sSMTP sendmail emulation); Fri, 14 Aug 2009 10:34:48 +0200
[->] From: "root" <root@asterisk.networkx.be>
[->] Date: Fri, 14 Aug 2009 10:34:48 +0200
[->] To: jonas.kellens@telenet.be
[->] Subject: test
[->] 
[->] .
[<-] 250 2.0.0 Message accepted for delivery (U8ao1c0043haRfS0G8ao2m)
[->] QUIT
[<-] 221 2.0.0 brigitte.telenet-ops.be bizsmtp closing connection
I find it not logic that when I give the parameter '-v', I do not see the output till I press ctrl+D ?!
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
ssmtp problem karlochacon Debian 4 12-02-2008 06:21 PM
I Need telenet client for redhat9 siebel Linux - Software 4 12-24-2007 11:59 PM
telenet to a linuxbox not working from a windows pc but from Solaris rboll Linux - Newbie 3 08-12-2005 10:19 AM
telenet problem hansi umayangan Linux - General 1 12-12-2004 07:57 PM
Reg Telenet and Gui nayaksoft Linux - Networking 1 04-14-2001 05:25 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 09:25 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration