|
Configure linux sendmail server step by step guide example and implementation |
| Home | Peer to Peer | CompTIA N+ | CCNA | MCSE | MCITP | RHCE | Interview | Tips n Tricks |
How to configure linux sendmail server step by step guide Example and ImplementationIn a company environment, email is an essential component to the work day. Email is used to communicate with both internal employees and external customers. In exam you will be tested to configure the send mail server for you local LAN. By default sendmail server allows to connect to local host only. So we should edit the /etc/mail/sendmail.mc file to allow connect to other hosts. The sendmail daemon is configured from a directory of files in /etc/mail and a directory of configuration files in /usr/share/sendmail-cf. There are two basic configuration files:
For this example we are using two systems one linux server one linux clients. These are the pre quest for a sendmail server
We have configured all these steps in our pervious article. How to configure DNS server step by step guide We suggest you to review that article and configure DNS server before start configuration of sendmail server. Once you have completed the necessary steps follow this guide. Configure sendmail server
Mail server program reads the /etc/mail/sendmail.cf. To change the configuration on mail server, we should edit the /etc/mail/sendmail.mc file. When Sendmail is started or restarted with the service sendmail restart command a new sendmail.cf file is automatically generated if sendmail.mc has been modified. In exam you should generate it with m4 command.
In the sendmail.mc file , lines that begin with dnl, which stands for delete to new line, are considered comments. Some lines end with dnl, but lines ending in dnl are not comments
Configure sendmail client sideWe are using another linux system to test sendmail server. All configuration are same as you have done on server system.
Testing of sendmail serverWe will test sendmail server by sending and receiving mail in lab environment. for this we use two user one on each system.
Now send mail from user vinita to nikita and from nikita to user vinita and also check each others mail by mail command
|
|||||
|
|
|
|