Important Get extra credit by writing your name on a small piece of
paper and putting under the mouse pad of the computer in the back of the room.
Do not tell anyone what you are doing. Click
here to watch the video
XMail Server Manager
http://xmail.inetprovider.com/
(This program does not need to ran on the same computer running XMail Server)
XMail Server http://www.xmailserver.com/
Download the above binaries or installers. Make sure you download the latest
version and the one that corresponds to your OS.
After you unpack your distribution of Xmail software you will need to edit a
couple of files.
I will be demonstrate this program assuming a Windows installation but most
concepts will work on Unix as well.
- Build XMail.
- Copy the supplied MailRoot directory where you want it to reside (normally
'C:\MailRoot').
- Setup the MailRoot directory (and subdirectories and file) permissions to
allow access only to System and Administrators. Doing this you can run XMail
as a console startup only if you're Administrator (service startup as System).
- Copy XMail executables to 'C:\MailRoot\bin'.
- With 'regedit', create 'GNU' key inside
'HKEY_LOCAL_MACHINE\SOFTWARE\' and then 'XMail'
key inside 'HKEY_LOCAL_MACHINE\SOFTWARE\GNU'.
- Create a new string value named 'MAIL_ROOT' inside 'HKEY_LOCAL_MACHINE\SOFTWARE\GNU\XMail\'
with value 'C:\MailRoot'.
- Optionally create a new string value named 'MAIL_CMD_LINE'
inside 'HKEY_LOCAL_MACHINE\SOFTWARE\GNU\XMail\' to store your
command line options.
- Open an NT console (command prompt).
- Go inside 'C:\MailRoot\bin' and run: "XMail --install"
for a manual startup, or: "XMail --install-auto" for an automatic startup.
- If you have other services that give the same functionality of XMail, that
is SMTP, POP3, or Finger servers, you must stop these services.
- Setup file permissions of the 'C:\MailRoot' directory to
grant access only to 'SYSTEM' and 'Domain Admins'.\
(In a workgroup you might not have Domain Admins)
- Think of password for your administrator account then in the command line
change directories to C:\MailRoot\bin
and type xmcrypt "password" (replace the word password with the one you
have decided to use. For example type "xmcrypt lucy"
- This will produce a encrypted password that you will use in the next step.
- Edit the TAB file ctrlaccounts.tab with Notepad or DOS Edit. It should be
located in C:\Mailroot. Type admin user name
you want to use ( and the encrypted password you just created. NOT the plain
text version of your password. Save the changes to the file keeping the same
name and extension.(put quotation marks around the username and password. I.e.
"admin" "pass"
- Edit the domains.tab file adding the domain of your choice. Ie.
anything.com
- Edit the server.tab file only changing the following releavant parts (This
is necessary if you are going to use DNS)
"RootDomain" "anything.com"
"SmtpServerDomain" "mail.anything.com"
"POP3Domain" "mail.anything.com"
"HeloDomain" "anything.com"
"PostMaster" "root@anthing.com"
"ErrorsAdmin" "root@priefer.org"
- Using Explorer or My Computer navigate to the domains directory within the
MailRoot directory and create a new folder named the domain name you decided
to use. I.e priefer.com.
- Now for you GUI fans install and run the XMail server manager.
It will be in your Start Programs Xmail server then click XMail Server
Manager
- While in XMail Server Manager click File the connect to a server, Click
New for profile and fill in the relevant information. Address should be
the IP of your computer. Leave Port at 6017 and the username and
password should be the one you created earlier. This time use the Plain text
password.
- If you successfully done all of the above steps correctly you should see
the domains you created in the domains.tab file. Note if the progam does not
show any of your domains and just an Ip address in top of the left hand pane
click on File then disconnect then connect again.
- You will then be able to add users and password to your domains. You
do not have the encrypt the passwords. Even though you see the passwords
in this program they are actually saved as encrypted passwords.
- At this point your server is setup to function. Your client programs will
have to be setup with IP addresses for the POP3 and SMTP server which is the
IP address of the server you installed Xmail on.
- To use this server on a intranet with other domains you will have to
create a Mail Exchange record on your DNS server pointing to the IP address of
the computer host XMail.
- To use this server on the internet you will have to do the above to a
computer which is hosting DNS servers for the internet as well as you will
have a FQDN (fully qualified domain name) registered with some company like
Dotster.com. Many registrars will host DNS for you and allow you to make
changes but will charge for this service. You can find free DNS on the
internet. I use one called zoneedidt.com.
Now for the true test. Open you email client Outlook, Mozilla mail, whatever
client you have and click create a new POP account. Fill in the settings for
smtp and pop servers which will be the ip address of the XMail server or DNS you
created ie. mail.anything.com. Send a email to yourself and see if you get
it back.