LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 10-16-2007, 01:01 AM   #1
fakie_flip
Senior Member
 
Registered: Feb 2005
Location: San Antonio, Texas
Distribution: Gentoo Hardened using OpenRC not Systemd
Posts: 1,495

Rep: Reputation: 85
fetchmail and mutt


How can I change the location of where fetchmail downloads emails to the mbox file? Each time I start mutt, it asks me if I want to create a Mail directory in my home directory. Is there where the mbox file usually goes? My mbox file is in my home directory. What is the Mail directory that mutt keeps creating in my home directory for? What is a mail spool? I searched google for a definition and wikipedia but did not find anything.

Last edited by fakie_flip; 10-16-2007 at 01:05 AM.
 
Old 10-17-2007, 11:00 AM   #2
slackbat
Member
 
Registered: Dec 2005
Location: Mid-West-Wales
Distribution: Slackware 14.2_64_multilib - Salix 14.2 - devuan
Posts: 140

Rep: Reputation: 27
I do not know what your .fetchmailrc file looks like. Perhaps you could post it. But if you are using mutt, then there should also be a .muttrc in your home directory.

In my case fetchmail just passes the mail to a mta (mail transfer agent - postfix). Which in turn passes the mail to the spool. The spool can be /var/mail/username or /var/spool/mail/username. But you can have this redirected to your home directory via procmail.

At the top my .muttrc I have

Code:
set mbox_type=maildir
set mbox="~/Mail/inbox/"
set spoolfile="~/Mail/inbox/"
All .muttrc does is tell mutt where the mail directory is so it knows where to read mail. You may need to create the directory yourself.

But again my setup has

Fetchmail to get the mail. Which in turn is transfered to the mta. Which in turn sends the mail through procmail - this has a lot of recipes for spam filtering etc - before being delivered to the inbox.

Have a look on the web for "single user email debian mutt"

It is for debian, but is very helpful for other systems.

good luck
 
Old 10-18-2007, 03:19 AM   #3
Su-Shee
Member
 
Registered: Sep 2007
Location: Berlin
Distribution: Slackware
Posts: 510

Rep: Reputation: 53
I use a configuration like this:

set mbox_type=mbox
set folder=~/Mail
set copy
set spoolfile="/var/spool/mail/myusername"


Normally, you'll fetch the mail with fetchmail. Fetchmail speaks protocols like IMAP and POP which are used to GET your mail from somewhere else. Fetchmail than usally delivers the mail to a MDA - a mail delivery agent. I use for example qmail for that. Qmail knows where the mailboxes in my system reside and puts all mail into a mailbox. Where exactly the mailbox is and wether the mailbox is an "mbox" (all mails appended into one big file) or a "maildir" (a directory with one mail = one file) is up to you and your configuration.

I let qmail spool my mail into /var/spool/mail/myusername - this is my mailbox. There it lies until I open mutt. Mutt checks the spool-file in /var/spool/mail/myusername and shows the usal mail listing.

To complicate things, I use procmail to filter mails. That means: instead of letting qmail spool all incoming mail into my standard spool file in /var/spool/mail/myusername, qmail delivers the mail to procmail, procmail does all kinds of filtering - including throwing away annoying stuff - and sorts my mails in to several folders ALL residing in ~/Mail/ - mailing lists for example get their own mailfolder. Everything NOT matching specific procmail rules ends up in my spool file in /var/spool/mail/myusername.

You'll need four things: fetchmail to fetch mail, an MDA to deliver and transfer mail around (use what you like) in your system, procmail for filtering, possibly also spamassasin for filtering spam specifically and your MUA (mail user agent) to actually read and write mail - mutt in our case. As qmail and/or postfix also can act as MDA, this distinction seems to look a bit nitpicking, but there're also tools for Linux/Unix which actually do delivering only - not sending out, no acting as a "real" mail server - which qmail and postfix both can.

And we're not talking OUTGOING mail here - incoming only.

Last edited by Su-Shee; 10-18-2007 at 03:22 AM.
 
  


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
procmail, mutt, evolution, fetchmail fakie_flip Linux - Software 3 10-15-2007 12:12 PM
Help with mutt/procmail/fetchmail configs evilchild Linux - Newbie 1 08-30-2007 08:09 AM
Setting Up System Mail Via Mutt, Exim4 and Fetchmail Problem Blyiss Linux - Networking 1 02-19-2007 08:25 PM
config fetchmail,mutt,procmail,sendmail Tim Johnson Slackware 2 09-15-2006 02:20 PM
email from the console (fetchmail/procmail/mutt/postfix) TedMaul Linux - Software 0 03-04-2004 12:07 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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