Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > ISPConfig 3 > Installation/Configuration

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Thread Tools Display Modes
Old 17th November 2009, 20:58
rforsythe rforsythe is offline
Junior Member
Join Date: Nov 2009
Posts: 6
Thanks: 0
Thanked 4 Times in 2 Posts
Default Mail rules/filtering on the server

I'd like to set up server-side mail filters to take the place of what my client app does, so that I can use webmail and have the same results. Unfortunately it doesn't appear to be working, and I am not sure why.

For my account, let's use my 'Apple Dev' filter example:
Source: [From] [Contains] [@lists.apple.com]
Action: [Move to] [Apple Dev]
Active is checked.

The folder Apple Dev exists under INBOX.{blah}; client-side filtering works. Under Custom Rules, I have the following automatically created:
### BEGIN FILTER_ID:1\n\n`test -e \"$DEFAULT/.Apple Dev\" && exit 1 || exit 0`\nif ( $RETURNCODE != 1 )\n{\n `maildirmake -f \"Apple Dev\" $DEFAULT`\n `chmod -R 0700 \"$DEFAULT/.Apple Dev\"`\n `echo \"INBOX.Apple Dev\" >> $DEFAULT/courierimapsubscribed`\n}\nif (/^From:.*@lists\\.apple\\.com/:h)\n{\nexception {\nID1EndFolder = \"$DEFAULT/.Apple Dev/\"\nto $ID1EndFolder\n}\n}\n### END FILTER_ID:1\n

`test -e "$DEFAULT/.Apple Dev" && exit 1 || exit 0`
if ( $RETURNCODE != 1 )
`maildirmake -f "Apple Dev" $DEFAULT`
`chmod -R 0700 "$DEFAULT/.Apple Dev"`
`echo "INBOX.Apple Dev" >> $DEFAULT/courierimapsubscribed`
if (/^From:.*@lists\.apple\.com/:h)
exception {
ID1EndFolder = "$DEFAULT/.Apple Dev/"
to $ID1EndFolder
If I prepend the folder name with INBOX. in the rule, I get INBOX.INBOX in the above so that isn't right. Not sure what else to try or why it's broken though.

Anyone see a glaring stupid error in what I did? I can't find this issue in docs or on here, so I apologize in advance if it's come up before.


Last edited by rforsythe; 17th November 2009 at 20:58. Reason: title chg
Reply With Quote
Sponsored Links
Old 17th November 2009, 20:59
till till is offline
Super Moderator
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 37,015
Thanks: 840
Thanked 5,651 Times in 4,461 Posts

Please update your server to ISPConfig and then create the filter again.
Till Brehm
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
Old 18th November 2009, 19:36
rforsythe rforsythe is offline
Junior Member
Join Date: Nov 2009
Posts: 6
Thanks: 0
Thanked 4 Times in 2 Posts

Thanks, I was on already but hadn't recreated the filter, looks like it's functioning now.
Reply With Quote


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
Need help get mail to work (can't recieve and apperently can't send) omega13a Installation/Configuration 19 20th August 2009 22:06
just the last step...and it works. Postfix...need help config. ubuntusr Installation/Configuration 1 5th January 2009 10:50
The Perfect Setup - Debian Etch (Debian 4.0) some trouble daniel80 HOWTO-Related Questions 26 1st February 2008 17:30
Postfix reject connections gabrix Server Operation 27 25th January 2007 09:37
Webmail Relay Error palkat General 17 23rd April 2006 19:12

All times are GMT +2. The time now is 09:43.

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