On Sunday 21 August 2005 19:27, Daniel O'Connor wrote: > I have a script which requires users to login and then it processes their > mails.. I haven't tried logging in as admin yet, but it would be nice then > I could run it as a cron job.
I've attached my current work-in-progress.. Don't laugh too hard, I don't do perl very often.. You create an admin user that only exists to do Cyrus admin stuff (ie no login privs) and put that username as $authuser, then put their password in a file (owned by root, 0600 perms) and put the path of the file in $pwdfile. Note that (as the code says) it currently doesn't search for users but this would be pretty easy to add. -- Daniel O'Connor software and network engineer for Genesis Software - http://www.gsoft.com.au "The nice thing about standards is that there are so many of them to choose from." -- Andrew Tanenbaum GPG Fingerprint - 5596 B766 97C0 0E94 4347 295E E593 DC20 7B3F CE8C
process-spam.pl
Description: Perl program
pgp2GS2Xyo6jw.pgp
Description: PGP signature