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 01-05-2006, 12:47 AM   #1
LocoMojo
Member
 
Registered: Oct 2004
Distribution: Slackware 12
Posts: 165

Rep: Reputation: 30
Noob wants a mailserver


Hi all,

I've been running Slackware on the desktop for a year now, but I'm just now dabbling in server stuff so I'm a complete noob.

I have a 4 computer network at home, 2 Windows clients for my wife and kids, my Slackware desktop and now a Slackware file server on an old 400 MHZ box.

The McAfee antivirus subscription on the Windows boxes will expire next month and I am sick to death of paying beaucoup bucks for re-subscriptions. I've decided that I'd like to try and set up a mail server to go between the Windows boxes and my ISP. I want to have that mail server collect POP mail from from my ISP then I want a free antivirus program like ClamAV or F-prot to scan those emails and delete any infected emails. Then I want my wife and kids to be able to collect their emails from that server using Thunderbird. It isn't necessary that my wife and kids send their emails via the server so I'll just keep their current smtp settings.

How do I go about setting this up? What's the easiest secure method?

Thanks in advance.

LocoMojo
 
Old 01-05-2006, 02:34 AM   #2
odevans
Member
 
Registered: Nov 2005
Location: Columbus, OH, USA
Distribution: Slackware
Posts: 246

Rep: Reputation: 30
Have a look at fetchmail (man fetchmail). Combine with sendmail and a POP3 / IMAP server.

There are a bazillion how-to's on the net for doing spam / virus filtering with sendmail (eg with SpamAssassin and Clam).
 
Old 01-05-2006, 04:25 AM   #3
carboncopy
Senior Member
 
Registered: Jan 2003
Location: Malaysia
Posts: 1,210
Blog Entries: 4

Rep: Reputation: 45
Just install sendmail from Slackware official packages.

as root
Code:
chmod +x /etc/rc.d/rc.sendmail
So that it will start everytime you start your machine.

Code:
/etc/rc.d/rc.sendmail start
to start sendmail server after you install it.

Note that the default config will not allow you to use the smtp server from outside your local network (possibly outside your machine). If you want something more advance then that (full fledge mail server), others will have to help you with the config.
 
Old 01-05-2006, 06:15 AM   #4
mdarby
Member
 
Registered: Nov 2004
Location: Columbus, Ohio
Distribution: Slackware-Current / Debian
Posts: 795

Rep: Reputation: 30
Postfix is the way to go, IMHO; as said earlier there are a billion how-to's floating around the net.
 
Old 01-05-2006, 10:11 AM   #5
LocoMojo
Member
 
Registered: Oct 2004
Distribution: Slackware 12
Posts: 165

Original Poster
Rep: Reputation: 30
Thanks guys for your responses.

Hmm, fetchmail, sendmail, or postfix.

I'll have to take a look at the documentation to see which would be what I'm looking for and most painless to install and deal with.

Thanks again.

LocoMojo
 
Old 01-05-2006, 11:04 AM   #6
LocoMojo
Member
 
Registered: Oct 2004
Distribution: Slackware 12
Posts: 165

Original Poster
Rep: Reputation: 30
I just installed fetchmail. Easy as cake. However, fetchmailconf requires X and I negelected to mention that I don't have X installed on the server.

No problem, I was able to manually edit .fetchmailrc.

I was able to poll my ISP mail server and fetchmail told me that there was mail sitting there, however, it failed to retrieve the mails because I don't have any mail readers installed on the server. I don't want to use any mail readers on the server itself. I just want to have 3 mailboxes on the server, I want fetchmail to fetch the mails from my ISP and put them in their respective user mailboxes then I want ClamAV to scan each of these mailboxes for viruses and delete viruses as they are found. Then I want my wife and kids to be able to fetch the emails from my server with their email clients on their respective machines.

Make sense? Is this doable?

LocoMojo
 
Old 01-05-2006, 11:22 AM   #7
mdarby
Member
 
Registered: Nov 2004
Location: Columbus, Ohio
Distribution: Slackware-Current / Debian
Posts: 795

Rep: Reputation: 30
Absolutely. As the name implies, Fetchmail does simply that. You'll need a "MUA" (mail user agent) program such as Courier-IMAP to have mailboxes for users.
 
Old 01-05-2006, 11:48 AM   #8
LocoMojo
Member
 
Registered: Oct 2004
Distribution: Slackware 12
Posts: 165

Original Poster
Rep: Reputation: 30
Quote:
Originally Posted by mdarby
Absolutely. As the name implies, Fetchmail does simply that. You'll need a "MUA" (mail user agent) program such as Courier-IMAP to have mailboxes for users.
Hi mdarby,

Ok, I thought that "fetchmail" was pretty obvious.

Now let me explain something before I ask my next question.

You see, my file server only has two home directories, the default /root and /home/locomojo. My wife and kids don't have home directories on the server (I'm trying to conserve space). My wife and kids do have user accounts and smb accounts so that they may access the shared directories in /home/locomojo.

Now my question is if I install a "MUA", would I be able to set up mailboxes in /home/locomojo as follows?

/home/locomojo/mail/wife - accessible only by wife
/home/locomojo/mail/kid1 - accessible only by kid1
/home/locomojo/mail/kid2 - accessible only by kid2

Or would I be required to have home directories for each?

The MUA you mentioned is for IMAP. Could you recommend a good MUA for POP?

Thanks.

LocoMojo

Edit: Just installed Mutt, gonna give that one a shot.

Last edited by LocoMojo; 01-05-2006 at 11:59 AM.
 
Old 01-05-2006, 12:37 PM   #9
mdarby
Member
 
Registered: Nov 2004
Location: Columbus, Ohio
Distribution: Slackware-Current / Debian
Posts: 795

Rep: Reputation: 30
I imagine that you could configure a MUA to do that, but by default (and for probably the best usage), MailDir or MBox's go into /home. The space is going to be taken anyway, why not seperate into their own /home directories to ease headaches?

I'm afraid I can't give a good recommendation for POP3; I'm an IMAP guy myself
 
Old 01-05-2006, 05:26 PM   #10
odevans
Member
 
Registered: Nov 2005
Location: Columbus, OH, USA
Distribution: Slackware
Posts: 246

Rep: Reputation: 30
LocoMojo,

have a read of the fetchmail man page. After fetchmail retrives mail from your ISP, it runs it through the local mail delivery system (ie on your mail server). On Slackware, that's sendmail (by default).

If you run the popa3d or IMAPD servers, your users (wife & kids) can then collect mail from your server using their regular mail clients (Mozilla Mail, Thunderbird, KMail, Evolution, Outlook etc etc).

Mail (by default) is stored in /var/spool/mail.

Most of this should work "out of the box", you'll just need to tweak the .fetchmailrc and google around for a howto on getting ClamAV to play with sendmail.
 
Old 01-05-2006, 07:41 PM   #11
LocoMojo
Member
 
Registered: Oct 2004
Distribution: Slackware 12
Posts: 165

Original Poster
Rep: Reputation: 30
Got it all set up and it works great.

Using fetchmail, sendmail, procmail, and popa3d. My wife and kids are now downloading their mail off my server rather than directly from my ISP.

I'm reading some documentation on ClamAV and a Mail Scanner plugin now.

Thank you all for your help.

LocoMojo
 
Old 01-05-2006, 08:12 PM   #12
mdarby
Member
 
Registered: Nov 2004
Location: Columbus, Ohio
Distribution: Slackware-Current / Debian
Posts: 795

Rep: Reputation: 30
clamav is a wonderful project; you'll be very happy.
 
  


Reply



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
MailServer Help nixinbarrie Linux - Networking 3 04-22-2004 12:51 PM
Firewall help (noob really really huge noob) ProtoformX Linux - Networking 1 03-29-2004 12:19 AM
Complete noob question from a noob noob_hampster Linux - Software 2 09-04-2003 12:03 AM
got mailserver? fractilian Linux - Software 2 06-28-2003 03:56 PM
About Mailserver RKris Linux - Software 1 08-23-2002 08:07 AM

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

All times are GMT -5. The time now is 07:05 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