Question 1. What Is Postfix And Default Port Used For Postfix ?
Postfix is a open source MTA (Mail Transfer agent) which is used to route & deliver emails. Postfix is the alternate of widely used Sendmail MTA. Default port for postfix is 25.
Question 2. What Is The Difference Between Postfix & Sendmail ?
Postfix uses a modular approach and is composed of multiple independent executables. Sendmail has a more monolithic design utilizing a single always running daemon.
Question 3. What Is Mta And It’s Role In Mailing System ?
MTA Stands for Mail Transfer Agent.MTA receives and delivers email. Determines message routing and possible address rewriting. Locally delivered messages are handed off to an MDA for final delivery. Examples Qmail, Postfix, Sendmail.
Question 4. What Is Mda ?
MDA stands for Mail Delivery Agent. MDA is a Program that handles final delivery of messages for a system’s local recipients. MDAs can often filter or categorize messages upon delivery. An MDA might also determine that a message must be forwarded to another email address. Example Procmail.
Question 5. What Is Mua ?
MUA stands for Mail User Agent. MUA is a Email client software used to compose, send, and retrieve email messages. Sends messages through an MTA. Retrieves messages from a mail store either directly or through a POP/ IMAP server. Examples Outlook, Thunderbird, Evolution.
Question 6. What Is The Use Of Postmaster Account In Mailserver ?
An email administrator is commonly referred to as a postmaster. An individual with postmaster responsibilities makes sure that the mail system is working correctly, makes configuration changes, and adds/removes email accounts, among other things. You must have a postmaster alias at all domains for which you handle email that directs messages to the correct person or persons .
Question 7. What Are The Important Daemons In Postfix ?
Below are the lists of important daemon in postfix mail server :
- master :The master daemon is the brain of the Postfix mail system. It spawns all other daemons.
- smtpd: The smtpd daemon (server) handles incoming connections.
- smtp :The smtp client handles outgoing connections.
- qmgr :The qmgr-Daemon is the heart of the Postfix mail system. It processes and controls all messages in the mail queues.
- local : The local program is Postfix’ own local delivery agent. It stores messages in mailboxes.
Question 8. What Are The Configuration Files Of Postfix Server ?
There are two main Configuration files of postfix :
- /etc/postfix/main.cf : This file holds global configuration options. They will be applied to all instances of a daemon, unless they are overridden in master.cf
- /etc/postfix/master.cf : This file defines runtime environment for daemons attached to services. Runtime behavior defined in main.cf may be overridden by setting service specific options.
Question 9. How To Restart The Postfix Service & Make It Enable Across Reboot ?
Use this command to restart service “ Service postfix restart” and to make the service persist across the reboot, use the command “ chkconfig postfix on”.
Question 10. How To Check The Mail’s Queue In Postfix ?
Postfix maintains two queues, the pending mails queue, and the deferred mail queue,the deferred mail queue has the mail that has soft-fail and should be retried (Temporary failure), Postfix retries the deferred queue on set intervals (configurable, and by default 5 minutes)
To display the list of queued mails :
# postqueue -p
To Save the output of above command :
# postqueue -p > /mnt/queue-backup.txt
Tell Postfix to process the Queue now
# postqueue -f
Question 11. How To Delete Mails From The Queue In Postfix ?
Use below command to delete all queued mails
# postsuper -d ALL
To delete only deferred mails from queue , use below command
# postsuper -d ALL deferred
Question 12. How To Check Postfix Configuration From The Command Line ?
Using the command ‘postconf -n‘ we can see current configuration of postfix excluding the lines which are commented.
Question 13. Which Command Is Used To See Live Mail Logs In Postfix ?
Use the command ‘tail -f /var/log/maillog’ or ‘tailf /var/log/maillog’.
Question 14. How To Send A Test Mail From Command Line ?
Use the below command to send a test mail from postfix itself :
# echo “Test mail from postfix” | mail -s “Plz ignore” email@example.com
Question 15. What Is An Open Mail Relay ?
An open mail relay is an SMTP server configured in such a way that it allows anyone on the Internet to send e-mail through it, not just mail destined to or originating from known users.This used to be the default configuration in many mail servers; indeed, it was the way the Internet was initially set up, but open mail relays have become unpopular because of their exploitation by spammers and worms.
Question 16. What Is Relay Host In Postfix ?
Relay host is the smtp address , if mentioned in postfix config file , then all the incoming mails be relayed through smtp server.
Question 17. What Is Greylisting ?
Greylisting is a method of defending e-mail users against spam. A mail transfer agent (MTA) using greylisting will “temporarily reject” any email from a sender it does not recognize. If the mail is legitimate the originating server will, after a delay, try again and, if sufficient time has elapsed, the email will be accepted.
Question 18. What Is The Importance Of Spf Records In Mail Servers ?
SPF (Sender Policy Framework) is a system to help domain owners specify the servers which are supposed to send mail from their domain. The aim is that other mail systems can then check to make sure the server sending email from that domain is authorized to do so – reducing the chance of email ‘spoofing’, phishing schemes and spam!
Question 19. What Is The Use Of Domain Keys(dkim) In Mail Servers ?
DomainKeys is an e-mail authentication system designed to verify the DNS domain of an e-mail sender and the message integrity. The DomainKeys specification has adopted aspects of Identified Internet Mail to create an enhanced protocol called DomainKeys Identified Mail (DKIM).
Question 20. What Is The Role Of Anti-spam Smtp Proxy (assp) In Mail Server ?
ASSP is a gateway server which is install in front of your MTA and implements auto-whitelists, self learning Bayesian, Greylisting, DNSBL, DNSWL, URIBL, SPF, SRS, Backscatter, Virus scanning, attachment blocking, Senderbase and multiple other filter methods.
MySQL Interview Questions
cPanel Interview Questions
Mail Server Interview Questions
Nagios Admin Interview Questions
Email Handling Interview Questions
MySQL Interview Questions
Qmail Interview Questions
BIND Name Server Interview Questions
cPanel Interview Questions
Advanced Linux Interview Questions