Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

I know an SMTP server's URL. I want to know about that SMTP server's capabilities: TLS, password encryption, etc. Evolution Mail knows how to report these. How can I get them from the command line?

UPD. EHLO output

EHLO yandex.ru
250111.localdomain.ru Hello ac60.localdomain.ru [172.16.2.60] (may be forged), pleased to meet you
250-ENHANCEDSTATUSCODES
250-PIPELINING
250-8BITMIME
250-SIZE
250-DSN
250-ETRN
250-STARTTLS
250-DELIVERBY
250 HELP
share|improve this question
    
URL? smtp://servername? –  Nils Dec 17 '12 at 12:50
    
Why close it and downvote? –  warl0ck Dec 19 '12 at 1:32
    
Yes URL like this. But it is in my work intranet and don't accessible by foreign hosts... –  petRUShka Dec 19 '12 at 8:54
add comment

2 Answers

up vote 5 down vote accepted

RFC 5321 defines this in section 3.2:

So basically you can send EHLO which should be answered by the mailserver with a list of extended capabilities, including valid encryption algorithms.

Should the server not understand EHLO, it is propably an older system, that just accepts HELO. I did not read any further than this, whether the old systems can be asked about capabilities as well - but the provided links leads to the older SMTP-RFCs as well.

share|improve this answer
    
I updated main question with EHLO output. Did I use EHLO in proper way? –  petRUShka Dec 19 '12 at 8:56
    
@petRUShka Yes, this is the first step, that shows that the mailserver is capable of STARTing Transaction Layer Security. For details see the WiKi about STARTTLS. Basically you have to issue now STARTTLS eventually followed by another EHLO. The answer to STARTTLS should contain that cipher-list. –  Nils Dec 19 '12 at 20:23
add comment

You've given the answer in your question. When you use the EHLO command, the server will respond with all the SMTP extensions that it supports. So the server you are connecting to supports these extensions:

250-ENHANCEDSTATUSCODES
250-PIPELINING
250-8BITMIME
250-SIZE
250-DSN
250-ETRN
250-STARTTLS
250-DELIVERBY
250 HELP

The only extension related to encryption is STARTTLS.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.