1

Topic: Errors in the rsyslog after the update

==== REQUIRED BASIC INFO OF YOUR IREDMAIL SERVER ====
- iRedMail version (check /etc/iredmail-release): 1.7.4
- Deployed with iRedMail Easy or the downloadable installer?  Downloadable installer
- Linux/BSD distribution name and version:  Debiqn 12
- Store mail accounts in which backend (LDAP/MySQL/PGSQL):  LDAP
- Web server (Apache or Nginx): NGINX
- Manage mail accounts with iRedAdmin-Pro?   No
- [IMPORTANT] Related original log or error message is required if you're experiencing an issue.
====
Hi!
The iRedMail v1 update has been completed.3.1 (Debian 9) on iRedMail 1.7.4 (Debian 12) .
I ran into problems that I can't solve.
1. Errors in rsyslog:

# rsyslogd -N1
rsyslogd: version 8.2302.0, config validation run (level 1), master config /etc/rsyslog.conf
rsyslogd:  Could not find template 0 'CustomFormat' - action disabled [v8.2302.0 try https://www.rsyslog.com/e/3003 ]
rsyslogd: error during parsing file /etc/rsyslog.d/1-iredmail-dovecot.conf, on or before line 3: errors occurred in file '/etc/rsyslog.d/1-iredmail-dovecot.conf' around line 3 [v8.2302.0 try https://www.rsyslog.com/e/2207 ]
rsyslogd:  Could not find template 0 'CustomFormat' - action disabled [v8.2302.0 try https://www.rsyslog.com/e/3003 ]
rsyslogd: error during parsing file /etc/rsyslog.d/1-iredmail-dovecot.conf, on or before line 9: errors occurred in file '/etc/rsyslog.d/1-iredmail-dovecot.conf' around line 9 [v8.2302.0 try https://www.rsyslog.com/e/2207 ]
rsyslogd:  Could not find template 0 'CustomFormat' - action disabled [v8.2302.0 try https://www.rsyslog.com/e/3003 ]
rsyslogd: error during parsing file /etc/rsyslog.d/1-iredmail-dovecot.conf, on or before line 15: errors occurred in file '/etc/rsyslog.d/1-iredmail-dovecot.conf' around line 15 [v8.2302.0 try https://www.rsyslog.com/e/2207 ]
rsyslogd:  Could not find template 0 'CustomFormat' - action disabled [v8.2302.0 try https://www.rsyslog.com/e/3003 ]
rsyslogd: error during parsing file /etc/rsyslog.d/1-iredmail-dovecot.conf, on or before line 21: errors occurred in file '/etc/rsyslog.d/1-iredmail-dovecot.conf' around line 21 [v8.2302.0 try https://www.rsyslog.com/e/2207 ]
rsyslogd:  Could not find template 0 'CustomFormat' - action disabled [v8.2302.0 try https://www.rsyslog.com/e/3003 ]
rsyslogd: error during parsing file /etc/rsyslog.d/1-iredmail-dovecot.conf, on or before line 27: errors occurred in file '/etc/rsyslog.d/1-iredmail-dovecot.conf' around line 27 [v8.2302.0 try https://www.rsyslog.com/e/2207 ]
rsyslogd:  Could not find template 0 'CustomFormat' - action disabled [v8.2302.0 try https://www.rsyslog.com/e/3003 ]
rsyslogd: error during parsing file /etc/rsyslog.d/1-iredmail-dovecot.conf, on or before line 33: errors occurred in file '/etc/rsyslog.d/1-iredmail-dovecot.conf' around line 33 [v8.2302.0 try https://www.rsyslog.com/e/2207 ]
rsyslogd:  Could not find template 0 'CustomFormat' - action disabled [v8.2302.0 try https://www.rsyslog.com/e/3003 ]
rsyslogd: error during parsing file /etc/rsyslog.d/1-iredmail-fail2ban.conf, on or before line 1: errors occurred in file '/etc/rsyslog.d/1-iredmail-fail2ban.conf' around line 1 [v8.2302.0 try https://www.rsyslog.com/e/2207 ]
rsyslogd:  Could not find template 0 'CustomFormat' - action disabled [v8.2302.0 try https://www.rsyslog.com/e/3003 ]
rsyslogd: error during parsing file /etc/rsyslog.d/1-iredmail-iredapd.conf, on or before line 15: errors occurred in file '/etc/rsyslog.d/1-iredmail-iredapd.conf' around line 15 [v8.2302.0 try https://www.rsyslog.com/e/2207 ]
rsyslogd:  Could not find template 0 'CustomFormat' - action disabled [v8.2302.0 try https://www.rsyslog.com/e/3003 ]
rsyslogd: error during parsing file /etc/rsyslog.d/1-iredmail-mlmmjadmin.conf, on or before line 15: errors occurred in file '/etc/rsyslog.d/1-iredmail-mlmmjadmin.conf' around line 15 [v8.2302.0 try https://www.rsyslog.com/e/2207 ]
rsyslogd:  Could not find template 0 'CustomFormat' - action disabled [v8.2302.0 try https://www.rsyslog.com/e/3003 ]
rsyslogd: error during parsing file /etc/rsyslog.d/1-iredmail-openldap.conf, on or before line 5: errors occurred in file '/etc/rsyslog.d/1-iredmail-openldap.conf' around line 5 [v8.2302.0 try https://www.rsyslog.com/e/2207 ]
rsyslogd:  Could not find template 0 'CustomFormat' - action disabled [v8.2302.0 try https://www.rsyslog.com/e/3003 ]
rsyslogd: error during parsing file /etc/rsyslog.d/1-iredmail-phpfpm.conf, on or before line 5: errors occurred in file '/etc/rsyslog.d/1-iredmail-phpfpm.conf' around line 5 [v8.2302.0 try https://www.rsyslog.com/e/2207 ]

2. The sharing mail folder stopped working
ACL plugins in dovecot and roundcube are installed.
Some of the old sharing access rights remained, but more were gone.
When user1 grants new shared to his folder to user2, an entry appears in the share_folder table in the iredadmin database, but the folder does not appear in user2.

----

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

2

Re: Errors in the rsyslog after the update

imak wrote:

rsyslogd: error during parsing file /etc/rsyslog.d/1-iredmail-dovecot.conf, on or before line 3: errors occurred in file '/etc/rsyslog.d/1-iredmail-dovecot.conf' around line 3

Try to re-create /etc/rsyslog.d/1-iredmail-dovecot.conf based on template offered in iRedMail github repo:
https://github.com/iredmail/iRedMail/bl … vecot.conf

imak wrote:

2. The sharing mail folder stopped working

Try to turn on debug mode in Dovecot and fix it:
https://docs.iredmail.org/debug.dovecot.html

No idea how you updated iRedMail server, this issue is not expected. You may need to compare your Dovecot config files to the ones offered in iRedMail github repo:
https://github.com/iredmail/iRedMail/tr … es/dovecot

3

Re: Errors in the rsyslog after the update

Thanks for the quick reply.
Replaced the contents of the 1-iredmail-dovecot.conf file

# cat -n  1-iredmail-dovecot.conf
     1    # Debug
     2    if $syslogfacility-text == 'PH_IREDMAIL_SYSLOG_FACILITY' and ($msg contains ": Debug:") then -PH_DOVECOT_LOG_FILE
     3    & stop
     4   
     5    # sieve and LMTP
     6    if $syslogfacility-text == 'PH_IREDMAIL_SYSLOG_FACILITY' and ($msg contains "lmtp(" or $msg contains "lda(") then -PH_DOVECOT_SYSLOG_FILE_LDA
     7    & stop
     8   
     9    # IMAP
    10    if $syslogfacility-text == 'PH_IREDMAIL_SYSLOG_FACILITY' and ($msg contains "imap(" or $msg contains "imap-login:") then -PH_DOVECOT_SYSLOG_FILE_IMAP
    11    & stop
    12   
    13    # POP3
    14    if $syslogfacility-text == 'PH_IREDMAIL_SYSLOG_FACILITY' and ($msg contains "pop3(" or $msg contains "pop3-login:") then -PH_DOVECOT_SYSLOG_FILE_POP3
    15    & stop
    16   
    17    # managesieve
    18    if $syslogfacility-text == 'PH_IREDMAIL_SYSLOG_FACILITY' and ($msg contains "managesieve(" or $msg contains "managesieve-login:") then -PH_DOVECOT_SYSLOG_FILE_SIEVE
    19    & stop
    20   
    21    # All other Dovecot log
    22    if $syslogfacility-text == 'PH_IREDMAIL_SYSLOG_FACILITY' and $programname startswith "dovecot" then -PH_DOVECOT_LOG_FILE
    23    & stop

I get the following errors on the test:

# rsyslogd -N1
rsyslogd: version 8.2302.0, config validation run (level 1), master config /etc/rsyslog.conf
rsyslogd: error during parsing file /etc/rsyslog.d/1-iredmail-dovecot.conf, on or before line 2: errors occurred in file '/etc/rsyslog.d/1-iredmail-dovecot.conf' around line 2 [v8.2302.0 try https://www.rsyslog.com/e/2207 ]
rsyslogd: error during parsing file /etc/rsyslog.d/1-iredmail-dovecot.conf, on or before line 6: errors occurred in file '/etc/rsyslog.d/1-iredmail-dovecot.conf' around line 6 [v8.2302.0 try https://www.rsyslog.com/e/2207 ]
rsyslogd: error during parsing file /etc/rsyslog.d/1-iredmail-dovecot.conf, on or before line 10: errors occurred in file '/etc/rsyslog.d/1-iredmail-dovecot.conf' around line 10 [v8.2302.0 try https://www.rsyslog.com/e/2207 ]
rsyslogd: error during parsing file /etc/rsyslog.d/1-iredmail-dovecot.conf, on or before line 14: errors occurred in file '/etc/rsyslog.d/1-iredmail-dovecot.conf' around line 14 [v8.2302.0 try https://www.rsyslog.com/e/2207 ]
rsyslogd: error during parsing file /etc/rsyslog.d/1-iredmail-dovecot.conf, on or before line 18: errors occurred in file '/etc/rsyslog.d/1-iredmail-dovecot.conf' around line 18 [v8.2302.0 try https://www.rsyslog.com/e/2207 ]
rsyslogd: error during parsing file /etc/rsyslog.d/1-iredmail-dovecot.conf, on or before line 22: errors occurred in file '/etc/rsyslog.d/1-iredmail-dovecot.conf' around line 22 [v8.2302.0 try https://www.rsyslog.com/e/2207 ]