LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices



Reply
 
Search this Thread
Old 09-16-2003, 11:46 AM   #1
fordboy0
LQ Newbie
 
Registered: Jan 2002
Location: Cincinnati
Distribution: Slack 8.1, Gentoo 1.4, FreeBSD 4.8, RH 7.2, Debian-PPC
Posts: 6

Rep: Reputation: 0
IMAP and fetchmail / postfix / procmail / spamc etc...


I'm going to apologize for the long winded question up front

I was so proud of myself; Finally sitting down and getting my firewall box setup to do my internal network's email.

Using the *mostly* default settings for postfix, my email was delivered as such: /var/spool/mail/$user < - was my Inbox (as IMAP served it up) and all of the other IMAP folders (trash, junk, stuff I created) ended up in my ~/$user directory. Not a real big problem, but something that I wanted to correct.

So... In comes procmail, and I set it up the .procmailrc as follows (I also have a valid .forward file):
MAILDIR=$HOME/mail
DEFAULT=$HOME/mail/Inbox
LOGFILE=$HOME/mail/proc.log
<snip>

Ok, herein lies my problem. With this setup, my mail does get delivered to my new locations but my IMAP deamon is still serving up the old stuff. I have been googling for days and can't seem to find an answer. I'm sure it's right under my nose, because it seems to *just work* for everyone else.

Thoughts? If you need more info on my setup, just ask

-FB
 
Old 09-16-2003, 06:31 PM   #2
MasterC
Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu
Posts: 12,612

Rep: Reputation: 64
Welcome to LQ

Which IMAP server are you using?

Cool
 
Old 09-17-2003, 08:51 PM   #3
fordboy0
LQ Newbie
 
Registered: Jan 2002
Location: Cincinnati
Distribution: Slack 8.1, Gentoo 1.4, FreeBSD 4.8, RH 7.2, Debian-PPC
Posts: 6

Original Poster
Rep: Reputation: 0
Quote:
Originally posted by MasterC
Welcome to LQ

Which IMAP server are you using?

Cool
Thanks for the hospitality, great site

I'm using UW Imap. After reading through the documentation, it seems that the only way to get this particular IMAP server to change where it looks for stuff is to recompile. AFAICT

The box that I have this running on is a ClarkConnect box, which is based on RH7.2. I understand why they set everything up this way, because it just *works* right out of the box. I just found it annoying that the main mail spool file sits in /var/spool/mail/$USER and the other mailboxes sit in the root of ~/$USER. I thought it would be nice to be able to make everything nice and neat in ~/$USER/mail, but I did get it working properly by doing this to my .procmailrc, it's just not as neat as I would like: (I included the whole thing FYI)
Code:
MAILDIR=$HOME
DEFAULT=/var/spool/mail/jfeige
LOGFILE=$HOME/mail/proc.log
#
#:0fw: spamassassin.lock
#| /usr/bin/spamc -s 256000
 
:0fw: spamassassin.lock
* < 256000
| /usr/bin/spamassassin -a
 
:0
* ^X-Spam-Flag: YES
* ^X-Spam-Level: \*\*\*\*\*
Spam
#
:0
* ^X-Mailing-List: <debian-powerpc@lists.debian.org>
debian-ppc
I decided to use the spamassassin script instead of the spamd/spamc combo since it's a slow machine (P120) with only 96MB RAM and having spamd running all the time chews up about 30MB. I realize there is a little start up overhead for each message, but I'm willing to take that hit.

FYI, I also noticed that if I didn't setup spamd with a process limit like: "spamd -m 2" and I had a bunch of mail to retrieve, it would bring my box to a complete standstill. (Same reason I'm using the spamassassin.lock file with the spamassassin script)

Anyhoo, if you have any thoughts about the UW IMAP server, or perhaps a suggestion on a different IMAP server to use, OR any thoughts about email in general...

Thanks again!
-FB
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
postfix - procmail, fetchmail varun_saa Mandriva 3 09-11-2005 01:53 AM
Fedora + IMAP + Squirrelmail + Fetchmail + Procmail murphy23 Linux - Software 2 03-30-2004 09:47 AM
mail replication postfix + procmail + fetchmail sebastianjustin Linux - Software 5 08-21-2003 08:45 AM
configuring mail server (postfix+fetchmail+procmail) amolchikhale Linux - Networking 0 08-01-2003 05:59 AM
Spamassassin conf with fetchmail, postfix, procmail, kmail iihay Linux - Networking 0 05-25-2003 10:03 AM


All times are GMT -5. The time now is 10:46 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration