[Gllug] Web interface to mail forwarding

Mike Brodbelt mike at coruscant.demon.co.uk
Thu Aug 15 23:31:20 UTC 2002


On Thu, 2002-08-15 at 23:26, Jason Clifford wrote:
> On 15 Aug 2002, Mike Brodbelt wrote:
> 
> > I'd like to be able to give the users the ability to change the
> > forwarding destination of these addresses, via a web interface. Short of
> > the obvious security nightmare involved in allowing the web server to
> > write to the virtusertable, how do other people cope with this sort of
> > requirement. Is there a sensible way to have sendmail populate the
> > virtusertable from a MySQL database or something similar?
> 
> Personally I'd write a perl CGI using mysql as data store to handle the 
> user interface and a separate perl script running cron cron to handle the 
> actual management of the virtusertable file.

Yep - I was just wondering if there was a potted solution....

> If you were using postfix you could run the whole shebang from the mysql 
> data store removing the need for the second script. There are also patches 
> available for sendmail to allow for mysql based maps however I've not used 
> them.

I'd rather not start patching sendmail. Though if I'm going to write
perl code, I may just have it update the virtusertable file and the map
simultaneously - it's easy enough to just tie() the map....

Mike.


-- 
Gllug mailing list  -  Gllug at linux.co.uk
http://list.ftech.net/mailman/listinfo/gllug




More information about the GLLUG mailing list