Setting up a mail server with Slackware: where to begin?
Hi,
I'm currently trying to setup a mail server with Slackware. Until now, I've only relied on webhosters doing that job for me, but now, I want to be able to do it on my own server. I've got loads of (printed) documentation in various books, but curiously enough, most of the tutorials are either for Postfix or Exim MTA. So I got myself a copy of O'Reilly's Sendmail book. 1250 pages (gasp!). It's well written, and I've already started reading, but I wonder: isn't there a more simple way, something in the middle between quick-and-dirty and exhaustive? I'm not a lamer for RTFM, only this time, I don't quite know where to begin. Any recommendations? |
Quote:
If you just want to send your mail from your PC with sendmail it is much simpler. |
First you should answer several questions:
1. Did you already installed the OS (Slackware) on the server successfully? (There are several security related things which belongs rather to the OS installation then the mail system configuration - installed packages, firewall configuration, intrusion detection, remote access ...) There are also things which needs to be done that does not relate to server itself (domain configuration, network configuration, ISP can make things difficult sometimes too) 2. Sendmail is just the part of the mail system - what other applications you plan to use? (for imap-pop3, webmail, antivirus for mail system, spam prevention...) Sendmail may look scary at first but finally when you configure it several times its easy. Just let us know what steps you already completed and where you are now. |
I already have a public server running Slackware64. I own half a dozen domain names, and I already set up corresponding web services. For example here :
http://www.osteo-sommieres.fr I have setup DNS (BIND) with the right MX records, so basically I'm all set. Hear my knuckles crack ;) |
quick-and-verydirty setup
The next you want to check out these directories:
/usr/share/sendmail/cf/cf /etc/mail First you create your sendmail.cf file. You do not edit this file (/etc/mail/sendmail.cf) by hand rather you use one of the sendmail.mc files in this directory (/usr/share/sendmail/cf/cf). Since the sendmail.cf file is too difficult to know (edit manually) there are those mc files which does contain only those options what you need to modify in the default sednamil.cf file. This is what you want to do: Quote:
Take a look into the example mc files (personally I used the sendmail-slackware-tls-sasl.mc) and find out what you need. Several suggestions: 1. You need to know what authentication mechanism you going to use (sasl for plain authentication for example - this requires additional configuration of the saslauthd) 2. Whether you going to use encryption. In default configuration - sendmail will not allow week authentication without encryption (SASL - PLAIN, LOGIN auth) (for encryption you can use stunnel) Here is an example sendmail-slackware.mc file: Code:
include(`../m4/cf.m4') NOTE: This mc file is modified and the above noted security defaults are changed. You should not use it in production environment in this form. The lines starting with dnl# or dnl are commented out. Each option should end with dnl. You need to enable SALS. Quote:
Quote:
Quote:
Start up imap2 and pop3 - edit the /etc/inetd.conf file and uncomment the imap2 and pop3 lines. Quote:
Quote:
access: Quote:
Quote:
Quote:
Quote:
NOTE: This is a very quick-and-dirty how-to, so if this works you should focus on security. (Configure encryption, disallow week authentication to be used without encryption, use different authentication application - not sasl, use different imap-pop3 servers and so on ....) Good luck |
I would use postfix if you can. Its simpler to configure.
|
Thanks everybody for all the detailed answers! Got some homework to do now...
|
qmail is worth a look (and the author famously controversial): http://cr.yp.to/qmail.html
|
I run my own mailserver with postfix, dovecot, clamav, amavisd-new I chose postfix because it was easy to setup and has a very friendly and informative mailing list.
I have a dynamic ip along with custom dns package from dyndns.org Works great with ddclient as the ip update agent. |
All times are GMT -5. The time now is 06:20 PM. |