Linux - ServerThis forum is for the discussion of Linux Software used in a server related context.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
[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
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.
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.
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
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)
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
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.