Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > ISPConfig 3 > Developers' Forum

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 13th November 2012, 11:18
choongii choongii is offline
Junior Member
 
Join Date: Oct 2012
Posts: 8
Thanks: 2
Thanked 4 Times in 4 Posts
Default Using ISPConfig with Cyrus (or: Cyrus support in ISPConfig)

Hello,

When using ISPConfig with Cyrus, auto responders and custom rules are not available. However, the options are still visible, which is confusing. I'd like to contribute a patch to resolve this issue, but I am unsure what would be the best solution. I am hoping to receive some feedback on this issue in this thread, so the patch can really contribute something worthwhile which is aligned with the software philosophy of the ISPConfig project.

At the moment I guess there are two possible roads to take:

1) Add checkboxes to enable/disable filters and auto responders per mailserver;

2) Add complete support for cyrus, making it possible to select the Cyrus mailserver as imapd. The aforementioned options can be hidden when Cyrus is selected.

As I'm unsure which path would be the best, and I'm not yet able to oversee the implications of such a change within the project, I'm hoping to receive some feedback from the developers/community so I can define the solution clearly and eventually contribute it.

Thanks for your time,
Choong

Last edited by choongii; 13th November 2012 at 11:20.
Reply With Quote
Sponsored Links
  #2  
Old 13th November 2012, 11:28
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 36,421
Thanks: 834
Thanked 5,501 Times in 4,330 Posts
Default

Adding support for a third imap daemon will require more time for testing and maintenance in future, so before we decide if we want to support cyrus imap in ispconfig we should discuss what the benefits over the existing imap implementations are. Why do you want to implement Cyrus support and whyich benefits does cyrus has that are not available in dovecot imap and courier?
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #3  
Old 13th November 2012, 11:49
choongii choongii is offline
Junior Member
 
Join Date: Oct 2012
Posts: 8
Thanks: 2
Thanked 4 Times in 4 Posts
Default

Hello Till, thanks for your very quick response!

In my case, we prefer Cyrus because it scales better than either dovecot or courier do, and adheres more strictly to RFC's. But in the end, the reasons for choosing cyrus over dovecot/courier may vary per situation.

I understand the implications such a change would have on future testing/maintenance work, so I guess the big question is: is it worth the (large) effort? We can measure this by the number of people sending in feature requests for cyrus support. I did a search for "cyrus" in the feature request bugtracker, and I get only one result which has two votes, so it doesn't appear to be worth the effort

Regardless, we are still able to use cyrus with ISPConfig, but the issue we are having, is that we don't use mail filtering or autoresponders. However, these options cannot be turned off and are always visible to resellers/clients, which results in unnecessary load on our support desk because people get confused.

In light of the above, how would you feel about a patch which makes it possible to turn filtering and autoresponders on/off by using a checkbox per mailserver? We could set them to 'enabled' by default so the current behaviour is not broken. Then we could hide or show the options for filtering and autoresponders depending on these checkboxes.

Thanks again for your time,
Choong
Reply With Quote
The Following User Says Thank You to choongii For This Useful Post:
till (13th November 2012)
  #4  
Old 13th November 2012, 11:59
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 36,421
Thanks: 834
Thanked 5,501 Times in 4,330 Posts
Default

Quote:
In light of the above, how would you feel about a patch which makes it possible to turn filtering and autoresponders on/off by using a checkbox per mailserver? We could set them to 'enabled' by default so the current behaviour is not broken. Then we could hide or show the options for filtering and autoresponders depending on these checkboxes.
This seems to be a good option in my opinion, the checkbox to enable autoresponder and filtering can be added to e.g. System > server config > mail if it shall be configurable per mail server or in System > Interface config > Mail if it shall be configurable for all servers that belong to this ispconfig installation. I guess the second option might be better. The first option might confuse users as we can not hide the filtering and autoresponder tabs until they saved the new mailbox as we dont know the target mailserver before the address is saved. If more users get interested in cyrus support in future, then we can still develop cyrus support then.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
The Following User Says Thank You to till For This Useful Post:
choongii (21st November 2012)
  #5  
Old 21st November 2012, 16:38
choongii choongii is offline
Junior Member
 
Join Date: Oct 2012
Posts: 8
Thanks: 2
Thanked 4 Times in 4 Posts
Default

Hi Till,

Thanks again for your reply. The per-installation option does seem the most logical one indeed.

Making it configurable per mailserver could work, if we can somehow (javascript?) dynamically hide tabs depending on the selected domain. We could show or hide the tabs by default, depending on the user's default mailserver. It is more complex than the first option.

Could you let me know, which option would be best for the ISPConfig project? I will then start the development work.

Thanks,
Choong
Reply With Quote
The Following User Says Thank You to choongii For This Useful Post:
pityusasda2773 (19th January 2013)
  #6  
Old 29th November 2012, 09:58
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 36,421
Thanks: 834
Thanked 5,501 Times in 4,330 Posts
Default

I'am sorry for the late reply, totally missed this post.

I would prefer if this option could be set for the whole installation under System > Interface config as this will be the cleaner approach and not per server.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #7  
Old 12th January 2013, 18:56
choongii choongii is offline
Junior Member
 
Join Date: Oct 2012
Posts: 8
Thanks: 2
Thanked 4 Times in 4 Posts
Default

Hi Till,

I've finished up the patch. It adds 3 checkboxes to the interface configuration, to enable the tabs Autoresponder, Mail Filter and Custom Filters respectively. I have two questions at this point:

1. I've tried setting the checkbox to checked by default, but it doesn't appear to work.

2. I'd like to commit the code. What's the best way to do that?

I've attached the patch to this post, it is written against version 3.0.4.5.

Thanks in advance for your time again.

Choong
Attached Files
File Type: txt ispconfig_3045_2.txt (11.0 KB, 86 views)
Reply With Quote
  #8  
Old 28th January 2013, 09:18
choongii choongii is offline
Junior Member
 
Join Date: Oct 2012
Posts: 8
Thanks: 2
Thanked 4 Times in 4 Posts
Default

Hi till,

I was just wondering, if you have had time to look into this yet

Thanks in advance,
Choong
Reply With Quote
  #9  
Old 28th January 2013, 19:36
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 36,421
Thanks: 834
Thanked 5,501 Times in 4,330 Posts
Default

I'am sorry, I missed the post.

The code looks fine, just the following if section seems to be wrong:

if ($global_config['mail']['mailbox_show_custom_rules_tab'] === 'y') {
if($_SESSION["s"]["user"]["typ"] == 'admin') {

I guess it should be:

if($_SESSION["s"]["user"]["typ"] == 'admin' || $global_config['mail']['mailbox_show_custom_rules_tab'] === 'y') {

Quote:
1. I've tried setting the checkbox to checked by default, but it doesn't appear to work.
The defaults for these fields get applied during installation and are stored in the file install/tpl/system.ini

Quote:
2. I'd like to commit the code. What's the best way to do that?
Do you have a svn account for the ispconfig svn server? If not, please send a email to dev [at] ispconfig [dot] org with your forum username and if available your sourceforge.net username and request a svn login.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
The Following User Says Thank You to till For This Useful Post:
choongii (28th January 2013)
  #10  
Old 6th February 2013, 06:00
markc markc is offline
Member
 
Join Date: Dec 2012
Posts: 57
Thanks: 6
Thanked 9 Times in 9 Posts
Default

Just a FWIW but one compelling reason to include Cyrus, either partially or fully, is that the Kolab server uses it by default and I am very keen to offer Kolab services along side of ISPConfig. Perhaps even eventually provide some ISPConifg customizations that manage Kolab availability to clients. Kolab also uses Roundcube.

OT but I also want to do the same with ownClound and Concrete5.
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 3 - MultiServer Setup - With Dedicated Control Panel - How? SuperJC Installation/Configuration 4 16th October 2012 21:03
No dns zone files created? sjau Installation/Configuration 7 13th March 2012 14:15
PHP warnings after upgrade to ISP config 3.03 stevegjacobs Installation/Configuration 5 30th October 2010 15:31
The classic MySQL connect error swggy Installation/Configuration 13 10th April 2008 22:45
Another ERROR: The PHP binary coming with ISPConfig does not work properly on your sy hoopsx3 Installation/Configuration 2 29th January 2007 08:56


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


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