Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: exim: users

Re: EXIM4 - Secure SMTP - Ubuntu 12.04 and CentOS 6.x AMD64

 

 

exim users RSS feed   Index | Next | Previous | View Threaded


mike.tubby at thorcom

Aug 11, 2013, 3:14 PM

Post #1 of 3 (16 views)
Permalink
Re: EXIM4 - Secure SMTP - Ubuntu 12.04 and CentOS 6.x AMD64

On 08/08/2013 19:52, DLSauers wrote:
> Looking to secure things up... and I want to ensure that all inbound
> email is secured.
>
> So is it possible to setup EXIM4 on Ubuntu 12.04 and CentOS 6.x to use
> SECURE SMTP *ONLY*!
>
> Thus all connections to the SMTP server would be encrypted... YES this
> probably means a 90%+ ELIMINATION in servers that can email the domains
> setup on such a server, oh well, so sad. You don't need to email me then!
>
> I want security, SECURITY ! SECURITY! Encrypted "meta data" connection
> thus snooping is slowed down unless certain alphabets want to brute force
> it and put those Crays in UT to work! POP3 ad IMAP with SSL/TLS is
> already implemented... Secure drives is being implemented, and physical
> control changes are being made too. Yes the servers are moving off US
> soil, and weak jurisdictions.
>
> If there is a way that a non secure connection can be told to "Sorry
> stupid server, you need to try it securely!" and/or send back a
> message... Sorry! This server requires a SSL/TLS connection to send
> email! Please configure your server thusly, and try again! Or don't
> bother!"
>
> Simply quit listening on Port 25? ? And only on 465 ????

SSMTP is doable, but deprecated in favour of STARTTLS on port 25.

> Lots of HOWTO: on enabling SSL/TLS, but it appears from these that NON
> SSL/TLS is still possible and that the initial connection may be
> UNSECURE! ! ! BZZT!!!!

You want something like this:

#
# welcome banner
#
smtp_banner = "$primary_hostname ESMTP Exim $version_number
#$compile_number $tod_full"

# enable SMTP and MSA
#daemon_smtp_ports = 25 : 587 : 465
daemon_smtp_ports = 25 : 587

#enable TLS
log_selector = +subject +tls_cipher+tls_peerdn
tls_advertise_hosts = *
# adjust below to suit your requirements
#tls_require_ciphers = TLSv1+HIGH : !SSLv2 : RC4+MEDIUM : !aNULL :
!eNULL : !3DES : @STRENGTH
tls_require_ciphers =
AES256+SHA256:AES+SHA:!SSLv2:RC4+MEDIUM:!eNULL:!aNULL:@STRENGTH
tls_certificate = /etc/exim4/exim.crt
tls_privatekey = /etc/exim4/exim.key
#tls_on_connect_ports = 465
MAIN_TLS_ENABLE = true

# advertise auth to TLS sessions only
auth_advertise_hosts = ${if eq {$tls_cipher}{}{}{*}}






> Any one ? ?? HINTS? ?? HOWTO's? ? ?

Suggest you read:


http://www.exim.org/exim-html-current/doc/html/spec_html/ch-encrypted_smtp_connections_using_tlsssl.html


Then you can use the $tls_cipher variable which is set to the name of
the cipher in use, or null on clear connections, as part of the HELO ACL
to simply return a message to the connected host that says something to
the effect of:

554 You must say STARTTLS to use an encrypted session

in return to a HELO/EHLO on a clear session...

> EXIM 4 only, please... don't use other servers.
>
> Thanks in advance!
>
>

Mike


--
## List details at https://lists.exim.org/mailman/listinfo/exim-users
## Exim details at http://www.exim.org/
## Please use the Wiki with this list - http://wiki.exim.org/


exim-users at spodhuis

Aug 11, 2013, 9:00 PM

Post #2 of 3 (12 views)
Permalink
Re: EXIM4 - Secure SMTP - Ubuntu 12.04 and CentOS 6.x AMD64 [In reply to]

On 2013-08-11 at 23:14 +0100, Michael J. Tubby B.Sc G8TIC wrote:
> http://www.exim.org/exim-html-current/doc/html/spec_html/ch-encrypted_smtp_connections_using_tlsssl.html
>
>
> Then you can use the $tls_cipher variable which is set to the name of
> the cipher in use, or null on clear connections, as part of the HELO ACL
> to simply return a message to the connected host that says something to
> the effect of:
>
> 554 You must say STARTTLS to use an encrypted session
>
> in return to a HELO/EHLO on a clear session...

Almost, but not quite.

Remember, SMTP/TLS starts with a cleartext server banner, the client
sending EHLO and then looking for STARTTLS in the extended response,
before initiating TLS.

Instead, you want an ACL on MAIL or RCPT (or DATA, etc) which prohibits
the message unless $tls_cipher is defined.

But otherwise, yes.

-Phil

--
## List details at https://lists.exim.org/mailman/listinfo/exim-users
## Exim details at http://www.exim.org/
## Please use the Wiki with this list - http://wiki.exim.org/


jasen at xnet

Aug 12, 2013, 12:06 AM

Post #3 of 3 (12 views)
Permalink
Re: EXIM4 - Secure SMTP - Ubuntu 12.04 and CentOS 6.x AMD64 [In reply to]

On 2013-08-08, DLSauers <dlsauers-KCdx8pmSnIVBDgjK7y7TUQ [at] public> wrote:
> Looking to secure things up... and I want to ensure that all inbound
> email is secured.
>
> So is it possible to setup EXIM4 on Ubuntu 12.04 and CentOS 6.x to use
> SECURE SMTP *ONLY*!
>
> Thus all connections to the SMTP server would be encrypted... YES this
> probably means a 90%+ ELIMINATION in servers that can email the domains
> setup on such a server, oh well, so sad. You don't need to email me then!
>
> I want security, SECURITY ! SECURITY! Encrypted "meta data" connection
> thus snooping is slowed down unless certain alphabets want to brute force
> it and put those Crays in UT to work! POP3 ad IMAP with SSL/TLS is
> already implemented... Secure drives is being implemented, and physical
> control changes are being made too. Yes the servers are moving off US
> soil, and weak jurisdictions.
>
> If there is a way that a non secure connection can be told to "Sorry
> stupid server, you need to try it securely!" and/or send back a
> message... Sorry! This server requires a SSL/TLS connection to send
> email! Please configure your server thusly, and try again! Or don't
> bother!"

acl_mail:

require
message=Sorry! This server requires a SSL/TLS connection to send \
email! Please configure your server thusly, and try again! Or don't \
bother!
encrypted = *

perhaps also these?

require
message=you need a real TLS cert
verify = certificate
message=you need a stronger TLS cert
condition = ${if >= {$tls_bits}{2048}}

> Simply quit listening on Port 25? ? And only on 465 ????

465 is deprecated (if the RFCs are to be believed)

> Lots of HOWTO: on enabling SSL/TLS, but it appears from these that NON
> SSL/TLS is still possible and that the initial connection may be
> UNSECURE! ! ! BZZT!!!!

What's the problem with using plaintext before STARTTLS? nothing is
exposed that can't be found using a reverse lookup, probing, or whois
lookup.

--
⚂⚃ 100% natural

--
## List details at https://lists.exim.org/mailman/listinfo/exim-users
## Exim details at http://www.exim.org/
## Please use the Wiki with this list - http://wiki.exim.org/

exim users RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.