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


  Search this Thread
Old 09-16-2003, 11:46 AM   #1
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):

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

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

Rep: Reputation: 68
Welcome to LQ

Which IMAP server are you using?

Old 09-17-2003, 08:51 PM   #3
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
Originally posted by MasterC
Welcome to LQ

Which IMAP server are you using?

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)
#:0fw: spamassassin.lock
#| /usr/bin/spamc -s 256000
:0fw: spamassassin.lock
* < 256000
| /usr/bin/spamassassin -a
* ^X-Spam-Flag: YES
* ^X-Spam-Level: \*\*\*\*\*
* ^X-Mailing-List: <>
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!


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 > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 06:38 PM.

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