Koozali.org: home of the SME Server

Enabling vacation in horde throws error

Offline Michail Pappas

  • *
  • 342
  • +1/-0
Enabling vacation in horde throws error
« on: March 11, 2024, 01:25:36 PM »
I'm trying to enable the vacation feature in webmail/horde. This is a mostly plain SME 10 production box.

When in horde I'm selecting to save and enable the vacation feature, a message pops up in red in the lower right part of the screen that states script not activated. There was an error activating the script. The driver said: connection refused.

Offline Jean-Philippe Pialasse

  • *
  • 2,765
  • +11/-0
  • aka Unnilennium
    • http://smeserver.pialasse.com
Re: Enabling vacation in horde throws error
« Reply #1 on: March 11, 2024, 03:15:42 PM »
I do not think this is configured as base.
We might more rely on smeserver-vacation.
Looking at https://www.horde.org/apps/vacation/ it seems quite flexible and hence need some admin setting to let know horde what software to use. 
see also https://www.horde.org/apps/vacation/docs/INSTALL

https://manpages.ubuntu.com/manpages/bionic/man1/dot-forward.1qmail.html

it might also meed some workaround on sme server side to check .forward file

One other way, which is how works roundcube, could be to use the smeserver-dovecot-extras with sieve

Offline Michail Pappas

  • *
  • 342
  • +1/-0
Re: Enabling vacation in horde throws error
« Reply #2 on: March 12, 2024, 09:11:25 AM »
I see. I've installed smeserver-vacation (https://wiki.koozali.org/Vacation). It does seem to be able to handle text with Greek characters so far. Installed version is smeserver-vacation-1.1-35.el7.sme.noarch

This seems to be working nicely. I've (as an admin) enabled it for the 15 needed mailboxes, however there is a minor problem. From the looks of it, automatic replies do not get DKIM-signed for some reason. Thus, I expect that replies might end to spam folders. Can I handle this somehow? Should I raise a bug report?

BTW, can you also move this to the SME 10.x contribs forum section, since it seems the issues at hand related to the contrib? (Done, thanks ReetP).

« Last Edit: March 12, 2024, 01:11:46 PM by Michail Pappas »

Offline ReetP

  • *
  • 3,740
  • +5/-0
Re: Enabling vacation in horde throws error
« Reply #3 on: March 12, 2024, 06:48:58 PM »
I believe DKIM on SME is handled by s/qpsmtpd which then hands it off to qmail for sending.

To do this would probably need quite a bit of serious hoop jumping, first to compile DKIM support into qmail (I don't it has it) and possibly other packages, set it up to use the existing DKIM keys, and then to modify the vacation code to handle it here

/usr/local/bin/vacation

Some guides:

https://notes.sagredo.eu/en/qmail-notes-185/configuring-dkim-for-qmail-92.html
https://notes.sagredo.eu/en/qmail-notes-185/patching-qmail-82.html#dkim

...
1. Read the Manual
2. Read the Wiki
3. Don't ask for support on Unsupported versions of software
4. I have a job, wife, and kids and do this in my spare time. If you want something fixed, please help.

Bugs are easier than you think: http://wiki.contribs.org/Bugzilla_Help

If you love SME and don't want to lose it, join in: http://wiki.contribs.org/Koozali_Foundation

Offline Jean-Philippe Pialasse

  • *
  • 2,765
  • +11/-0
  • aka Unnilennium
    • http://smeserver.pialasse.com
Re: Enabling vacation in horde throws error
« Reply #4 on: March 12, 2024, 07:27:06 PM »
i would not go the direction of patching qmail, i would rather go the way patching the contrib to not use qmail to send but redirect to qpsmtpd of possible. need to bug this.

Offline bunkobugsy

  • *
  • 280
  • +4/-0

Offline bunkobugsy

  • *
  • 280
  • +4/-0
Re: Enabling vacation in horde throws error
« Reply #6 on: March 12, 2024, 08:15:59 PM »
One other way, which is how works roundcube, could be to use the smeserver-dovecot-extras with sieve

https://bugs.koozali.org/show_bug.cgi?id=10941

Offline ReetP

  • *
  • 3,740
  • +5/-0
Re: Enabling vacation in horde throws error
« Reply #7 on: March 12, 2024, 08:19:28 PM »
Thanks Zsolt.

No idea how to do this beyond what I read as I have no use for this myself. I have enough to deal without multiple bounces from spam addresses, outgoing only mail addresses, mailing lists etc.

You can see $mailprog defined in the vacation script.
...
1. Read the Manual
2. Read the Wiki
3. Don't ask for support on Unsupported versions of software
4. I have a job, wife, and kids and do this in my spare time. If you want something fixed, please help.

Bugs are easier than you think: http://wiki.contribs.org/Bugzilla_Help

If you love SME and don't want to lose it, join in: http://wiki.contribs.org/Koozali_Foundation

Offline brianr

  • *
  • 988
  • +2/-0
Brian j Read
(retired, for a second time, still got 2 installations though)
The instrument I am playing is my favourite Melodeon.
.........

Offline Jean-Philippe Pialasse

  • *
  • 2,765
  • +11/-0
  • aka Unnilennium
    • http://smeserver.pialasse.com
Re: Enabling vacation in horde throws error
« Reply #9 on: March 13, 2024, 05:28:42 AM »
in the local/bin/vacation script there is a line to define the sendmail program to use.  by default it is datemail.

one way around could be to use the same wrapper i used for smeserver-sendmail-wrapper