Virtual Hosting Howto With Virtualmin On CentOS 5.1 - Page 6
Configure VirtualminIntroductionVirtualmin is a powerful and flexible hosting control panel that integrates with webmin. We will be using it to provide the virtual hosting functions such as creation of domains, accounts and maintaining configurations on the system.
Start ServicesYou need to start up services that are required to be able to configure virtualmin. Start the following services:
service named start
Initial SettingsMySQLWebmin needs to be able to communicate with mysql since we have set a password for mysql we need to set that up in webmin, go to servers ? mysql and enter this information:
Configure FeaturesYou need to enable the features and plugins that we want to use. On login this is the screen that you will see.
Configure Server TemplatesServer template are used to customize the services and to create packages for different hosting account types.
Apache TemplateYou can make changes to the way apache virtual hosts are created by editing this template, The defaults however will do for purposes of this howto.
Domain Owner TemplateThis template is used to configure various server limits such as number of mailboxes,aliases,databases,virtual servers and other options like bandwidth limits, admin abilities. For this howto we will use the default values.
Home Directory TemplateThis template allows you to set a skel directory to hold setting for new users for this howto we will use the defaults.
Administration UserThis template lets you set the quota for the virtual server and the admin user for this howto we will use the default quota 1GB.
Mail For Domain TemplateThis template sets various mail related options, we will modify the email message sent on server creation to have the content below: The following virtual server has been set up successfully :
Domain name: ${DOM}
Hosting server: ${HOSTNAME}
${IF-VIRT}
Virtual IP address: ${IP}
${ENDIF-VIRT}
Administration login: ${USER}
Administration password: ${PASS}
${IF-WEBMIN}
Administration URL: ${WEBMIN_PROTO}://www.${DOM}:${WEBMIN_PORT}/
${ENDIF-WEBMIN}
${IF-WEB}
Website: http://www.${DOM}/
${IF-WEBALIZER}
Webalizer log reporting: Enabled
${ELSE-WEBALIZER}
Webalizer log reporting: Disabled
${ENDIF-WEBALIZER}
${ENDIF-WEB}
${IF-MAIL}
Email domain: ${DOM}
SMTP server: mail.${DOM}
POP3 server: mail.${DOM}
Webmail: webmail.${DOM}
${ENDIF-MAIL}
${IF-DNS}
DNS domain: ${DOM}
Nameserver: ${HOSTNAME}
${ENDIF-DNS}
${IF-MYSQL}
MySQL database: ${DB}
MySQL login: ${MYSQL_USER}
MySQL password: ${PASS}
${ENDIF-MYSQL}
${IF-POSTGRES}
PostgreSQL database: ${DB}
PostgreSQL login: ${USER}
PostgreSQL password: ${PASS}
${ENDIF-POSTGRES}
We will leave the other options as the defaults.
BIND DNS Domain TemplateThis template is used to customize the zones that will be created by virtualmin. The changes to be made are adding a spf record, add the following records to auto generated text box (replace ns1.home.topdog-software.com. with your slave server): @ IN NS ns1.home.topdog-software.com. ;slave admin IN A 192.168.1.6 ;virtualmin webmail IN A 192.168.1.5 ;webmail In the directives text box add the following with the IP address of your slave server such that the slave is allowed to do zone transfers. allow-transfer { 192.168.1.2; };
MySQL Database TemplateContains options on creation of databases by virtualmin, for the howto we will use the defaults.
Webmin Login TemplateContains option on creation of new users by virtualmin, for the howto we will use the defaults.
Create Virtual ServerFinally we have a working virtual server system, lets create our first virtual server. Go to servers ? virtualmin virtual servers and click add new virtual server, owned by new user. Fill in the require fields and click create. Add a mail user to the domain. click on the domain name, then click edit mail and FTP users, then add user and fill in the information.
TestingPostfixTest SMTP
telnet 192.168.1.5 25
telnet 192.168.1.5 25
Test dkimSend a mail to autorespond+dkim@dk.elandsys.com.
Test domainkeysSend a mail to autorespond+dk@dk.elandsys.com.
DovecotTest POP3
telnet 192.168.1.5 110
Test IMAP
telnet 192.168.1.5 143
BINDdig example.com @127.0.0.1
Clamav-milterWe are using the test virus from www.eicar.org.
telnet 192.168.1.5 25 Take a lot at your /var/log/maillog you should see something like this: 73BC87C4E4: milter-reject: END-OF-MESSAGE from localhost[127.0.0.1]: 5.7.1 virus Eicar-Test-Signature detected by ClamAV - http://www.clamav.net; from=<address@yahoo.com> to=<andrew@example.com> proto=SMTP helo=<me>
Spamass-milterWe are using the test message from http://spamassassin.apache.org/gtube/.
telnet 192.168.1.5 25 You will see this in your log files: spamd: result: Y 1002 - AWL,GTUBE,MISSING_SUBJECT,TVD_SPACE_RATIO,UNPARSEABLE_RELAY scantime=0.5,size=723,user=root,uid=99,required_score=5.0,
|
Join the discussion.
www.seamlessenterprise.com
IP Convergence
Integrate your wireless and wireline networks.
Learn how from the experts at Sprint.
www.seamlessenterprise.com
Wireless & Wireline Integration
Thoughts, strategies and solutions: join the discussion
www.seamlessenterprise.com
Unified Communications 2009
Join the Discussion. Now.
www.seamlessenterprise.com
Red Hat Virtual Experience - a free virtual event. Dec. 9th
















print: 
Recent comments
11 hours 51 min ago
17 hours 40 min ago
19 hours 31 min ago
21 hours 16 min ago
1 day 1 hour ago
1 day 6 hours ago
1 day 7 hours ago
1 day 11 hours ago
1 day 16 hours ago
1 day 22 hours ago