Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

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.

share|improve this question

closed as too localized by Luis Mar 14 '13 at 17:04

This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, visit the help center.If this question can be reworded to fit the rules in the help center, please edit the question.

    
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 '10 at 1:52
    
Are none of the supplied answers suitable? If they are, please mark them as such. –  jmtd Jan 24 '11 at 13:25

5 Answers 5

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).

share|improve this answer
    
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 '10 at 1:42

Install dovecot-postfix package and you are done.

share|improve this answer

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

share|improve this answer

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
share|improve this answer
    
of course, you probably already have the exim package installed. –  jmtd Sep 22 '10 at 8:27

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