1

Topic: Holiday mode

Hi,

I'm using iRedMail and wanted to ask a question, how to do holiday mode?

----

Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.

2

Re: Holiday mode

Are you mean vacation setting?

you can setting vacation in RoundCube.

3

Re: Holiday mode

shake wrote:

Are you mean vacation setting?

you can setting vacation in RoundCube.

thank You!
found it smile

4

Re: Holiday mode

Ulkiukas wrote:
shake wrote:

Are you mean vacation setting?

you can setting vacation in RoundCube.

thank You!
found it smile


Would you tell me where it is please?  I don't see it.

5

Re: Holiday mode

iredmailnerd wrote:
Ulkiukas wrote:
shake wrote:

Are you mean vacation setting?

you can setting vacation in RoundCube.

thank You!
found it smile


Would you tell me where it is please?  I don't see it.

Post's attachments

iredmail_30_1.png
iredmail_30_1.png 13.56 kb, file has never been downloaded. 

You don't have the permssions to download the attachments of this post.

6

Re: Holiday mode

shake wrote:
iredmailnerd wrote:
Ulkiukas wrote:

thank You!
found it smile


Would you tell me where it is please?  I don't see it.


Thanks Shake,

I did discover it when I loaded an old snapshot of my iREdMail test machine running version 0.2.1 of Roundcube.  However, I'm running iRedMail on a production server now and I manually upgraded Roundcube to version 0.3.1 a couple of months ago.  Is it possible to have the same sieverules plugin that was running on version 0.2.1 run on version 0.3.1?

Thanks again for your help.

7

Re: Holiday mode

http://www.iredmail.org/wiki/index.php? … anagesieve

hope can help you.

8 (edited by iredmailnerd 2010-06-21 23:12:49)

Re: Holiday mode

Thanks for those instructions.  I'm getting an error that reads, "Unable to connect to managesieve server."  Any ideas on what could be wrong?

My managesieve server is running:

netstat -lntp
tcp        0      0 127.0.0.1:2000          0.0.0.0:*               LISTEN      5156/managesieve-login


ps -elfww | grep managesieve
4 S dovecot   9281  9278  0  80   0 -   947 ep_pol 10:47 ?        00:00:00 managesieve-login
4 S dovecot   9283  9278  0  80   0 -   948 ep_pol 10:47 ?        00:00:00 managesieve-login
4 S dovecot  13356  9278  0  80   0 -   947 ep_pol 11:08 ?        00:00:00 managesieve-login

9

Re: Holiday mode

check  plugins/managesieve/config.inc.php

post your config files.

10

Re: Holiday mode

shake wrote:

check  plugins/managesieve/config.inc.php

post your config files.


Here it is:


root@mail0:/etc/postfix# cat /usr/share/apache2/roundcubemail/plugins/managesieve/config.inc.php
<?php

// managesieve server port
$rcmail_config['managesieve_port'] = 2000;

// managesieve server address, default is localhost.
// Use %h variable as replacement for user's IMAP hostname
$rcmail_config['managesieve_host'] = 'localhost';

// use or not TLS for managesieve server connection
// it's because I've problems with TLS and dovecot's managesieve plugin
// and it's not needed on localhost
$rcmail_config['managesieve_usetls'] = false;

// default contents of filters script (eg. default spam filter)
$rcmail_config['managesieve_default'] = '/var/vmail/sieve/dovecot.sieve';

// Sieve RFC says that we should use UTF-8 endcoding for mailbox names,
// but some implementations does not covert UTF-8 to modified UTF-7.
// Defaults to UTF7-IMAP for backward compatybility
$rcmail_config['managesieve_mbox_encoding'] = 'UTF7-IMAP';

// I need this because my dovecot (with listescape plugin) uses
// ':' delimiter, but creates folders with dot delimiter
$rcmail_config['managesieve_replace_delimiter'] = '';

// disabled sieve extensions (body, copy, date, editheader, encoded-character,
// envelope, environment, ereject, fileinto, ihave, imap4flags, index,
// mailbox, mboxmetadata, regex, reject, relational, servermetadata,
// spamtest, spamtestplus, subaddress, vacation, variables, virustest, etc.
// Note: not all extensions are implemented
$rcmail_config['managesieve_disabled_extensions'] = array();

?>


When I telnet to port 2000, I get the following:

root@mail0:/etc/postfix# telnet localhost 2000
Trying 127.0.0.1...
Connected to mail0.mydomain.local.
Escape character is '^]'.
"IMPLEMENTATION" "dovecot"
"SIEVE" "fileinto reject envelope encoded-character vacation subaddress comparator-i;ascii-numeric relational regex imap4flags copy include body variables enotify environment mailbox date"
"SASL" "PLAIN LOGIN"
"STARTTLS"
"NOTIFY" "mailto"
"VERSION" "1.0"
OK "Dovecot ready."


However, when I go to the Filters tab in Roundcube, I see the following in the /var/log/dovecot.log:

Jun 21 22:00:46 managesieve-login: Info: Disconnected (auth failed, 1 attempts): user=<me@mydomain.local>, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, secured

Thanks again!

11

Re: Holiday mode

change
$rcmail_config['managesieve_host'] = 'localhost';

to

$rcmail_config['managesieve_host'] = "127.0.0.1";

12

Re: Holiday mode

shake wrote:

change
$rcmail_config['managesieve_host'] = 'localhost';

to

$rcmail_config['managesieve_host'] = "127.0.0.1";


I still got the same error after making the change.  I even logged out, restarted Apache and logged back in and still got the same error.

13 (edited by iredmailnerd 2010-06-23 11:25:53)

Re: Holiday mode

I found out what the cause of the problem is.

The managesieve plugin (or something else) is requiring that I have the enabledservice attribute service named "sievesecured" enabled.  For some reason, the enabledservice attribute of "managesievesecured" does not work.

I discovered this by accident.  I created a new user earlier today and then, while doing some troubleshooting on this issue in the dovecot.log, I saw that the user had successfully performed a managesieve-login.  I then looked at the differences between the new user's attributes and mine and saw the differences.  The "sieve" and "sievesecured" attributes were on the new user's account but not on mine.

Do you know what file I can change in order to make it so it looks for the enabledservice attribute of "managesecured" instead of or as well as "sievesecured?"  I don't want to have to update all of the accounts in the directory if I don't have to.

14

Re: Holiday mode

This is mentiond in upgrade tutorial, you didn't upgrade iRedMail by following upgrade tutorial.
http://iredmail.org/wiki/index.php?titl … ing_values

15

Re: Holiday mode

ZhangHuangbin wrote:

This is mentiond in upgrade tutorial, you didn't upgrade iRedMail by following upgrade tutorial.
http://iredmail.org/wiki/index.php?titl … ing_values

Thanks for the quick reply!

I didn't upgrade iRedMail to version 0.6.0 at all.  I'm still using 0.5.1 and I upgraded Roundcube to version 0.3.1 back in April.

Do you know where I can change the code to make Dovecot look for managesievesecured instead of sievesecured?  If that's not a good idea because it might break things, is it safe to use the "updateLDAPValues_051_to_060.py" script to update the user's attributes?

16

Re: Holiday mode

iredmailnerd wrote:
ZhangHuangbin wrote:

This is mentiond in upgrade tutorial, you didn't upgrade iRedMail by following upgrade tutorial.
http://iredmail.org/wiki/index.php?titl … ing_values

Thanks for the quick reply!

I didn't upgrade iRedMail to version 0.6.0 at all.  I'm still using 0.5.1 and I upgraded Roundcube to version 0.3.1 back in April.

Do you know where I can change the code to make Dovecot look for managesievesecured instead of sievesecured?  If that's not a good idea because it might break things, is it safe to use the "updateLDAPValues_051_to_060.py" script to update the user's attributes?


I took a look at the updateLDAPValues_051_to_060.py and just ran it.  Thank you VERY much for your work!!