App::OpenMbox - The methods for email management used in OpenMbox.net
Version 0.12
Here are several methods used by Open Mbox, a free email provider.
use App::OpenMbox; my $om = App::OpenMbox->new(); # test purpose by providing temp files $om->register('/tmp/dove.db','/tmp/user.temp'); $om->password('/tmp/dove.db','/tmp/pass.temp');
Sample input from user.temp:
henry SomePassword111 hello SomePassword222
Sample input from pass.temp:
henry OldPassword111 NewPassword111 hello OldPassword222 NewPassword222
You may know that we don't have RDB in the system for email and user management. We do not record any information about users, nor track user's behavior. For registration, user submits his/her username and password to our system, these username/password are stored in a temp file. A perl program reads data from the file, and updates its content to Dovecot's user database, which is pure text DB for email users and encrypted passwords.
To make this program work, you should have Postfix and Dovecot deployed at first. There are many documentation for how to deploy that a system.
New the instance.
Register users with username and password.
Web CGI writes username and password to a temp file, another perl script reads this file periodically, and updates its content to Dovecot user DB.
Update passwords by providing username, old password and new password.
Web CGI writes username and old_password and new_password to a temp file, another perl script reads this file periodically, and updates its content to Dovecot user DB.
Henry R, <support at openmbox.net>
<support at openmbox.net>
Please report any bugs or feature requests to bug-app-openmbox at rt.cpan.org, or through the web interface at https://rt.cpan.org/NoAuth/ReportBug.html?Queue=App-OpenMbox. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.
bug-app-openmbox at rt.cpan.org
You can find documentation for this module with the perldoc command.
perldoc App::OpenMbox
You can also look for information at:
RT: CPAN's request tracker (report bugs here)
https://rt.cpan.org/NoAuth/Bugs.html?Dist=App-OpenMbox
CPAN Ratings
https://cpanratings.perl.org/d/App-OpenMbox
Search CPAN
https://metacpan.org/release/App-OpenMbox
This software is Copyright (c) 2022 by Henry R.
This is free software, licensed under:
The Artistic License 2.0 (GPL Compatible)
To install App::OpenMbox, copy and paste the appropriate command in to your terminal.
cpanm
cpanm App::OpenMbox
CPAN shell
perl -MCPAN -e shell install App::OpenMbox
For more information on module installation, please visit the detailed CPAN module installation guide.