Академический Документы
Профессиональный Документы
Культура Документы
Contents [hide]
1 hMailServer Configuration
Configuring hMailServer
2 Mail Client Signed Certificate Project
3 Testing Uniform Server 3.5-Apollo
4 Summary
The sole purpose of running this mail server is to obtain a signed certificate from CAcert. All they expect is
a mail server running under your domain hence there is nothing special in the configuration.
The configuration steps below show how to set up hMailServer. Topics covered, how to add a domain and
user account, alias creation, how to set the server host name. The server is pre-configured to prevent
SMTP open relay and has correct settings for RFC however it is still worth checking these.
Note: SMTP can be problematic not that its difficult to set-up, invariably problems are associated with
your service provider hence be prepared for some experimentation.
hMailServer Configuration
1) Login to
Administrator
Start administrator:
2) Add domain
“postmaster” is a
standard hence I am
using
postmaster@mpg123.no-
ip.org
Click Save
4) Adding email
Accounts
Click Save
5) Adding additional
Accounts
6) Adding an Alias
An alias is effectively a
nonexistent account, any
email sent to an alias is
redirected to a real
account.
Note: Postmaster@ is
required by RFC 2821 .
An address is required
for each domain's SMTP
host accepting mail.
Abuse@ is "required" by
RFC 2142 this is a de-
facto standard.
7) Select Protocols
8) SMTP
A) Host name:
Required always set a
host name.
B) SMTP Relayer:
Leave blank
C) Server requires
authentication: Leave
un-checked
incorrectly formatted
line endings should be
adequate for most
purposes.
Click on Internet
Important:
Top
Mail Client
That completes the hMailServer configuration, to test this configuration at least one account must be set in
your mail client. The following are the settings for Outlook Express
7. Finished
Top
Testing
Internal routing test:
In your email client send an email to admin, remember this is an alias and will be forward to the
postmaster:
1. From: postmaster@mpg123.no-ip.org
2. To: admin@mpg123.no-ip.org
3. Subject: Test 1
4. Message: Test 1 Basic test server test
In Outlook express select Tools > Send and Receive > Receive all or use whatever method your client
requires to retrieve email.
Your inbox will display a message from “Postmaster”; this confirms hMailServer is working (and you have
an excellent test server). If for some reason it fails check the above configuration steps.
Running hMailServer on a local machine you should have no problem with this test; recheck settings and if
the problem persists it may require a trip to hMailServer site and forum to resolve the issue.
Using your email client send an email from postmaster to a friend or other address, make sure their email
address is not hosted by your ISP.
1. From: postmaster@mpg123.no-ip.org
2. To: freind@some_other_ip.com
3. Subject: Test 2
4. Message: Test 2 round trip test, please reply to this email
The above error is because dynamic IP's are listed in spam databases and blocked accordingly. The
solution is to reroute all outgoing mail through your ISP's mail server.
See note in section 13) pick-up your ISP's SMTP server details and insert it into the SMTP relayer address
box (B) section 8).
Repeat the above test, your email will not be bounced expect a reply from your friend.
That completes testing, you now have a working email server. Add additional accounts as required and
change settings to meet you own requirments.
Summary
You now have a fully operational e-mail server this will allow you to verify your domain at CAcert and
obtain a signed certificate.
If you host several domains using Apache’s virtual host you can map these into hMailServer and provide
mail facilities.
The next page looks at PHP’s mail function its a small digression from the main theme hence can be
skipped.
Top
Ric
Categories: UniCenter | Support | Installation | Application | Development