It seems that some of our readers have come across an error message with sendmail debug options. This problem occurs for many reasons. Let’s discuss some of them below.
1.7 Basic Modes Created By Sendmail
In addition to daemon mode (discussed earlier),sendmail can work in several other useful ways.fashion. In this section, we must consider some of them.these. The rest we leave for later.
1.7.1 How to start sendmail
One way to start sendmail is to offer it to youthe person’s name as the only command line argument. our forExample: The following sends an email you receiveGeorge:
% /usr/lib/sendmail George
You can specify multiple recipients. Currently, for example, the followingsend a message to george by mail,truman and teddy:
% /usr/lib/sendmail George, Truman, Teddy
SendmailThe program uses two different types of command line arguments.Arguments are ignored- characters (for example, george)are considered recipients. Arguments made by manystarting with - character switches are usedwhich determine theCommunication between sendmail. mustReceivers always follow all switchable arguments. AnyArguments passed to the tracked recipient are interpreted as postal addresses.A recipient that can be the source of undelivered emails.
In a separate chapter, we’ll look at just a few of these proper toggle styles.Command line argument table (see 1-1). ina complete list of command line options with a brief descriptioneach is presented in chapter 15.
1.7.1.Beginning of the regime (-b)
The sendmail program can sometimes run in multiplediffers depending on the form -b that connectsthe argument you are using. form, one for the scene, reasonssendmail to display content aboutturns. Causesanother sendmail to recreatealias database. Full list -b change command lineThe mode setting is actually shown in Table 1-2. weLet’s summarize some of them on this issue.
The effects of some are related to the parameters in Table 1-2.can be achieved even by starting sendmail usingAlternative name. Other names and their new descriptionthe results are presented in Table 1-3. Any name can lead to a hard linkc or a sentimental link to sendmail.
220.127.116.11 Sendmail daemon mode (-bd)
The program can be run as a trusted daemon inListens in the background for incoming mail from other machines. inperiod sendmail reads its configuration fileJust one day the concept starts for the first time, as if you were just demons. Then he continuesforever, never look into the config file again. HowTherefore, it will never see any changes to this configuration.File.
Thus, if you change something insendmail.Configuration cf Lodge, youalways gotta kill and the system diessendmail daemon. But before you kill them maybedaemon, you need to figure out how to properly restart it. thisThe information in /var/run/sendmail.pid is just one fileor your system files rc.
For example, on a Berkeley Unix system, the entire daemon is usuallystarted like this:
/usr/sbin/sendmail -bd -q1h
command to start the sendmail daemon typeyour system may have a number of what we haveshow. If you are dealing with many different brand systems,You need to know how to run a specific daemon on each one.them.
1.7.2 Exit and restart from version 8.7
Close and restart the sendmail daemon.became much easier with V8.7. Currently one request kills and restarts the daemon. Doesfollowing command, you can replace the path/var/run with one of these to set up your worksystem (as well as /etc/mail):
% kill -HUP `head -1 /var/run/sendmail.pid`
This acquirer has the same feel as the two offered for orders.V8.6 in the following sections. name=”IXT-1-182″>
18.104.22.168 kill reboot and since V8.6
Before starting the sendmail daemon, you mustMake sure the daemon is not already runningen.
As of version 8.6, the PID is the current PID.The running demon is indeed in the first beam/etc/mail/sendmail.pid. DietKilling a demon looks like this:
% violation -15 `head -1 /etc/mail/sendmail.pid`
After killing all running daemons, you can start a new one.daemon with the following simple command:
% `tail -1 /etc/mail/sendmail.pid`
22.214.171.124 Exit and restart, older versions
You must use unused versions of sendmail if you want to usebuy ps(1) for programmingpid demon. How the client worksps is different in Unix bsd and also in System V Unix.For BSD Unix, most of the commands you use and the output they produce are similarwhat follows:
% Ax for Playstation | grep send mail | grep - vs. grep 99? ? SV 0:07 /usr/lib/sendmail -bd -q1hDamage % -15 99