This is a really, really, really simple task, but to save me the time of looking it up on those rare occasions when I need to do it I’m capturing the information here. This is how to create, delete, or modify users for a Postfix-based mail relay using SASL.
All of these examples assume that SASL is configured to use “sasldb†as the authentication mechanism.
To create a new user, use the following syntax:
saslpasswd2 -c -u <domain> <username>
For simplicity’s sake, it’s easiest to make both the domain and the username in the command above the same as the domain and the username in the user’s e-mail address. This will make their full username the same as their e-mail address.
To change an existing user’s password:
saslpasswd2 -u <domain> <username>
This will prompt for password and password verification. To delete an existing user:
saslpasswd2 -d -u <domain> <username>
Finally, to list the available users on the system, simply use:
sasldblistusers2
This will list all the SASL users defined in the SASL database. Please note that the users’ passwords will show up only as “userPasswordâ€, so it’s not possible to see their existing passwords (at least, not without some effort).
There—now, the next time I need to do this, I’ll be able to easily remember the instructions.


2 comments
Sunday, December 3, 2006 at 8:15 am
kumar
hi
thanks for the information.tell me more abt postfix configuration.iam using fedora core 3
Sunday, December 3, 2006 at 10:49 pm
slowe
Kumar,
There are tons of excellent Postfix resources available on the Internet. Just try an Internet search using the search engine of your choice for terms like “Postfix configuration” and you should get tons of URLs to review.
Scott