hello,
is there an overview with all cli commands? I’m looking for a way to add users or aliases via shell command?
many thanks
hello,
is there an overview with all cli commands? I’m looking for a way to add users or aliases via shell command?
many thanks
Usage:
tools/mail.py user (lists users)
tools/mail.py user add user@domain.com [password]
tools/mail.py user password user@domain.com [password]
tools/mail.py user remove user@domain.com
tools/mail.py user make-admin user@domain.com
tools/mail.py user remove-admin user@domain.com
tools/mail.py user admins (lists admins)
tools/mail.py alias (lists aliases)
tools/mail.py alias add incoming.name@domain.com sent.to@other.domain.com
tools/mail.py alias add incoming.name@domain.com 'sent.to@other.domain.com, multiple.people@other.domain.com'
tools/mail.py alias remove incoming.name@domain.com
Removing a mail user does not delete their mail folders on disk. It only prevents IMAP/SMTP login.
And don’t forget to check out the API instructions.
that’s exactly what I was looking for
thank you!
Commands in my version works for me like this:
cd mailinabox
sudo python3 management/cli.py user