1

Topic: Every 2 hours message gets sent to mlmmj

==== REQUIRED BASIC INFO OF YOUR IREDMAIL SERVER ====
- iRedMail version (check /etc/iredmail-release): 1.6.5
- Deployed with iRedMail Easy or the downloadable installer? downloadable
- Linux/BSD distribution name and version: ubuntu 22.04
- Store mail accounts in which backend (LDAP/MySQL/PGSQL):  mysql
- 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.
====

Every 2 hours I see something getting delivered to mlmmj@mail.mymailserver.net. It creates an email in /var/mail/mlmmj and the content just says find: =E2=80=98/var/vmail/mlmmj=E2=80=99: Permission denied

Is there a way to stop this or do I need to disable something? I do not use mlmmj. Below is the log entry:

Oct  6 20:10:01 mail postfix/pickup[594977]: 4S2KKP1v5Xz3yyb: uid=2003 from=<mlmmj>
Oct  6 20:10:01 mail postfix/qmgr[48427]: 4S2KKP1v5Xz3yyb: from=<mlmmj@mail.mymailserver.net>, size=656, nrcpt=1 (queue active)
Oct  6 20:10:01 mail postfix/qmgr[48427]: 4S2KKP4036z3yyZ: from=<mlmmj@mail.mymailserver.net>, size=1961, nrcpt=1 (queue active)
Oct  6 20:10:01 mail amavis[595012]: (595012-03) Passed CLEAN {RelayedInternal}, ORIGINATING LOCAL [127.0.0.1] /ESMTP <mlmmj@mail.mymailserver.net> -> <mlmmj@mail.mymailserver.net>, (), Message-ID: <4S2KKP1v5Xz3yyb@mail.mymailserver.net>, mail_id: ZWVqK-szb8H0, b: J4kxtxmHd, Hits: -, size: 680, queued_as: 4S2KKP4036z3yyZ, Subject: "Cron <mlmmj@mail> find /var/vmail/mlmmj -mindepth 1 -maxdepth 1 -type d -exec /usr/bin/mlmmj-maintd ", From: <root@mail.mymailserver.net>, helo=, dkim_new=dkim:mymailserver.com, 138 ms
Oct  6 20:10:01 mail postfix/amavis/smtp[596297]: 4S2KKP1v5Xz3yyb: to=<mlmmj@mail.mymailserver.net>, orig_to=<mlmmj>, relay=127.0.0.1[127.0.0.1]:10026, delay=0.35, delays=0.1/0.11/0/0.14, dsn=2.0.0, status=sent (250 2.0.0 from MTA(smtp:[127.0.0.1]:10025): 250 2.0.0 Ok: queued as 4S2KKP4036z3yyZ)

----

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

2

Re: Every 2 hours message gets sent to mlmmj

check permissions of /var/vmail/mlmmj

if you don't use mlmmj, you can disable it's cronjob, that will stop those mails

3

Re: Every 2 hours message gets sent to mlmmj

Cthulhu wrote:

check permissions of /var/vmail/mlmmj

if you don't use mlmmj, you can disable it's cronjob, that will stop those mails

Can you confirm what the permissions and owner should be for this directory?

My cronjobs are below but I do not see anything related to mlmmj?
30   3   *   *   *   /bin/bash /var/vmail/backup/backup_mysql.sh

# iRedAPD: Clean up expired tracking records hourly.
1   *   *   *   *   python3 /opt/iredapd/tools/cleanup_db.py >/dev/null

# iRedAPD: Convert SPF DNS record of specified domain names to IP
#          addresses/networks hourly.
2   *   *   *   *   python3 /opt/iredapd/tools/spf_to_greylist_whitelists.py >/dev/null

# iRedMail: Cleanup Amavisd database
1   2   *   *   *   python3 /opt/www/iredadmin/tools/cleanup_amavisd_db.py >/dev/null

# iRedAdmin: Clean up sql database.
1   *   *   *   *   python3 /opt/www/iredadmin/tools/cleanup_db.py >/dev/null 2>&1

# iRedAdmin: Delete mailboxes on file system which belong to removed accounts.
1   *   *   *   *   python3 /opt/www/iredadmin/tools/delete_mailboxes.py
# iRedMail: Cleanup Roundcube SQL database
2   2   *   *   *   /usr/bin/php /opt/www/roundcubemail/bin/cleandb.sh >/dev/null

# iRedMail: Cleanup Roundcube temporary files under 'temp/' directory
2   2   *   *   *   /usr/bin/php /opt/www/roundcubemail/bin/gc.sh >/dev/null
# Fail2ban: Unban IP addresses pending for removal (stored in SQL db).
* * * * * /bin/bash /usr/local/bin/fail2ban_banned_db unban_db

Thank you

4 (edited by Cthulhu 2023-10-10 06:49:37)

Re: Every 2 hours message gets sent to mlmmj

that are the cronjobs for user root, mlmmj has its own cronjobs and the directories should be acessible for that user aswell

regarding to install script, /var/vamil/mlmmj should be owned by mlmmj:mlmmj with 0700 persmission