$self -> create_domain(); $self -> create_user_account(); $self -> stop_server(); $self -> create_postmaster_account();
$self -> update_dirs_and_files();
$self -> info("Starting '$$self{'_xmail_debug'}' with the new config files");
$self -> info('o Server must be up for it to receive mail');
$self -> info("o Sending a test message to $$self{'_options'}{'user_name'}");
$process = $self -> start_server(); $self -> send_test_message(); $self -> receive_test_message(); $self -> stop_server(); $self -> install_and_start_service(); NAME
Synopsis#!/usr/bin/perl use strict; use warnings; use XMail::Install; # ----------------- my(%option) = (...); XMail::Install -> new(options => \%option) -> run(); See the next section for details. Description
It will read an unpacked distro of the XMail mail server, and install, configure and test it. Also, it will stop and remove the service if it is already running. So, download xmail-1.25.win32bin.zip from http://xmailserver.org/ and unpack it into c:\. This creates c:\xmail-1.25. Then: Unpack the distro. shell>cd examples shell>perl install-xmail-1.pl -h shell>perl install-xmail-1.pl -v -other -options shell>perl install-xmail-2.pl -v -other -options The reason for having 2 install programs is that I could not get 1 to work properly, neither under Win2FK nor WinXFP. Sometimes it would work, and sometimes it would not. DistributionsThis module is available as a Unix-style distro (*.tgz). See http://savage.net.au/Perl-modules.html for details. See http://savage.net.au/Perl-modules/html/installing-a-module.html for help on unpacking and installing. Constructor and initializationnew(...) returns an object of type This is the class's contructor. Usage: XMail::Install -> new(). This method takes a hashref of options. There are no mandatory options. Call
Method: copy_dirs_and_filesA convenience method which makes the main line code in method Actually, except for Method: create_accountUpdate ctrlaccounts.tab with the details of the user 'xmailuser'. Method: create_domainUse the Method: create_postmaster_accountCreate Method: create_user_accountCreate an Method: infoPrint progress messages, while checking the verbose switch. Method: install_and_start_serviceThis installs and starts the XMail service. Method: receive_test_messageReceive and print the test message sent by method Method: runDo all the work required to install This is achieved by calling all the convenience methods in the class. Method: send_test_messageSend a test message, which will be received by method Method: start_serverStart the Method: stop_and_remove_serviceStop the Method: stop_serverStop the Method: update_dirs_and_filesUpdate various directories and files. Method: update_the_registryUpdate the registry, if necessary, being careful to preserve data in the immediate vicinity of the new keys. Method: win32_errorReturn the last error available from the OS. FAQ
Required Modules
Author
Home page: http://savage.net.au/index.html CopyrightAustralian copyright © 2007, Ron Savage. All rights reserved. All Programs of mine are 'OSI Certified Open Source Software'; you can redistribute them and/or modify them under the terms of The Artistic License, a copy of which is available at: http://www.opensource.org/licenses/index.html |
| Top of page |