Command | Function |
---|---|
smbldap-qmail-useradd | Add/Modify objectClass and attribute |
smbldap-qmail-userdel | Delete objectClass and attribute |
smbldap-qmail-passwd | Change user password |
Usage: smbldap-qmail-useradd [-vdugmafqcsHSRMPDCAh?] username -v create virtual mail user -d homeDirectory -u qmailUID -g qmailGID -m mail -a mailAlternateAddress (multiple attribute) -f mailForwardingAddress (multiple attribute) -q mailQuotaSize -c mailQuotaCount -s mailSizeMax -H mailHost -S mailMessageStore -R mailReplyText -M deliveryMode: [(none) noforward nolocal noprogram reply] (multiple attribute) -P deliveryProgramPath (multiple attribute) -D qmailDotMode: [both dotonly ldaponly ldapwithprog none] -C qmailAccountPurge -A accountStatus: [active noaccess disabled deleted] -h,? show this help message
# smbldap-useradd user1 # smbldap-qmail-useradd -m user1@example.com user1
# smbldap-qmail-useradd -v -m user2@example.com user2
# smbldap-qmail-useradd -a foo@example.com user1
# smbldap-qmail-useradd -a bar@example.com user1 # smbldap-qmail-useradd -a user1-catchall@example.com user1
Example: limit 100MB
# smbldap-qmail-useradd -q 100000000 user1
Usage: smbldap-qmail-userdel [-dugmafqcsHSRMPDCAh?] username -d homeDirectory -u qmailUID -g qmailGID -m mail -a mailAlternateAddress (multiple attribute) -f mailForwardingAddress (multiple attribute) -q mailQuotaSize -c mailQuotaCount -s mailSizeMax -H mailHost -S mailMessageStore -R mailReplyText -M deliveryMode: (multiple attribute) -P deliveryProgramPath (multiple attribute) -D qmailDotMode -C qmailAccountPurge -A accountStatus -h,? show this help message
# smbldap-userdel -m bar@example.com user1
# smbldap-userdel -m "" user1
# smbldap-userdel -q user1
If a user have posixAccount objectClass, this command delete only qmailUser attributes. Otherwise, it delete that user entry.
# smbldap-userdel user1 # smbldap-userdel user2
This command changes only userPassword attribute. If you would like to change it with sambaLMPassword and sambaNTPassword, you should use smbldap-passwd. However, smbldap-passwd cannot change a password for virtual mail user (user entry in which posixAccount objectClass is not contained).
Usage: smbldap-qmail-passwd [-psh?] username -p password -s strict mode. check qmailUser objectClass -h,? show this help message
# smbldap-qmail-passwd user1
# smbldap-qmail-passwd -s user1