3

I'd like to set up authenticated, encrypted SMTP on my remote Ubuntu server, how do I do that?

It's just a personal server, so I'd like a cheap option, i.e. not buying SSL certs - self-signed will do for now at least.

Update: I'm a little tied to exim as I've got some other stuff configured in that.

3
  • FYI, you can get free SSL certs that will validate in most browsers (updated WinXP's IE6, Firefox 2.0, OS X) from startssl.com. It's what I'm using on all my sites.
    – lfaraone
    Aug 22, 2010 at 1:52
  • Are none of the supplied answers suitable? If they are, please mark them as such.
    – jmtd
    Jan 24, 2011 at 13:25
  • Sorry, lost track of this a long time ago! I am not using this setup now so can't say which would have worked, but have accepted the top answer as it looks helpful even though it wasn't exim based.
    – x3ja
    Jan 18, 2018 at 9:28

5 Answers 5

3

I would suggest Postfix. This is a mail server which is very easy to set up (in my opinion). You'll find some useful documents:

Those documents cover the basic setup of Postfix. If you encounter problems you should come back (or better, ask Superuser).

1
  • Thanks, but I should have specified that I'm a little tied to exim as we've got some other stuff configured in that.
    – x3ja
    Aug 17, 2010 at 1:42
1

You can do that by using postfix and dovecot packages. There are lots of detailed instructions available. Just to mention a few:

http://johnny.chadda.se/article/mail-server-howto-postfix-and-dovecot-with-mysql-and-tlsssl-postgrey-and-dspam/

http://www.debianadmin.com/debian-mail-server-setup-with-postfix-dovecot-sasl-squirrel-mail.html

http://rimuhosting.com/support/settingupemail.jsp?mta=postfix

http://www.linuxmail.info/

1

Install dovecot-postfix package and you are done.

1

One place to get started with encrypted authentication for exim is here:

http://www.debian-administration.org/article/280/HowTo_Setup_Basic_SMTP_AUTH_in_Exim4

1

Install the exim4-daemon-light package. Debconf will ask you some questions about the setup of the server. The installation should auto-generate some self-signed certificates, if it doesn't use the /usr/share/doc/exim4-base/examples/exim-gencert script to generate one, or do it by hand.

Install sasl2-bin to get a saslauth daemon. Then read /usr/share/doc/exim4-config/README.Debian.gz, in particular the 2.2.2. and 2.3. sections.

This will explain the rest, but briefly, edit /etc/exim4/exim4.conf.localmacros to include

MAIN_TLS_ENABLE = true
1
  • of course, you probably already have the exim package installed.
    – jmtd
    Sep 22, 2010 at 8:27

Not the answer you're looking for? Browse other questions tagged .