All,
I am trying to determine if SSL is actually available for our installation
of SendMail. This is my first exposure to SendMail and really my first in
depth exposure to running anything in Linux. I checked the M4 Configuration
and I see:
define(`confAUTH_MECHANISMS', `LOGIN PLAIN')dnl
define(`CERT_DIR', `/etc/mail/certs`'certs')dnl
define(`confCACERT_PATH', `CERT_DIR')dnl
define(`confCACERT', `CERT_DIR/cacert.pem')dnl
define(`confSERVER_CERT', `CERT_DIR/cert.pem')dnl
define(`confSERVER_KEY', `CERT_DIR/key.pem')dnl
define(`confCLIENT_CERT', `CERT_DIR/cert.pem')dnl
define(`confCLIENT_KEY', `CERT_DIR/key.pem')dnl
I seems that the cert info is there, although it does say "Login Plain",
maybe that is to be expected. I tried just going to the https email path
with no luck as well as trying to go to port 10000 which seems like a
default used from what I have seen on the net. Is there somewhere inside
the config I can look to see if it really is active and what port it is
using?
Thanks,
Greg
--- news://freenews.netfront.net/ - complaints: news@netfront.net ---
|
|
0
|
|
|
|
Reply
|
Greg
|
1/26/2010 1:48:19 PM |
|
On 2010-01-26, Greg Hart <gh@webofharts.com> wrote:
> All,
>
> ...
>
> I seems that the cert info is there, although it does say "Login Plain",
> maybe that is to be expected. I tried just going to the https email path
> with no luck as well as trying to go to port 10000 which seems like a
> default used from what I have seen on the net. Is there somewhere inside
> the config I can look to see if it really is active and what port it is
> using?
>
> Thanks,
> Greg
>
> ...
Hi,
default smtps's port isn't the port number 10000. If I don't know
the default service's port I give a look at /etc/services file.
#v+
% grep smtps /etc/services
urd 465/tcp smtps ssmtp # URL Rendesvous Directory for SSM / smtp protocol over TLS/SSL
igmpv3lite 465/udp smtps ssmtp # IGMP over UDP for SSM
#v-
If sendmail is running in daemon mode (*sendmail -bd*) you can always
check host's open port by using netstat -lp.
Sendmail lets you change default ports with these config
define(`SMTP_MAILER_ARGS', `TCP $h yyy')
define(`ESMTP_MAILER_ARGS', `TCP $h xxx')
where yyy is the port for smtp (default 25)
where xxx is the port for smtps (default 465)
I suggest you to give a look at sendmail's documentation.
#v+
from http://www.sendmail.org/documentation/configurationReadme
SMTP_MAILER_ARGS [TCP $h] The arguments passed to the smtp mailer.
About the only reason you would want to change this
would be to change the default port.
ESMTP_MAILER_ARGS [TCP $h] The arguments passed to the esmtp mailer
#v-
I apologize for my bad english and for everything wrong I told.
-JusSx-
--
Linux is only free if your time has no value
|
|
0
|
|
|
|
Reply
|
_JusSx_
|
1/26/2010 10:33:16 PM
|
|
Greg Hart wrote:
> define(`confAUTH_MECHANISMS', `LOGIN PLAIN')dnl
> define(`CERT_DIR', `/etc/mail/certs`'certs')dnl
> define(`confCACERT_PATH', `CERT_DIR')dnl
> define(`confCACERT', `CERT_DIR/cacert.pem')dnl
> define(`confSERVER_CERT', `CERT_DIR/cert.pem')dnl
> define(`confSERVER_KEY', `CERT_DIR/key.pem')dnl
> define(`confCLIENT_CERT', `CERT_DIR/cert.pem')dnl
> define(`confCLIENT_KEY', `CERT_DIR/key.pem')dnl
The overall sendmail doc about SSL/TLS is here:
http://www.sendmail.org/~ca/email/starttls.html
See the "Initial Test" section:
" Start the sendmail daemon, connect to it and see whether it comes up
with
250-STARTTLS
in the EHLO response:
% telnet localhost 25
Trying 127.0.0.1...
Connected to localhost
Escape character is '^]'.
220 local.sendmail.org ESMTP Sendmail Sendmail 8.12.0/8.12.0; Sun, 30
Sep 2001 10:47:28 -0700 (PDT)
ehlo localhost
250-local.sendmail.org Hello localhost [127.0.0.1], pleased to meet
you
250-ENHANCEDSTATUSCODES
250-DSN
250-STARTTLS
250 HELP
quit"
Note, for STARTTLS you should use the default ports, 25 (smtp) or 587
(submission).
For SMTP-over-SSL there is an obsoleted port 465 (symbolic: ssmtp or
smtps).
You probably have:
DAEMON_OPTIONS(`Family=inet, Name=MTA-v4, Port=smtp')dnl
DAEMON_OPTIONS(`Family=inet, Name=MTA-v4ssl, Port=ssmtp, M=s')dnl
DAEMON_OPTIONS(`Family=inet, Name=MSP-v4, Port=submission, M=Ea')dnl
they define the ports and, via the M= flags, the options that sendmail
accepts. The flags are documented in the op.me guide.
To test if SSL is working:
If you have ssmtp:
openssl s_client -connect localhost:465 -showcerts -msg -state
EHLO localhost
QUIT
If not:
gnutls-cli -p 25 --starttls localhost
EHLO localhost
STARTTLS
^D
QUIT
-ska
|
|
0
|
|
|
|
Reply
|
ska
|
1/27/2010 8:53:51 AM
|
|
|
2 Replies
212 Views
(page loaded in 0.072 seconds)
Similiar Articles: Example of Javamail with SMTP and POP3 on SSL - comp.lang.java ...I need to send and receive E-Mail with POP3 and SMTP running on SSL. I need to use authorization and alternate port numbers. It should be simple, but I don't seem to ... TLS negotiation - comp.mail.miscI amtrying to send a mail through gmail using telnet to smtp.gmail.com. I follow RFC ... 25 -starttls smtp > > But I get: > CONNECTED(00000003) > 3592:error:140770FC:SSL ... Sendmail not sending mails immediately - comp.unix.solaris ...Sendmail SMTP Host Name - comp.unix.solaris But sendmail does not send mail out to my ISP for some reason, I keep ... ... Server Fault I haven't made any changes to ... unexpected sendmail error?? - comp.soft-sys.matlabjavax.net.ssl.SSLException: Unrecognized SSL message - comp.lang ... Send Mail SSL - comp.mail.sendmail javax.net.ssl ... main, SEND TLSv1 ALERT: fatal, description ... can no longer send mail through my netbsd firewall - comp.unix.bsd ...... Secure(SSL): No, Error Number: 0x800CCC0F > > > >Note that if connect my mail box straight to the internet, i.e., > >bypass my netbsd box, I can send ... longer send mail I ... TWS and Unix FTP - comp.sys.hp.hpuxsendmail via smtp auth - comp.sys.hp.hpux Send Mail SSL - comp.mail.sendmail TWS and Unix FTP - comp.sys.hp.hpux sendmail via smtp auth - comp.sys.hp.hpux Send Mail SSL ... Block tcp/25 Services (telnet host 25) - comp.unix.solaris ...Send Mail SSL - comp.mail.sendmail #v+ % grep smtps /etc/services urd 465/tcp smtps ... in the EHLO response: % telnet localhost 25 Trying 127 ... Problem with SENDMAIL using gmail at work. - comp.soft-sys.matlab ...'javax.net.ssl.SSLSocketFactory'); props.setProperty('mail.smtp.socketFactory ... problem sending mail: Sending the email to the following server ... Problems sending mail ... Evolution and Hotmail - comp.mail.miscUsing Evolution 2.28.3 on Ubuntu 10.04.1, I'm able to connect to the POP server and download messages at pop3.live.com:995 using SSL, but am unable to send messages ... Still problem with Sendmail! - comp.unix.solaris... using SMART_HOST with multiple auth info - comp.mail.sendmail ..... server on port 465 (with SSL) and port 587 (with TLS), but are still having trouble sending mail ... How do I send an email over SSL? - System.Net.Mail, OH MY!Sending an email over Ssl is really simply with System.Net.Mail. In fact, all you need to do is set the .EnableSsl property on the SmtpClient property to true. Send mail message with SSL + AuthenticationHello, I'm testing a small app that needs to send emails using an SMTP server which requires SSL + Username and Password Authentication on port 465. I've ... 7/24/2012 12:03:14 PM
|