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 16th December 2006, 12:34
vincen vincen is offline
Junior Member
 
Join Date: Aug 2006
Location: Grenoble, France
Posts: 17
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to vincen Send a message via AIM to vincen Send a message via MSN to vincen Send a message via Yahoo to vincen Send a message via Skype™ to vincen
Question Rules on incoming mails ?

Hi,

My goal is the following: I created some subfolders of my incoming mailbox and I would like that server puts emails directly in folders depending of originating email adress. Is it possible to do that in ISPConfig ? Either through the admin interface or by modifying some files in system ?

Thanks in advance for all your help

Vincn
Reply With Quote
Sponsored Links
  #2  
Old 16th December 2006, 16:58
martinfst martinfst is offline
Senior Member
 
Join Date: Dec 2006
Location: Hilversum, The Netherlands
Posts: 880
Thanks: 1
Thanked 18 Times in 17 Posts
Send a message via MSN to martinfst Send a message via Skype™ to martinfst
Default Procmail

ISPConfig uses procmail to process messages and you can easily extend the procmail rules in the user directories. I'm not sure how this is handled in case of upgrades, but for starters search for procmail in these forums. General info on procmail is widely available in the Internet.

The current rules can be found in each user directory of the domains on your system (the <xxx>.rc files).
Reply With Quote
  #3  
Old 17th December 2006, 11:21
vincen vincen is offline
Junior Member
 
Join Date: Aug 2006
Location: Grenoble, France
Posts: 17
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to vincen Send a message via AIM to vincen Send a message via MSN to vincen Send a message via Yahoo to vincen Send a message via Skype™ to vincen
Default

Well I looked through FAQ of procmail but I still have an issue. I added a file named .subscriptions.rc with following content in home directory of an account:

Code:
:0:
* ^Sender:.*@macfr.com
IN-Macfr
I created a folder in IMAP named Macfr under my INBOX but rule is not executed.

An idea what's wrong ?

Thanks

Vincn
Reply With Quote
  #4  
Old 17th December 2006, 12:40
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 37,015
Thanks: 840
Thanked 5,652 Times in 4,461 Posts
Default

Did you include your new rule in the file .procmailrc in the users home directory? The .procmailrc file gets overridden when you edit the user in ISPConfig, to add it permanently, add the line to the master template file in /root/ispconfig/isp/conf/
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #5  
Old 17th December 2006, 15:53
vincen vincen is offline
Junior Member
 
Join Date: Aug 2006
Location: Grenoble, France
Posts: 17
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to vincen Send a message via AIM to vincen Send a message via MSN to vincen Send a message via Yahoo to vincen Send a message via Skype™ to vincen
Default

Quote:
Originally Posted by till
Did you include your new rule in the file .procmailrc in the users home directory? The .procmailrc file gets overridden when you edit the user in ISPConfig, to add it permanently, add the line to the master template file in /root/ispconfig/isp/conf/
yep I added my rule at .procmailrc file of account but still doesn't work Is there a way to know if the problem is that procmail doesn't execute my rule or that it gets an error during execution of rule ? as I looked at log in maillog but found nothing interesting

Thanks

Vince
Reply With Quote
  #6  
Old 17th December 2006, 17:44
vincen vincen is offline
Junior Member
 
Join Date: Aug 2006
Location: Grenoble, France
Posts: 17
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to vincen Send a message via AIM to vincen Send a message via MSN to vincen Send a message via Yahoo to vincen Send a message via Skype™ to vincen
 
Default

I got finally it right that way

:0:
* ^From:.*@macfr.com
${HOME}/Maildir/.INBOX.Macfr/

Thanks

Vincn
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
iptables rules for ftp flourishing Installation/Configuration 5 14th April 2008 22:18
Drupal and Apache Rewrite Rules andre Server Operation 10 4th May 2006 22:04
No incoming mails! mlanglois Installation/Configuration 4 24th January 2006 12:41
How to send mails using php mail function outside domain pankaj Technical 1 19th December 2005 23:09
How to retrive mails from 2nd server dstme Server Operation 3 1st December 2005 19:28


All times are GMT +2. The time now is 16:41.


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