Part 2: Automagicly creating user accounts
There are a couple different ways to do this, Wildfire supports LDAP connections, however as of SME version 6.0 the the LDAP database did not support authentication so I do not believe this is an option. That being said if I am wrong or it has changed in 7.x please let me know.
The second way of doing it by using the pop3 auth code in the wildfire.xml file. This will create a user on the wildfire server whenever a user with a local email account logs into the server. To accomplish this you need to edit the wildfire.xml file:
pico /opt/wildfire/conf/wildfire.xmlThis first thing you will need to do is create a new admin account, the wildfire server auto creates one and this causes a problem when using pop3 auth. To create a new user account find the line in the xml file that says:
<-- <authorizedUsernames></authorizedUsernames> -->Change this to:
<authorizedUsernames>USERNAME</authorizedUsernames>[/b]
Insert an active account that you want to have admin rights in the USERNAME area. This account must exist on your server.
Now, we add the pop3 auth code, goto bottom of the xml file to where you see: (approx Line 70)
<!-- End example LDAP settings -->Insert the following after the above line:
<!-- Example POP3 Authentication-->
<provider>
<auth>
<className>org.jivesoftware.wildfire.auth.POP3AuthProvider</className>
</auth>
<user>
<className>org.jivesoftware.wildfire.user.POP3UserProvider</className>
</user>
</provider>
<pop3>
<host>
Insert Host Here</host>
<domain>
your domain.com</domain>
<authRequiresDomain>false</authRequiresDomain>
<ssl>false</ssl>
</pop3>
<!-- End example POP3 Authentication-->
Once you have changed your host and domain, save the xml and restart the server.
/opt/wildfire/bin/wildfire stop
/opt/wildfire/bin/wildfire start
Now login to the admin interface
http://servername:9090 with the user you specified. If all is configured correctly you should be able to login. If successful, any user that tries to sign in with a jabber client will automagicly get created a jabber user account.