vpopmail - Perl extension for the vpopmail package
use vpopmail; print "running vpopmail V", vpopmail::vgetversion(), "\n"; adddomain('vpopmail.com'); vadduser('postmaster', 'vpopmail.com', 'p0stmAst3r', 'Postmaster Account', 0 ); vadduser('username', 'vpopmail.com', 'p@ssw0rd', 'Test User', 0 ); vdeluser('username', 'vpopmail.com'); vaddalias('username', 'vpopmail.com', 'alias_address'); vaddforward('local_addr', 'vpopmail.com', 'some@otherdomain.com'); if ( vauth_user('username', 'vpopmail.com', 'p@ssw0rd', undef) ) { print 'auth ok'; } vsetuserquota('username', 'vpopmail.com', '5M'); vdeluser('username', 'vpopmail.com') ); vdeldomain('vpopmail.com'); foreach my $domain (vlistdomains()) { print "$domain:\n"; foreach my $user (vlistusers($domain)) { print "\t$user->{pw_name} ($user->{pw_gecos})\n"; } print "\n\n"; }
Perl extension for the vpopmail package [ http://www.inter7.com/vpopmail ]
Sean P. Scanlon <sscanlon@cpan.org>
perl(1), [ http://www.inter7.com/vpopmail ].
To install vpopmail, copy and paste the appropriate command in to your terminal.
cpanm
cpanm vpopmail
CPAN shell
perl -MCPAN -e shell install vpopmail
For more information on module installation, please visit the detailed CPAN module installation guide.