Eric Pretorious
Regular Pleskian
When I use the /usr/local/psa/admin/bin/mailmng script to update the password for a mail account, the account is removed:
When I use the /usr/local/psa/admin/bin/mailmng script to create a mail account, the account is not created:
Have I misunderstood the output from the command `/usr/local/psa/admin/bin/mailmng --help-commands`?
Code:
[root@www postfix]# /usr/local/psa/admin/bin/mail_auth_view
Authentication database contents:
+--------------------------------------+-----+--------------------------------------+
| address |flags| password |
+--------------------------------------+-----+--------------------------------------+
| ...<SNIP>... | | |
| [email protected] | | ********* |
| ...<SNIP>... | | |
+--------------------------------------+-----+--------------------------------------+
Flags
A - account disabled
D - domain disabled
E - password encrypted
[root@www bin]# ./mailmng --set-password --domain-name=example.com --mailname=eric foobar123
[root@www bin]# ./mail_auth_view | grep eric
[root@www bin]#
Code:
[root@www bin]# ./mailmng --add-mailname --domain-name=example.com --mailname=eric
[root@www bin]# ./mail_auth_view | grep eric
[root@www bin]#
Code:
Mailmng commands:
--add-mailname adds mailname to the mail domain. Optionally sets the mailbox quota
...<SNIP>...
--set-password sets the password for a mailname
The noncrypted password is transferred in the environment variable PSA_PASSWORD,
or crypted password is transferred in the environment variable PSA_CRYPTED_PASSWORD
...<SNIP>...
Last edited: