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. -------------- next part -------------- An HTML attachment was scrubbed... URL: <https://dovecot.org/pipermail/dovecot/attachments/20181024/21475d8b/attachment.html>
<!doctype html> <html> <head> <meta charset="UTF-8"> </head> <body> <div> <br> </div> <blockquote type="cite"> <div> On 24 October 2018 at 22:54 "Maysara A. Abdulhaq" < <a href="mailto:maysara.abdulhaq@gmail.com">maysara.abdulhaq@gmail.com</a>> wrote: </div> <div> <br> </div> <div> <br> </div> <div> Greetings, </div> <div> <br> </div> <div> I've been trying to have quota_exceeded_message read from a file according </div> <div> to </div> <div> <a href="https://wiki2.dovecot.org/Quota/Configuration#Custom_Quota_Exceeded_Message" rel="noopener" target="_blank">https://wiki2.dovecot.org/Quota/Configuration#Custom_Quota_Exceeded_Message</a> </div> <div> ; I'm running dovecot 2.2.10 on Centos 7. If I set text right to the equal </div> <div> sign, it works fine, but I'd rather load it from a file as I need a new </div> <div> line and %n and \n and simple \ followed by a newline are not working and </div> <div> would understandably crash the processes if malformed. </div> <div> <br> </div> <div> nothing special about my setting, the file is located in the /etc/dovecot </div> <div> directory but separate from the config files (not in the conf.d directory), </div> <div> with a world readable permission. </div> <div> <br> </div> <div> Regards, </div> <div> <br> </div> <div> M. </div> </blockquote> <div> <br> </div> <div> <br> </div> <div> Try quota_exceeded_message =</path/to/file </div> <div> <br> </div> <div class="io-ox-signature"> --- <br>Aki Tuomi </div> </body> </html>
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 at open-xchange.com> wrote:> > On 24 October 2018 at 22:54 "Maysara A. Abdulhaq" < > maysara.abdulhaq at 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 >-------------- next part -------------- An HTML attachment was scrubbed... URL: <https://dovecot.org/pipermail/dovecot/attachments/20181025/f28144d8/attachment.html>