Topic: LDAP script to create import users
==== REQUIRED BASIC INFO OF YOUR IREDMAIL SERVER ====
- iRedMail version (check /etc/iredmail-release): 1.4.0
- Deployed with iRedMail Easy or the downloadable installer?
- Linux/BSD distribution name and version: Ubuntu
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): LDAP
- Web server (Apache or Nginx): NGINX
- Manage mail accounts with iRedAdmin-Pro? PRO
- [IMPORTANT] Related original log or error message is required if you're experiencing an issue.
====
I have setup a cron job to run this script and import all of my LDAP users into IREDMAIL and create mailboxes for them:
https://forum.iredmail.org/post27294.html#p27294
But when running the script im getting this error
line 108: hash_domain: command not found
line 108: hash_maildir: command not found
The script is able to create the users but they all share the same mailbox
If i remove/delete a user i get this error when a cronjob tries to run this
python3 /opt/www/iredadmin/tools/delete_mailboxes.py
ERROR:
* <<< SKIP >>> Seems no timestamp in maildir path (/var/vmail/vmail1/), too risky to remove this mailbox.
* <<< SKIP >>> Seems no timestamp in maildir path (/var/vmail/vmail1/), too risky to remove this mailbox.
* <<< SKIP >>> Seems no timestamp in maildir path (/var/vmail/vmail1/), too risky to remove this mailbox.
* <<< SKIP >>> Seems no timestamp in maildir path (/var/vmail/vmail1/), too risky to remove this mailbox.
* <<< SKIP >>> Seems no timestamp in maildir path (/var/vmail/vmail1/), too risky to remove this mailbox.
* <<< SKIP >>> Seems no timestamp in maildir path (/var/vmail/vmail1/), too risky to remove this mailbox.
Please advise
----
Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.