LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 10-06-2004, 07:31 AM   #1
emailssent
Member
 
Registered: Sep 2004
Posts: 312

Rep: Reputation: 30
Mail Sever


I would like to learn and configure mail sever so
which one (sendmail, qmail, surgemail etc...) is
best and why?

I had listen that sendmail is best and most popular
mail server.


Plz. tell the newbie to choose best mail server
and the sources to learn this.


Lets say i have a domain aa.com but it is hosted by someone else ,
then can i make email id's as emailssent@aa.com, yoyo@aa.com
by configuring mail server


--jack

Last edited by emailssent; 10-06-2004 at 07:34 AM.
 
Old 10-06-2004, 08:02 AM   #2
fortezza
Member
 
Registered: Mar 2003
Location: Colorado
Distribution: Fedora Core 4
Posts: 297

Rep: Reputation: 30
Postfix

I recommend POSTFIX ( http://www.postfix.org/ ) since it does not have the long history of security vulnerabilities that sendmail has, has excellent features such as:
*host multiple domains
*authorize clients by IP address/hostname ( open relays are bad )
*configurable version reporting ( to hide what software/version you are running, making it hard for attackers to figure out how they should go about attacking your server )
*execellent email aliasing support ( i.e. make up email addresses and then redirect email to that address to a real mailbox, hiding the real mailbox from the rest of the world, especially spammers )
*email receipt filtering - it can do reverse DNS to verifiy the sender, accept/reject email based on entries in its access list, and more!
*can use external "black lists" to further filter out email from other SMTP servers ( spammers hardly ever use
'authoritative SMTP gateways' to send spam. plus you can leverage existing black lists to keep the junk mail out )
*the configuration file is thoroughly commented, explaining each setting and giving examples that you can use to configure your own setting
*good 'howto' documentation on the Postfix web site, plus many other sources ( just do a search on http://www.google.com/ ) for it.
*free and in active development, i.e. this server will not come and go as do so many projects you see on sourceforge!


I use the email aliasing quite a bit. Every web site I give my email address to gets its own, custom email address so that if they give it away to 'marketers' aka 'spammers' , I can just delete the alias without affecting anyone elses ability to email me. But I will add I never had the application crash or my mail server compromised in the 1.5 years I have been running it.

There you have my recommendation.
 
Old 10-06-2004, 08:04 AM   #3
akilles
Member
 
Registered: Sep 2004
Location: Vestfold, Norway
Distribution: Slackware
Posts: 139

Rep: Reputation: 15
My personal opinion about Mail Transfer Agent is: Go for Postfix. I tried setting up Sendmail, but found Postfix to be much easier. Security is said to be the same for both.
Installation and configuration was very straight forward, using documentation from www.postfix.org.

If the domain aa.com is not hosted on your server, you can't add new adresses to that domain on your server. This is because the MX pointer in DNS (MX means Mail eXchanger) filters out mail using the name (aa.com) and sends all mail to one server.

-Geir O.
 
Old 10-06-2004, 08:13 AM   #4
emailssent
Member
 
Registered: Sep 2004
Posts: 312

Original Poster
Rep: Reputation: 30
thanx akilles and fortezza,


and do we need to purchase a domain for configuring mail server,

and for learning purpose can we can learn without purchasing a domain

More suggestions are welcome.


-jack

Last edited by emailssent; 10-06-2004 at 08:17 AM.
 
Old 10-06-2004, 08:27 AM   #5
maxut
Senior Member
 
Registered: May 2003
Location: istanbul
Distribution: debian - redhat - others
Posts: 1,188

Rep: Reputation: 50
my favourite MTA is qmail. it is more (most) secure and faster (fastest). it was writen cause of there were security holes in postfix and sendmail. but nowadays there is no hole in postfix nor sendmail. they are ok. by the way nobody can find any security hole in qmail codes yet.

qmail is a modular MTA, so it is too easy to integrate qmail with other softwares. it has lots of tools. but u must install qmail yourself. it is not the default MTA for distros.
u can install it by reading the guide at www.qmailrocks.org also clam antivirus and spamassassin antispam protection is included.

good luck.
 
Old 10-06-2004, 08:38 AM   #6
akilles
Member
 
Registered: Sep 2004
Location: Vestfold, Norway
Distribution: Slackware
Posts: 139

Rep: Reputation: 15
If you intend to set it up on LAN only, you can use any domainname you want. If you want to go online with this, even for testing purposes, you have to purchase the domain.

On my LAN at home, I have a mailserver and DNS running, and the domainname I use, is not registered online. The server I use has no possibility of reaching the Internet.

-Geir O.
 
Old 10-06-2004, 09:06 AM   #7
emailssent
Member
 
Registered: Sep 2004
Posts: 312

Original Poster
Rep: Reputation: 30
thanx akilles && maxut.

thanks akilles for clearing my confusion regarding purchasing domain....and configuring mail server.


More suggestion are welcome on choosing mail server package
 
Old 10-09-2004, 11:06 AM   #8
fortezza
Member
 
Registered: Mar 2003
Location: Colorado
Distribution: Fedora Core 4
Posts: 297

Rep: Reputation: 30
As far as purchasing a domain goes, lets remove the 'purchasing' part for now and just talk about the having a domain. To recieve email, you will of course need an email address. Also, you will have to have a domain and a mail server that is registered for that domain. Here is an overview of how the senders SMTP server gets email to your SMTP mail server.
*Reads in email from it's 'Send" folder
*Performs various checks, most importantly it checks the "To" address of the email.
*Breaks the email address up into two parts - mailbox name and domain name
*Queries DNS for the IP address of the authoritative mail exchanger ( aka "mx record", aka "SMTP Gateway" ) for that domain.
*Contacts the mail exchanger and attempts to deliver the email.

So you see it uses the domain name to figure out where to deliver the email to, making it important to have a domain. I have done domains a few different ways in the past, but currently I have two domains registered and pointing at my home network. One is free, and one I purchased. Both are hosted at http://www.dyndns.org/. They offer both a free domain underneath one of their domains ( example: you may register domain emailssent.dyndns.org with them, and then havean email address of emailssent@emailssent.dyndns.org ), or you can purchase a domain and have them host it in DNS - meaming when someone is looking for the an computer in your domain, they will query the DNS servers at dyndns.org for that information. Dyndns supports both static and dynamic IP addresses for hosts in your domain, and there are many "autoupdater" programs that will update your IP address in their DNS for you.

That is just who I use, there are many, many DNS hosting companies, and it's possible you could host your own domain on your own DNS server, but that depends on a lot of things, including your ISP.

So here is how far we have gotten, this assumes you have only one public IP address such as a DSL or cable modem connection -
*SMTP server reads email from send queue with 'to' address in your domain
*Queries DNS for your SMTP Gateway's IP address and gets an answer from DNS host with your IP address
*Contacts mail server at that IP address
*Attempts to send email

For the two parts to work, you need to have a mail server running that is configured to accept email for your hosted domain, is accepting connects on port 25, and is reachable from the Internet on port 25.

I have a Linux firewall running that also handles NAT ( network address translation, aka IP Masquerading ) for my home network as my computers at home all have private IP addresses and share one public IP address. My firewall is configured to allow incoming connections to port 25 through, and the NAT part is told that connections to port 25 go to the IP address of my mail server.

On top of that, I have my mail server configured as mentioned above. It is import that your mail server is configured to severly restrict email for sending. This is because spammers like to use other people's mail servers for sending their junk out, and have quite a few tricks up their sleeves to accomplish this task. In addition , it is a good idea to filter incoming email , too. The benefit is that if your mail server rejects spam right away, you don't need any client side spam filtering to block junk email, as it never gets to your workstation computers.
Here are some good restriction:
Sending -
*Only accepts email for sending ( aka relaying ) from computers on your network - I have the mail server check the
hostname and the IP address of the sender to allow them to send email through my mail server.
*Only sends email with a 'from" address in your domain. I have seen ( in mail server logs ),people try to send email
with a "from" different than my domain through my mail server. It didnt' go anywhere thanks to this restriction.
Recieving -
*Do reverse DNS lookup on connecting SMTP gateway, to make sure it is a registered mail server for the senders domain. Spammers usually make up domains and email address for the "from" part of the junk email, and odd are their spam mail server isn't registered for any domain.
*use access lists that block email from domains that gets past the first two rules, I have only 3 entries in my "reject" list and do not get any junk mail, at all. That shows how effective the first two rules are.


Well, that should get your started. As mentioned above, you could set up a DNS server on your local (home) network, have it resolve a domain of your choice to IP addresses for you, and then set up and test your mail server internally before messing with making it available on the Internet. I actually do both ( internal and external DNS ), but that is because I am a glutton for punishment

Let us know if you have any more questions or issues with getting a mail server running, there are a lot of knowledgable people that read this forums, so odds are you will get some good advice.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
internet gateway+mail sever+WinXP+SuSE.... djdevx SUSE / openSUSE 0 09-03-2005 03:28 AM
SME sever emailssent Linux - Networking 5 11-01-2004 09:04 PM
file sever civicracer999 Linux - Networking 2 07-23-2004 11:04 PM
Should I buy a sever!? zetsui Linux - Hardware 9 01-25-2004 06:38 PM
X Sever Crash chutzpah Linux - Software 5 04-30-2003 04:06 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 09:40 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration