Send mail is one of the old and widely used mail delivery agent/Mail system.
How To Configure And Install Sendmail In Linux?
0 comments 12/13/2010 11:55:00 PM Posted by Surendra Kumar AnneLabels: How-To's, Mail Servers
Server configuration file syntax Checking commands
2 comments 7/01/2009 09:58:00 PM Posted by Surendra Kumar AnneLabels: Advanced Servers, DNS Servers, File Sharing Servers, Mail Servers, Server Troubleshooting, Web Servers
SERVER CONFIGURATION FILE SYNTAX CHECKING COMMANDS.
I have planned to write this post some long time ago, now the time has come to do it.
Basically configuring servers in Linux/*nix include editing of configuration files and saving them. Once editing the files if any syntax error is there and when we start the service they will show some wearied errors which we cant resolve.
For counter attacking this type of issues for each service there will be one command to check this syntax errors before starting of the service/server, I have collected these commands from my experience and from some of my friends. Please feel free to comment on this if you know some other commands so that I will update my post.
SSHD server check for syntax error
=========================
sshd -t
FTP server check for syntax error
=========================
#vsftpd
DNS server check for syntax error
==========================
For checking syntax errors in main configuration file..
#named-checkconf main-config-file
Example:
#named-checkconf named.conf
Syntax OK
#named-checkzone domain zonefile-loc
Example:
#named-checkzone example.com /var/named/chroot/var/named/exaple-zone.frd
SAMBA server check for syntax error
=============================
#testparm
APACHE server check for syntax error
=============================
httpd -t
For virtual hosts
httpd -t -D DUMP_VHOSTS
TCP Wrappers check for syntax error
============================
tcpdchk
tcpdchk -v
Postfox server check for syntax error
============================
postfix check
postfix -vv
LIGHTTPD server check for syntax error
=============================
lighttpd -t -f /etc/lighttpd/lighttpd.conf
Squid server check for syntax error
==========================
squid -k check
squid -k parse
/usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg
Mail system explained
1 comments 6/10/2009 08:16:00 PM Posted by Surendra Kumar AnneLabels: Mail Servers
Send-mail
Send mail is one of the old and widely used mail delivery agent/Mail system.
| Sl.no | Agent | Description from Wikipedia |
| 1 | Mail User Agent(MUA) | An e-mail client (also mail user agent (MUA) or e-mail reader) is a frontend computer program used to manage e-mail. |
| 2 | Mail Transfer Agent(MTA) | A mail transfer agent (MTA) (also called a mail transport agent, message transfer agent, or smtpd (short for SMTP daemon), is a computer program or software agent that transfers electronic mail messages from one computer to another.The term mail server is also used to mean a computer acting as an MTA that is running the appropriate software. The term mail exchanger (MX), in the context of the Domain Name System formally refers to an IP address assigned to a device hosting a mail server, and by extension also indicates the server itself. |
| 3 | Mail Delivery Agent(MDA) | A Mail delivery agent (MDA) is software that delivers e-mail messages after they have been accepted on a server, distributing them to recipients' individual mailboxes. |
| 4 | Mail Access Agent(MAA) | A way of remotely accessing a mail-spool, for example POP3 or IMAP. |
A short description how a Mail communication will work:
Here I will take an example how a mail from John(john@domain1.com) to his friend Jelo(jelo@domain2.com) will be delivered.
Step1:first John has to write a e-mail by specifying who is the receiver of this mail(in this case it is Jelo).So things like composing mails will be taken care by MUA.this MUA( A mail client such as MS outlook,Thunder-bird etc) knows how to deals with mail transportation,Once Jhon press send and receive in e-mail client,MUA initiate talk with its MTA(A SMTP server which is listening on 25 port for receiving mails).
Step2:Once MTA(such as SEND-MAIL,Qmail,Post-Fix etc) get the request from MUA, MTA will take care of all the activity such as communicate with MUA and fetching mails from MUA etc.
Step3:Once MTA got the mails from MUA, it has to segregate all the mails according to different domains. for example Jhon is sending 4 mails(one to Jelo@domain2.com, one to jennie@domain2.com, one to anne@yahoo.com and one to raja@gmail.com) this MTA will segregate these 4 mails in to 3 pools(jelo and jennie mails will be pooled in same pool so that they will be delivered to domain2.com,anne mail will be pooled to yahoo.com and raja's mail will be pooled to gmail.com)
Step4:Once the segregation has happened MDA(nothing but again its a send-mail which will take care of )will delivered these mails to respective MAA(such as Dovecot ).
Step5:Now suppose mail has delivered to their respective MAA's. Once the mail reaches, MAA will try to segregate the mails according to users(here for example Jelo and Anne mails has arrived to domain2.com MAA) then this MAA will put the mails of Jelo and Anne in respective mails boxes in a Mail Store(MS) as shown in Figure.
Step6:Now MUA will come in to picture in downloading these mails from MAA, so MUA will communicate with MAA and download the mails to MUA(like outlook and thunder-bird).
Please comment on this and we will post basic configuration of Sendmail in my comming posts.



