SMTP Server for PHP in three lines using Office Mail (OM3):
I never said it was difficult. Apart from SMTP and POP you get Webmail. This all adds up to a nice USB test environment.
![]() |
MX records and DNSI have included this section for completeness. When you run your own mail server and it uses SMTP for e-mail transfer you will need to configure the MX Records for your domain. In reality it means adding a single line to your zone file however to prevent being blacklisted you will want to add a few extra lines. DNS and zone filesZone files are nothing more than a text file containing DNS records; this file has a specific format and runs on a DNS server. If you are running your own DNS you probably know how to write zone files. I am lazy and my domain registrar hosts my zone file and provides both primary and secondary name servers. They also mask parts of the zone file that I do not need to change, all I have to do is add records pertaining to my domain. The example below shows the main parts in addition I have provided a list of common mistakes more in-depth information can be found on the Internet. Zone file example
MX recordI have two records in the zone file that define my mail server. A user would send an email to the following address nameX@bogus.com; bogus.com has an MX record this points to mail.bogus.com the address of my mail server. I have defined an A record for mail.bougus.com that points to my IP address. The mail server will direct any mail to the appropriate user nameX. In this example the A record is not required it is shown to emphasize the fact that MX records must always point to an A record and not IP addresses or CNAME’s. The two lines
Can be replaced with this single line since bogus.com is an A record.
Note: The period at the end of each name, this terminates that name definition and prevents the software adding anything extra to the name. MX Record notes
SPF RecordSender Policy Framework (SPF) provides domain owners a method of providing proof that the mail originated from their mail servers and not from another source. Hence reducing the amount of Spam I have show a typical record in green. Do you need an SPF record, well the choice is yours but more and more larger ISPs are using it to validate the origin of emails. If the origin does not validate the mail is bounced back to the sender. At the time of writing (21-5-07) I believe without one you run the potential risk that you domain will be blacklisted I am not 100% sure of this but hey why risk it. An SPF record is relatively easy to generate on the open Sender Policy Framework web site. You need to do a little reading however they do provide a very useful online wizard to make the task easier well worth a visit at http://old.openspf.org/wizard.html Test your DNSAfter publishing your zone record testing it can be time consuming especially using a command prompt. Take the easy option and use some online tools, my personal favorite is http://www.dnsstuff.com/ they provide a paid service however they still offer their free service that still remains excellent, scroll down their main page to find the tools. Type your domain name in
the DNS report and press the button you get a full report and I do mean
full. Anything highlighted in red and you have problems, yellow are warning
however
you should read these.
<< SMTP and General :: Errors >> |
|||||||||||||||
Contact & CopyrightCopyright 2002-2006 The Uniform Server Development Team All rights reserved. For installation-related support issues, contact support@Uniformserver.com For general information and support, refer to our site at http://www.Uniformserver.com
|