Mail server

Programming, for all ages and all languages.
Post Reply
rich_m
Member
Member
Posts: 33
Joined: Sat Nov 25, 2006 10:05 am

Mail server

Post by rich_m »

I plan on building a mail server on a small network (around 60 systems) . and if the netwrk is connected to the internet, i want users to be able access their account via the net. (users will be able to create accounts only when on the main network though and front end is going to be php)

Well the above is the discription from whats it going to be from the users end, i want to as to how i can get started with a project like this??? Thanks in advance!
imagination is once limit......
User avatar
Combuster
Member
Member
Posts: 9301
Joined: Wed Oct 18, 2006 3:45 am
Libera.chat IRC: [com]buster
Location: On the balcony, where I can actually keep 1½m distance
Contact:

Post by Combuster »

What i'd do is think of a way to store the mail data, implement that, then write front-ends for it.
"Certainly avoid yourself. He is a newbie and might not realize it. You'll hate his code deeply a few years down the road." - Sortie
[ My OS ] [ VDisk/SFS ]
User avatar
Neo
Member
Member
Posts: 842
Joined: Wed Oct 18, 2006 9:01 am

Post by Neo »

So you want to run a mail server from your local LAN and allow users from the internet to be able to access it?
I'm not sure if thats a good idea security-wise but anyway I think you should concentrate on getting your LAN mail server setup first (I'm sure there are several available) and then think of access from the internet later if you want it.

Is this for a Windows or *NIX LAN?
Only Human
User avatar
B.E
Member
Member
Posts: 275
Joined: Sat Oct 21, 2006 5:29 pm
Location: Brisbane Australia
Contact:

Post by B.E »

First, you need to deside on what protocol your going to implement, then find the RFC for that protocol:

POP (Post Office Protocol 3) = RFC-1939
IMAP (Internet Message Access Protocol) - RFC-2060
SMTP (Simple Mail Transfer Protocol) RFC-0821

start designing the backend (i.e work out how your going to implement the protocol), This should be a deamond (or service in windows),

PHP has an API for acessing a mail server.
Image
Microsoft: "let everyone run after us. We'll just INNOV~1"
rich_m
Member
Member
Posts: 33
Joined: Sat Nov 25, 2006 10:05 am

Post by rich_m »

Neo wrote:........ LAN mail server setup first (I'm sure there are several available) and then think of access from the internet later if you want it.

Is this for a Windows or *NIX LAN?

Its going to be for windows, So getting the mail server setup... how do i do that?
imagination is once limit......
User avatar
Alboin
Member
Member
Posts: 1466
Joined: Thu Jan 04, 2007 3:29 pm
Location: Noricum and Pannonia

Post by Alboin »

As stated, you have to use Sevices for Windows where the program runs in the background. A quick google search brought up this: How to write NT Services You might want to try MSDN as well...
-fin
C8H10N4O2 | #446691 | Trust the nodes.
User avatar
Neo
Member
Member
Posts: 842
Joined: Wed Oct 18, 2006 9:01 am

Post by Neo »

Just wondering...
Aren't there any Opensource mail servers available for Windows?
Only Human
User avatar
Alboin
Member
Member
Posts: 1466
Joined: Thu Jan 04, 2007 3:29 pm
Location: Noricum and Pannonia

Post by Alboin »

Uh...There is hMailServer....
C8H10N4O2 | #446691 | Trust the nodes.
User avatar
Neo
Member
Member
Posts: 842
Joined: Wed Oct 18, 2006 9:01 am

Post by Neo »

Was having a look at that noticed that it requires MySQL.
So was just wondering, if most mail servers use a database to store mails?
If not what do they use that for?
Only Human
User avatar
Brynet-Inc
Member
Member
Posts: 2426
Joined: Tue Oct 17, 2006 9:29 pm
Libera.chat IRC: brynet
Location: Canada
Contact:

Post by Brynet-Inc »

Neo wrote:Was having a look at that noticed that it requires MySQL.
So was just wondering, if most mail servers use a database to store mails?
If not what do they use that for?
Some might use it for authentication.. storing username and passwords in a database.
Image
Twitter: @canadianbryan. Award by smcerm, I stole it. Original was larger.
Post Reply