Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > ISPConfig 2 > Tips/Tricks/Mods

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 9th August 2007, 20:11
Rescue9 Rescue9 is offline
Member
 
Join Date: Jun 2007
Posts: 52
Thanks: 4
Thanked 3 Times in 2 Posts
Default ISPConfig & procmail rules

I've read just about every file I could read regarding email rules with ISPConfig, but it still can't get it to work.

I focus'd on this file: http://www.howtoforge.com/forums/arc...hp/t-9127.html

I seem to remember this working last time I tried this installation, but I don't know what I did back then.

Basically I have a number of Yahoo Group and forum email that I want sorted into individual folders that I created on the server.

There's a lot of information, so if I miss something please ask.

First, I created a .personalrules.rc file that looks like this
Code:
## Begin Recipes
## Recipies must have reverse to match reversed words
#

# Primus Micron
:0
* ^Subject: .*Primus.*Micron.*
${HOME}/Maildir/.BGT\ Specific\.Primus\ Micron/

# Patagonia Down Jacket
:0
* ^Subject: .*Patagonia.*Jacket.*
${HOME}/Maildir/.BGT\ Specific\.Patagonia\ Down\ Jacket/

:0
* ^Subject: .*Jacket.*Patagonia.*
${HOME}/Maildir/.BGT\ Specific\.Patagonia\ Down\ Jacket/

# Big Agnes Lost Ranger
:0
* ^Subject: .*Lost.*Ranger.*
${HOME}/Maildir/.BGT\ Specific\.Big\ Agnes\ Lost\ Ranger/

# Big Agnes Dual Core
:0
* ^Subject: .*Dual.*Core.*
${HOME}/Maildir/.BGT\ Specific\.Big\ Agnes\ Lost\ Ranger/

# BD Mesa
:0
* ^Subject: .*Mesa.*
${HOME}/Maildir/.BGT\ Specific\.BD\ Mesa/
There is more, but you get the idea.

Second, I edited the file /root/ispconfig/isp/conf/procmailrc.master and to look like this
Code:
{MAILDIR_COMMENT}MAILDIR=$HOME/Maildir/
{MAILDIR_COMMENT}DEFAULT=$MAILDIR
{MAILDIR_COMMENT}ORGMAIL=$MAILDIR
{QUOTA}
INCLUDERC={PMDIR}/.mailsize.rc
{QUOTA_COMMENT}INCLUDERC={PMDIR}/.quota.rc
{ANTIVIRUS_COMMENT}INCLUDERC={PMDIR}/.antivirus.rc
{MAILSCAN_COMMENT}INCLUDERC={PMDIR}/.local-rules.rc
{MAILSCAN_COMMENT}INCLUDERC={PMDIR}/.html-trap.rc
{SPAMASSASSIN_COMMENT}INCLUDERC={PMDIR}/.spamassassin.rc
{AUTORESPONDER_COMMENT}INCLUDERC={PMDIR}/.autoresponder.rc
INCLUDERC={PMDIR}/.personalrules.rc
These rules worked as is without the "${HOME}/Maildir/" on my previous server, but I simply can't figure out what to do next.
Reply With Quote
Sponsored Links
  #2  
Old 9th August 2007, 22:45
Rescue9 Rescue9 is offline
Member
 
Join Date: Jun 2007
Posts: 52
Thanks: 4
Thanked 3 Times in 2 Posts
 
Default

I played with this for 5 hours and finally figured it out.

Because $MAILDIR was already specified in the .procmailrc in the web# folder, I needed to remove the ${HOME}/Maildir/ from the beginning of the rules.


Sorry to trouble.
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
ISPconfig Virtual Hosts + Perfect setup Problem ? orasis Installation/Configuration 5 16th March 2007 10:46
fastcgi and php with ispconfig tosser Tips/Tricks/Mods 3 25th June 2006 21:01
Users and websites aren't created Glorfindel Installation/Configuration 9 23rd February 2006 04:20
Running ISPConfig on a vserver? tron Installation/Configuration 4 8th December 2005 10:35
procmail supposed to be in main.cf? Smitty Installation/Configuration 4 5th December 2005 10:10


All times are GMT +2. The time now is 01:54.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.