Re: Mail server security - best practices?



sealinux@xxxxxxxxx wrote:

jKILLSPAM.schipper@xxxxxxxxxx wrote:

OpenVPN is not that bad, security-wise, and has an option to require
each message to be stamped with a certain key (not at the appropriate
computer now - see tls-auth.

Stock IPsec or OpenSSH is better, but tls-auth makes exploiting problems
very difficult.

I'm running tls-auth on the OpenVPN gateway. I'm also using
passphrase-protected unique keys for each client and 2048 bit
keylengths. Am I paranoid or what?!?

How long would a brute force attack on a 2048-bit key take?

For all practical purposes, infinitely long if you chose the key in a
vaguely competent fashion (i.e., not just typed 2048 null bytes or
somesuch).

Good crypto is almost undeafatable; however, implementation errors
abound, and social engineering is likely to be succesful if enough
(nontechnical) people have access.

And breaking the administrator's fingers almost always works.

For maximum protection, configure a mail forwarder in the DMZ - MTAs are
pretty secure, but spam and virus scans often use weird programs that
are not quite as well-tested.

I'm not running any of those. The gateway will only be running Qmail
and BIND on OpenBSD with everything chrooted. I fully appreciate the
idea that nothing is 100% secure. The whole idea is to make it more
trouble to hack than the data on the machine is worth.

Under these circumstances, I don't really see the need for a mail
gateway. Some find it useful, though.

So you think it best for the incoming mail to "live" on the server on
the DMZ then?

Well, security-wise, 'best' is of course the forwarding scheme. I don't
see sufficient benefit to it that I would personally use it, though.

That would be a different matter if the backend mailer was not as
secure, for instance, Exchange.

However, I would personally not mind sharing the mail gateway and the
BIND daemon - sure, separating them would be better, but your cost
argument is sound.

I can snag a few more white boxes from Re-PC. I'm going to take your
advice and run the webserver on a separate DMZ, this one with no access
behind the firewall. The mail gateway will have only port 25 access to
the one machine behind the firewall. I think PF can be set to look at
Ethernet addresses?

Mmm, maybe, but it might be better just to hardcode the MAC addresses.
See arp(8).

OTOH, you might want to run a DNS daemon on both DMZ'ed servers if said
DNS is required for the proper functioning of a/your domain. Then again,
a free ZoneEdit.com account (or similar) is likely to provide a more
valuable backup.

I'm not familiar with ZoneEdit.

Thanks a whole lot for your help. You mind if I contact you directly
by email?

No, not at all. The address in the header is valid, save the obvious.

Joachim
.



Relevant Pages

  • Re: Mail server security - best practices?
    ... Stock IPsec or OpenSSH is better, but tls-auth makes exploiting problems ... I'm running tls-auth on the OpenVPN gateway. ... advice and run the webserver on a separate DMZ, ... the one machine behind the firewall. ...
    (comp.unix.bsd.openbsd.misc)
  • RE: Maintaining state between 2 domains
    ... About the only way I can think of accomplishing this is to have a gateway ... page on each of the domains that passes the session var's back and forth. ... Link from non-secure to secure: ... > do I maintain state between the public area ...
    (microsoft.public.dotnet.framework.aspnet)
  • Reverse HTTPS Tunnel???
    ... give you remote access to your computer/files and claim to be secure. ... an SSL link between the browser and the gateway, ... Hence it is not secure at all. ...
    (comp.security.firewalls)
  • Re: Giving others secure access to my private network.
    ... The gateway machine is firewalled, and will only allow ssh ... It also does IP masquerading for the private network. ... >>I do not want to use a solution like FTP because it is not secure. ...
    (comp.os.linux.networking)
  • Giving others secure access to my private network.
    ... The gateway machine is firewalled, ... It also does IP masquerading for the private network. ... run Linux (i.e. the gateway, the inner machine, and my friend's machine). ... I do not want to use a solution like FTP because it is not secure. ...
    (comp.os.linux.networking)