sendmail uses a variety of configuration files that require different treatments for their commands to take effect. This little script encapsulates all the required post configuration steps. #!/bin/bash cd /etc/mail make newaliases /etc/init.d/sendmail restart It first runs the make command, which creates a new sendmail.cf file from the sendmail.mc file and compiles supporting configuration files [...]
TheÂ sendmail source code is available via anonymous FTP fromÂ ftp.sendmail.org. Compilation is very simple bceause theÂ sendmail source package directly supports Linux. The steps involved in compilingÂ sendmail are: # cd /usr/local/src # tar xvfz sendmail.8.9.3.tar.gz # cd src # ./Build You needÂ root permissions to complete the installation of the resulting binary files using: # cd obj.Linux.2.0.36.i586 # [...]
All the mails which are going from your sendmail is get stored in the following location /var/spool/mqueue so for clearing the mailq you just go the following location and delete all the contents under mqueue folder cd Â /var/spool/mqueue/ [root@localhost ~]# Â cd /var/spool/mqueue/ You have new mail in /var/spool/mail/root [root@localhost mqueue]# ls
To restartÂ send mailÂ just go to terminal and type service sendmail restart [root@localhost ~]# service sendmail restart Shutting down sm-client: Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â [ Â OK Â ] Shutting down sendmail: Â Â Â Â Â Â Â Â Â Â Â Â Â [...]
This article uses postfix as the mail transport agent (MTA), as opposed to sendmail, the default MTA for CentOS. Dovecot is used to allow users to access their email by either imap or pop protocols. We assume a domain name of example.com which should be changed by the reader and can be either a real [...]
As a system administrator, part of your daily duties is to monitor systems for performance and to tune systems where necessary. While there are expensive software products and benchmarking tools that can hone a machine to optimum efficiency, there exist several basic tools within LinuxÂ® that permit the knowledgeable system administrator to gather information and [...]
E-Mail delivery can be invoked by issuing the command “sendmail -q”. For those who are interested in what sendmail actually does, “sendmail -q -v” will give a more verbose version of the delivery process.
It is very convenient to automate the process of e-mail delivery. A tool commonly used for this process is cron.
1. How to know which ports are listening from your IP address? # nmap -sT -O your-ip-address 2. How to grep an exact match? # grep -w textfile.txt 3. How to reverse grep matches? # grep -v textfile.txt # 4. How to know which service name is what port? Assuming port 443 # cat testfile.txt [...]
1. How to you change file ownership and chown files recursively? # chown user:user folder -R 2. How to view queued mail in sendmail or postfix? # mailq 3. How to show which alternative binary program does your machine executes first? # alternatives –display program-name 4. How to create public/private rsa key pair? # ssh-keygen [...]
Server SSH log files provides us information from simple system to critical system security message. Here are quick ways of doing it via CLI terminal. These examples could serve also as starting point to parse more search key strings not only from any ssh log files, but also to other daemon service log file such [...]
This entry will cover a one shot linux fetchmail command of retrieving GMail email messages using terminal without any further fetchmail configuration setup. Read on. Fetchmail is one good linux tool for fetching and retrieving remote emails. Fetchmail works and retrieves emails from remote email servers and downloads them locally into your local linux box. [...]
Long before the decades of email servers begun, a postman’s job is highly critical on delivering postal mails, not to consider those old transportation means to travel those postal mails and deliveries across the country and states. Technology is continuously evolving. Gone were the days on spending almost the whole day configuring a linux server [...]
Sendmail can be configured to send emails directly to destination host or email server. However, network traffic congestion, email destination location, and connectivity rate sometimes affect and tend to fail a successful email delivery. Medium and large type of private networks are traditionally behind a firewall. This type of network usually sends emails directly to [...]