600+ accounts Outlook mail account .reg modifications

We are building a Postfix mail server for a company that used Sendmail until now.

They have 600+ e-mail accounts; many of them are used by computer illiterate people.

Until now, their users have authenticated themselves as $username (which was also a system user). From now on, our Postfix install will use a mySQL auth $username@domain.com.

The company wants to avoid users having to change the username from $username to $username@domain.com in their e-mail clients.

Since 95% percent of them are using Outlook or Outlook Express, they can receive the .reg script to click so data is inserted into registry. We can use this to turn on SSL and append @domain.com to $username.

The problem is that we have to find the way to write those .reg files automatically with the output from the database of flat text file.

All the values that have to differ in those .reg files would be:

Code:
"POP3 User Name"="username@domain.com"
"SMTP User Name"="username@domain.com"
All else is either left unchanged, or same for all users.

Anyone have any idea how to make an automatic populator script that would write those values from db or text file and save .reg file as username.reg?

 

 

 

 

Top