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.
Reply
 
Thread Tools Display Modes
  #1  
Old 17th November 2009, 19: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:
Quote:
### 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
### BEGIN FILTER_ID:1

`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
}
}
### END FILTER_ID:1
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.

Thanks

Last edited by rforsythe; 17th November 2009 at 19:58. Reason: title chg
Reply With Quote
Sponsored Links
  #2  
Old 17th November 2009, 19:59
till till is online now
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 35,787
Thanks: 821
Thanked 5,337 Times in 4,187 Posts
Default

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

Thanks, I was on 3.0.1.6 already but hadn't recreated the filter, looks like it's functioning now.
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
Need help get mail to work (can't recieve and apperently can't send) omega13a Installation/Configuration 19 20th August 2009 21:06
just the last step...and it works. Postfix...need help config. ubuntusr Installation/Configuration 1 5th January 2009 09:50
The Perfect Setup - Debian Etch (Debian 4.0) some trouble daniel80 HOWTO-Related Questions 26 1st February 2008 16:30
Postfix reject connections gabrix Server Operation 27 25th January 2007 08:37
Webmail Relay Error palkat General 17 23rd April 2006 18:12


All times are GMT +2. The time now is 13:33.


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