SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I would like to setup my own IMAP and SMTP mail server on Slackware. What's the best way to do this? With Sendmail? Are there any tutorials? I've seen some things here (like this site), but that tutorial is somewhat outdated (before 2009).
You can find lots of tutorials and articles about this. Since you're talking about Linux command line programs, you don't really need something specifically for Slackware, though that might make it a little easier.
Since Sendmail is a mature program that has been around for ages, a tutorial from 2009 is likely still valid.
A search for "configure mail server slackware" will turn up a number of useful articles.
Sendmail is an extremely complex program. You might consider Postfix as an alternative. Sendmail is included with Slackware; postfix or another alternative would need to be installed.
Check your ISP's terms of service. Many of them forbid public-facing servers, including mail servers, unless you have a business-level account. I know that mine does, and enforces the prohibition aggressively.
I would like to setup my own IMAP and SMTP mail server on Slackware. What's the best way to do this? With Sendmail? Are there any tutorials? I've seen some things here (like this site), but that tutorial is somewhat outdated (before 2009).
Having hosted my own email account on both sendmail and postfix, I can 100% recommend postfix. Sendmail syntax is the worst thing I've ever seen .. and I love perl, so that should tell you something.
I run postfix and dovecot, and they work wonderful together.
An alternative if you run into the problems mentioned above is to use an externally hosted email address (webhost, isp, hotmail, whatever) and then use something like fetchmail to feed the mail to your IMAP server.
If it's a home setup, your IP range will be listed as spam. A Long fight awaits you.
Quote:
Originally Posted by commandlinegamer
If you've got a decent ISP you ought to be able to sort out stuff like a static IP and reverse DNS with them.
Just make sure that you send your emails through the ISP's SMTP server by defining that one as your SmartHost. All your mail will be delivered.
As for receiving email: setup your own domain or use one of the free dynamic DNS services like dnsdynamic.org. that way you can define a MX host for your domain and as long as port 25 is not blocked by your ISP, you're good to go.
I have been doing that ever since my home got connected to the Internet, long ago.
And I am using Sendmail (with SpamAssassin and ClamAV plugged in for filtering out the bad stuff) for the mail delivery, and Cyrus IMAP as the mailserver, using fetchmail to poll my ISP's mailbox regularly and deposit the new emails into my IMAP inbox at home.
@Eric, would you comment on why you chose Cyrus over dovecot?
I have setup, maintained and administered a Cyrus IMAP server for several hundred people with gigabytes' mailboxes for years. It scales very well, performs very well, is very resilient against database corruption. These qualities are following from the "one file per email" concept. No big mailfiles.
Also it offers Sieve mail-filtering out of the box (the Cyrus Project was one of the first to implement it properly and in full).
Cyrus IMAP servers can be setup as "black boxes". The mail accounts do not have to be reflected as system accounts, so you won't have hundreds of potential local root exploit attack vectors because nobody will have a login account to your server. The cyrus user-ID is the only account that can access the mail spool. The downside of this is, that you have to create every individual mailbox. There is a script in "contribs" that takes care of automatic mailbox creation when a user connects to the IMAP server for the first time, but I am too paranoid to allow that.
I am very comfortable with Cyrus IMAP. I have written a SlackBuild script based on the RPM SPEC file for the Invoca implementation of Cyrus IMAP that I got used to, and have been running that as a Slackware package since Slackware 10 on my home server.
I can not comment on Dovecot because I never used it.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.