Read the quota_exceeded_message from a file
Greetings,
I've been trying to have quota_exceeded_message read from a file according to https://wiki2.dovecot.org/Quota/Configuration#Custom_Quota_Exceeded_Message ; I'm running dovecot 2.2.10 on Centos 7. If I set text right to the equal sign, it works fine, but I'd rather load it from a file as I need a new line and %n and \n and simple \ followed by a newline are not working and would understandably crash the processes if malformed.
nothing special about my setting, the file is located in the /etc/dovecot directory but separate from the config files (not in the conf.d directory), with a world readable permission.
Regards,
M.
Hello,
I've tried that (i.e. the < redirect) as described in the wiki, tried with different spaces , and it didn't work, thus the email to the mailing list. the text there is simply absent in the email that is sent out. on a side note, I've tried to use file in /tmp/test and the behavior is funny, I get:
doveconf: Fatal: Error in configuration file /etc/dovecot/conf.d/90-quota.conf line 96: quota_exceeded_message: Can't open file /tmp/test: No such file or directory
but If I place it under / or under /etc/dovecot , the daemon runs fine, yet as described, the content is not included in the message sent out!
M.
On Thu, 25 Oct 2018 at 00:13, Aki Tuomi <aki.tuomi@open-xchange.com> wrote:
On 24 October 2018 at 22:54 "Maysara A. Abdulhaq" < maysara.abdulhaq@gmail.com> wrote:
Greetings,
I've been trying to have quota_exceeded_message read from a file according to https://wiki2.dovecot.org/Quota/Configuration#Custom_Quota_Exceeded_Message ; I'm running dovecot 2.2.10 on Centos 7. If I set text right to the equal sign, it works fine, but I'd rather load it from a file as I need a new line and %n and \n and simple \ followed by a newline are not working and would understandably crash the processes if malformed.
nothing special about my setting, the file is located in the /etc/dovecot directory but separate from the config files (not in the conf.d directory), with a world readable permission.
Regards,
M.
Try quota_exceeded_message =</path/to/file
Aki Tuomi
Am 25.10.2018 um 01:41 schrieb Maysara A. Abdulhaq:
note, I've tried to use file in /tmp/test and the behavior is funny, I get:
doveconf: Fatal: Error in configuration file /etc/dovecot/conf.d/90-quota.conf line 96: quota_exceeded_message: Can't open file /tmp/test: No such file or directory
That's not surprising as for systemd controlled services the tmp is not /tmp but a private tmp inside /var/tmp/systemd-private*
Alexander
On Thu, 25 Oct 2018 07:25:33 +0200 Alexander Dalloz <ad+lists@uni-x.org> wrote:
That's not surprising as for systemd controlled services the tmp is not /tmp but a private tmp inside /var/tmp/systemd-private*
This is not generally true but depends on the service file and the options used there.
-- openSUSE - SUSE Linux is my linux openSUSE is good for you www.opensuse.org
Thank you for the responses, and I apologize for /tmp issue diverging from the initial query.
Can someone confirm that the:
quota_exceeded_message =</path/to/file
configuration syntax works for you? If it does then I assume the issue is on my side, or if it's a bug or so.
On Thu, 25 Oct 2018 at 14:36, Marcus Rückert <darix@nordisch.org> wrote:
On Thu, 25 Oct 2018 07:25:33 +0200 Alexander Dalloz <ad+lists@uni-x.org> wrote:
That's not surprising as for systemd controlled services the tmp is not /tmp but a private tmp inside /var/tmp/systemd-private*
This is not generally true but depends on the service file and the options used there.
-- openSUSE - SUSE Linux is my linux openSUSE is good for you www.opensuse.org
It does work for me. So,
What did you do? What did you expect to happen? What happened?
Aki
On 27.10.2018 14.59, Maysara A. Abdulhaq wrote:
Thank you for the responses, and I apologize for /tmp issue diverging from the initial query.
Can someone confirm that the:
quota_exceeded_message =</path/to/file
configuration syntax works for you? If it does then I assume the issue is on my side, or if it's a bug or so.
On Thu, 25 Oct 2018 at 14:36, Marcus Rückert <darix@nordisch.org <mailto:darix@nordisch.org>> wrote:
On Thu, 25 Oct 2018 07:25:33 +0200 Alexander Dalloz <ad+lists@uni-x.org <mailto:ad%2Blists@uni-x.org>> wrote: > That's not surprising as for systemd controlled services the tmp is > not /tmp but a private tmp inside /var/tmp/systemd-private* This is not generally true but depends on the service file and the options used there. -- openSUSE - SUSE Linux is my linux openSUSE is good for you www.opensuse.org <http://www.opensuse.org>
participants (4)
-
Aki Tuomi
-
Alexander Dalloz
-
Marcus Rückert
-
Maysara A. Abdulhaq