LinuxQuestions.org
Visit Jeremy's Blog.
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 03-02-2010, 12:05 PM   #1
skuzye
Member
 
Registered: Jul 2008
Location: São Paulo - Brazil
Distribution: Fedora 17
Posts: 97

Rep: Reputation: 15
Change mail spool location


Is there a way to change the mail spool location from /var/mail/ to some other place? I'm thinking of users own home directory or $HOME/.mail.

This is because system partition is not big enough to keep all mail from the company and /home is in a different one.

Creating another partition to keep /var or /var/mail seems too much just to keep emails.

What would you suggest?

Solution:

checking /usr/doc/procmail-x.xx/examples/advanced

Last edited by skuzye; 03-03-2010 at 12:08 PM.
 
Old 03-02-2010, 12:23 PM   #2
Chuck56
Member
 
Registered: Dec 2006
Location: Colorado, USA
Distribution: Slackware
Posts: 930

Rep: Reputation: 479Reputation: 479Reputation: 479Reputation: 479Reputation: 479
Yes. Slackware uses procmail as the local delivery agent (LDA) and is setup to deliver to local users in /var/spool/mail/user. Each user would need a local ~/.procmailrc file to tell procmail where the user's mail box is

Code:
:0
INBOX
I hope I have the format right. It's been a while since I made a similar conversion.

[EDIT] Thanks dive! You are correct in post #3. I delete the misleading info from my post. [/EDIT]

Last edited by Chuck56; 03-02-2010 at 05:38 PM. Reason: Incorrect initial post
 
Old 03-02-2010, 12:35 PM   #3
dive
Senior Member
 
Registered: Aug 2003
Location: UK
Distribution: Slackware
Posts: 3,467

Rep: Reputation: Disabled
Procmail should be enabled by default. All you need to do I think is for each user to edit .procmailrc
 
Old 03-02-2010, 01:48 PM   #4
skuzye
Member
 
Registered: Jul 2008
Location: São Paulo - Brazil
Distribution: Fedora 17
Posts: 97

Original Poster
Rep: Reputation: 15
What if I catch every message that went all filters and didn't match any and throw in an custom inbox?

The problem would be then changing uw imap to locate that file.
 
Old 03-02-2010, 02:19 PM   #5
dive
Senior Member
 
Registered: Aug 2003
Location: UK
Distribution: Slackware
Posts: 3,467

Rep: Reputation: Disabled
Not sure I understand you. Any message that doesn't get caught by procmail filters gets put in whatever DEFAULT is set to in procmailrc.
 
Old 03-02-2010, 04:24 PM   #6
skuzye
Member
 
Registered: Jul 2008
Location: São Paulo - Brazil
Distribution: Fedora 17
Posts: 97

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by dive View Post
Not sure I understand you. Any message that doesn't get caught by procmail filters gets put in whatever DEFAULT is set to in procmailrc.
Sorry.. What I meant was to make one last filter that catches every message so if the message wasn't caught by a prior filter it is caught now.

My procmail is deliverying any left message to /var/mail/ or /var/spool/mail (sorry I'm at home now, don't really know for sure).
 
Old 03-02-2010, 05:05 PM   #7
dive
Senior Member
 
Registered: Aug 2003
Location: UK
Distribution: Slackware
Posts: 3,467

Rep: Reputation: Disabled
If you set DEFAULT=$HOME/mail/somedefaultbox it will go there.
 
Old 03-02-2010, 05:41 PM   #8
Chuck56
Member
 
Registered: Dec 2006
Location: Colorado, USA
Distribution: Slackware
Posts: 930

Rep: Reputation: 479Reputation: 479Reputation: 479Reputation: 479Reputation: 479
There are examples with explanation in /usr/doc/procmail-x.xx/examples that will help understand and create .procmailrc files.
 
Old 03-03-2010, 12:07 PM   #9
skuzye
Member
 
Registered: Jul 2008
Location: São Paulo - Brazil
Distribution: Fedora 17
Posts: 97

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by Chuck56 View Post
There are examples with explanation in /usr/doc/procmail-x.xx/examples that will help understand and create .procmailrc files.
Exactly. I found what I needed in procmail-x.xx/examples/advanced

Thanks a lot!
 
  


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
change mail queue location in courier ncsuapex Linux - Software 1 06-18-2008 12:39 PM
exim, change location of file where mail is saved to ferdinand2 Linux - Software 0 01-26-2007 08:34 PM
change the /var/spool/mail to any other location nuker Linux - Software 6 11-05-2005 02:20 AM
Change location where mail is stored linuxboy69 Linux - Software 1 04-27-2004 03:45 PM
how to change the default mail delivery location mnisski Linux - General 3 10-21-2003 08:59 PM

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

All times are GMT -5. The time now is 07:09 PM.

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