Helo i have bug with atribute mail when i add alternete mail to the user
my system store user in ldap and im use postfix and virtualmin 3.56
Look on this when i add Extra mail to user apeare error of ldap but virtualmin think that extra mail was add to user.
========test.sh========
#!/bin/bash
cd /usr/libexec/webmin/virtual-server/
./create-domain.pl --domain example.com --desc TEST --pass test --dir --unix --mail --quota 1000*1024 --mysql --limits-from-template --no-email > /dev/null
./create-user.pl --domain example.com --user akocherov --real "asd" --pass "asd"
echo ---------------
./list-users.pl --domain example.com --user akocherov --multiline
echo ---------------
./modify-user.pl --domain example.com --user akocherov --real "asd" --pass "asd" --add-email akocherov2@example.com
./list-users.pl --domain example.com --user akocherov --multiline
echo ----------------
./delete-domain.pl --domain example.com > /dev/null
========CUT HERE=======
wh4 ~ # ./test.sh
User akocherov.example.com created successfully
---------------
akocherov
Domain: example.com
Unix username: akocherov.example.com
Real name: asd
Password: asd
Encrypted password: TJfJAyvV9cNHk
Disabled: No
Home directory: /home/example.com/homes/akocherov
FTP access: No
Login permissions: Email only
Shell: /dev/null
User type: Normal user
Home quota: 50 MB
Home quota used: Unlimited
Mail location: /home/example.com/homes/akocherov/.maildir
Mail storage type: Maildir
Email address: akocherov@example.com
Check spam and viruses: Disabled for domain
---------------
Error: Failed to modify user in LDAP database : mail: value #0 provided more than once
����
-----
Failed to modify user in LDAP database : mail: value #0 provided more than once
-----
akocherov
Domain: example.com
Unix username: akocherov.example.com
Real name: asd
Password: asd
Encrypted password: TJfJAyvV9cNHk
Disabled: No
Home directory: /home/example.com/homes/akocherov
FTP access: No
Login permissions: Email only
Shell: /dev/null
User type: Normal user
Home quota: 50 MB
Home quota used: Unlimited
Mail location: /home/example.com/homes/akocherov/.maildir
Mail storage type: Maildir
Email address: akocherov@example.com
Extra addresses: akocherov2@example.com
Check spam and viruses: Disabled for domain
----------------
quota: user example.com does not exist.