NetworkClue.com
NetworkClue Home PageHome Contact UsContact ConsultingConsult
Bulletin Board
Internet Services covers Secrets to hosting websites, Hosting your own web server, and using DNS Servers.Operating Systems leads you through the decision of Linux vs. Windows, ideal installations and setups to create an efficient and redundant environment for your business, and great features to make management easier.Routing & Firewalls contains articles that will allow you to take control of your router. Learn how to protect your company with access lists and advanced firewall techniques.Hardware answers the common questions about Switches vs. Hubs, recommends SysAdmin Tools, and recommendations for adequate power protection.Utilities will cover fighting spam, using Anti-Virus programs effectively and the must haves for every administrator's software toolbox.


Bulletin Board

Sendmail

Sendmail is pretty much the universal mail server for UNIX and Linux. It is everywhere.  Expect to learn it if you even think about hosting a Linux server.  The O'Reily Sendmail book is most valuable when taking on this task.

Starting Sendmail

If you just built a Linux box and included Sendmail, you are almost ready to go.  Just specify the domains that your Sendmail server is the endpoint for.  Edit /etc/mail/local-host-names  each domain should be specified on a single line:

# local-host-names
domain1.com
domain2.com
friendsdomain.com

Then edit /etc/sysconfig/iptables and open the firewall to allow SMTP port 25.  The line you need to add should look something like (all on one line):

-A RH-Firewall-1-INPUT -m state --state NEW -m tcp -p tcp --dport 25 -j ACCEPT

Sendmail by default listens only on the loopback interface (127.0.0.1), so it will accept no outside connections. You must edit /etc/mail/sendmail.mc  Change this:

DAEMON_OPTIONS(`Port=smtp,Addr=127.0.0.1, Name=MTA')

To this:

DAEMON_OPTIONS(`Port=smtp, Name=MTA')dnl

Generate sendmail.cf using the command  below and restart sendmail:

m4 /etc/mail/sendmail.mc > /etc/mail/sendmail.cf
service sendmail restart

Then set Sendmail to start automatically and start sendmail:

chkconfig sendmail on
service sendmail start

Now you have a working mail server... No spam filtering capabilities and an administrator who has no idea how to configure and move forward.  I guess you better keep reading!

Administrating Sendmail ->

Article last reviewed: 10/09/2006

Created by: Digital Foundation, inc.

Copyright © 2002-2005 Digital Foundation, inc. www.networkclue.com

All content of the NetworkClue website is copyrighted. Articles, notes, outlines, and all other materials may not be stored on the Internet or sold or placed by themselves or with other material in any electronic or printed format in whole or part. However materials may be referenced by links to the site.

 

Related Articles:
SMTP Manual TestSMTP Manual Testing
Spam Filtering for SendmailSpam Filtering for Sendmail
SMTP AUTH for SendmailSMTP AUTH for Sendmail

Books:



Search Amazon.com for
Books on SMTP Servers