> Is there a way to pass variables such as User Account; > Domain; and Password > to Qmailadmin from another webpage, and if so how would that look. > > I would like to setup a Control Panel for each domain which > will have a link > for them to add email addresses, mailing lists etc. But I > don't want them to > have to login twice (once to their control panel and once to > qmailadmin).
You can do an automated login via a form post, but not via a querystring (Querystring style logins would be nice and a lot of people have asked about this on this list, however I double checked the qmailadmin code a while back and found that it does not have support for decoding the querystring variables.) The support staff here at our ISP use this automated login stuff a lot eg We are running vpopmail w/MySQL backend We have an ASP page that sucks a list of domains from the MySQL and builds a dropdown box of all hosted domains. So we then click on the domain we want to administer Another ASP page then sucks a list of mailboxes in that domain. It builds a page that shows us info about each account eg name, quota, password, homedir etc and also gives a button for each user that we can click on to log straight into qmailadmin as that user. Each button is actually a form that has the username, password & domain hardcoded (populated via the ASP / MySQL lookups), and the form posts to /cgi-bin/qmailadmin when you click on the button. That way if you login with the postmaster's button you get full access to the domain, or if you login with the users button you just get the users screen. Its a handy way to zip in and out of peoples accounts without any typing at all. We also have a button on that same page that lets us autologin to the squirrelmail webmail for each mailbox.... Hope that gives you some ideas! Michael.
