LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 10-19-2014, 08:31 PM   #1
Geremia
Member
 
Registered: Apr 2011
Distribution: slackware64-current
Posts: 492

Rep: Reputation: 45
IMAP & SMTP mail server tutorial for Slackware?


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

thanks
 
Old 10-19-2014, 08:42 PM   #2
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 19,311
Blog Entries: 28

Rep: Reputation: 6137Reputation: 6137Reputation: 6137Reputation: 6137Reputation: 6137Reputation: 6137Reputation: 6137Reputation: 6137Reputation: 6137Reputation: 6137Reputation: 6137
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.

There is this on the Slackware wiki: http://docs.slackware.com/howtos:mis...ifx_with_cyrus

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.

Last edited by frankbell; 10-19-2014 at 08:48 PM.
 
1 members found this post helpful.
Old 10-20-2014, 02:04 AM   #3
kikinovak
MLED Founder
 
Registered: Jun 2011
Location: Montpezat (South France)
Distribution: CentOS, OpenSUSE
Posts: 3,453

Rep: Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154
Quote:
Originally Posted by Geremia View Post
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).

thanks
Here's my own HOWTO on the subject, in french:

http://www.microlinux.fr/slackware/L...Mail-HOWTO.txt
 
1 members found this post helpful.
Old 10-20-2014, 08:53 AM   #4
arsivci0
Member
 
Registered: Nov 2013
Location: Antalya
Distribution: Slackware64 current
Posts: 119

Rep: Reputation: 23
If it's a home setup, your IP range will be listed as spam. A Long fight awaits you.
 
Old 10-20-2014, 10:37 AM   #5
commandlinegamer
Member
 
Registered: Dec 2007
Posts: 163

Rep: Reputation: 51
Quote:
Originally Posted by arsivci0 View Post
If it's a home setup, your IP range will be listed as spam. A Long fight awaits you.
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.
 
Old 10-20-2014, 10:43 AM   #6
codeguy
Member
 
Registered: Jan 2004
Distribution: Slackware
Posts: 187

Rep: Reputation: 46
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.

-Andy
 
Old 10-20-2014, 11:25 AM   #7
arsivci0
Member
 
Registered: Nov 2013
Location: Antalya
Distribution: Slackware64 current
Posts: 119

Rep: Reputation: 23
Quote:
Originally Posted by commandlinegamer View Post
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.
Typical customer service people are often clueless, you have to find the hidden real IT guys, especially for reverse DNS.
 
Old 10-20-2014, 11:55 AM   #8
Richard Cranium
Senior Member
 
Registered: Apr 2009
Location: McKinney, Texas
Distribution: Slackware64 15.0
Posts: 3,858

Rep: Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225
Quote:
Originally Posted by codeguy View Post
Sendmail syntax is the worst thing I've ever seen .. and I love perl, so that should tell you something.
It tells me that coffee coming out of my nose hurts. Good one!
 
Old 10-20-2014, 12:02 PM   #9
BCarey
Senior Member
 
Registered: Oct 2005
Location: New Mexico
Distribution: Slackware
Posts: 1,639

Rep: Reputation: Disabled
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.

Brian
 
Old 10-20-2014, 08:07 PM   #10
ivandi
Member
 
Registered: Jul 2009
Location: Québec, Canada
Distribution: CRUX, Debian
Posts: 528

Rep: Reputation: 866Reputation: 866Reputation: 866Reputation: 866Reputation: 866Reputation: 866Reputation: 866
http://slackbuilds.org/repository/14...m/?search=exim
http://slackbuilds.org/repository/14.1/network/dovecot/
 
Old 10-21-2014, 04:19 AM   #11
Alien Bob
Slackware Contributor
 
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 8,559

Rep: Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106
Quote:
Originally Posted by arsivci0 View Post
If it's a home setup, your IP range will be listed as spam. A Long fight awaits you.
Quote:
Originally Posted by commandlinegamer View Post
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
 
4 members found this post helpful.
Old 10-21-2014, 02:08 PM   #12
BCarey
Senior Member
 
Registered: Oct 2005
Location: New Mexico
Distribution: Slackware
Posts: 1,639

Rep: Reputation: Disabled
@Eric, would you comment on why you chose Cyrus over dovecot?
 
Old 10-21-2014, 11:15 PM   #13
Geremia
Member
 
Registered: Apr 2011
Distribution: slackware64-current
Posts: 492

Original Poster
Rep: Reputation: 45
Quote:
Originally Posted by Alien Bob View Post
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.
Yes, this guide said to define smart_host. Sending is working for me.
Quote:
Originally Posted by Alien Bob View Post
As for receiving email: setup your own domain or use one of the free dynamic DNS services like dnsdynamic.org
I like http://freedns.afraid.org/ better … anyways…
Quote:
Originally Posted by Alien Bob View Post
. 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 bet my ISP does block it…

---------- Post added 10-21-14 at 09:16 PM ----------

Quote:
Originally Posted by kikinovak View Post
Here's my own HOWTO on the subject, in french:

http://www.microlinux.fr/slackware/L...Mail-HOWTO.txt
Nice guide! And I do read French. Merci!

Last edited by Geremia; 10-21-2014 at 11:16 PM.
 
Old 10-22-2014, 05:22 AM   #14
Alien Bob
Slackware Contributor
 
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 8,559

Rep: Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106
Quote:
Originally Posted by BCarey View Post
@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.

Eric
 
Old 10-22-2014, 10:30 AM   #15
Geremia
Member
 
Registered: Apr 2011
Distribution: slackware64-current
Posts: 492

Original Poster
Rep: Reputation: 45
Quote:
Originally Posted by Alien Bob View Post
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.
Yes, in- and out-bound port 25 is blocked by my ISP (outbound only open if sent to their SMTP server). Is there any way around this?
 
  


Reply

Tags
email, imap, sendmail, smtp



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Install DHCP/GW and Mail server (Pop3, smtp and imap) LOH Mephisto Slackware 0 02-17-2009 02:32 PM
Setting up an SMTP/IMAP mail server. swamprat SUSE / openSUSE 2 06-15-2007 09:02 AM
most prefered mail server (pop/imap) and smtp cope Linux - Server 2 04-04-2007 09:15 AM
Setting up a Pop3/Imap/SMTP Mail server w/ Spamfilter ubers0ldat Linux - Software 1 06-17-2004 07:13 AM
IMAP & SMTP running on a server htm Linux - Software 2 03-25-2004 07:42 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 12:13 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration