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

Administrating Sendmail

Now that you have a working mail server there are plenty of tasks you would want to perform, such as: user aliases, blacklisting, specifying IPs that you will relay for, etc.

User Aliases and E-mail Addresses

One interesting thing about sendmail is that each person's username makes up their e-mail address.  If you have domain1.com and domain2.com listed in your /etc/mail/local-host-names file and a person with the username: bsmith

The effective e-mail addresses for bsmsith are:

bsmith@domain1.com
bsmith@domain2.com

If you want bsmsith to also have the e-mail address:

bob@domain1.com

You need to edit the virtusertable file: /etc/mail/virtusertable
An entry in this file for Bob would look like:

bob@domain1.com    bsmith

Of course it is not that easy.  Every time you edit the virtusertable file you must then recompile it with this command:

makemap hash /etc/mail/virtusertable < /etc/mail/virtusertable

The virtusertable can get quite large if you must add several different e-mail addresses.

If you are an observant type of person you will also notice an aliases file in /etc

This is how an administrator would forward e-mail based on account.  It is pretty obvious how it works so be sure to check it out.  As an end user to forward your e-mail create a .forward file in the root of your account and type the e-mail address on the first line.

Administrating Sendmail - Part 2 ->

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 Exchange 2003Spam Filtering for Exchange

Books:



Search Amazon.com for
Books on SMTP Servers