HP Visualize J210XC IRIX to HP-UX Migration Guide - Page 114

Stopping and Starting the sendmail Daemon, The Mail Queue, The System Log

Page 114 highlights

sendmail Stopping and Starting the sendmail Daemon If the sendmail configuration file or frozen configuration changes, you should kill and restart the sendmail daemon so that it re-reads the configuration file. The command, # /usr/lib/sendmail -bk run by superuser, kills a sendmail daemon started with -bd, whether or not it was started with the -q interval flag. It does not kill a sendmail daemon started only with -q interval. You must kill this type of daemon by finding its process id and killing it explicitly. NOTE: Do not kill sendmail with kill -9. This may cause sendmail to corrupt the alias database. Use kill15 instead. The sendmail frozen configuration file is /usr/lib/sendmail.fc. To freeze the configuration file, issue one of the following commands as superuser: # /usr/lib/sendmail -bz # /etc/freeze Then restart the sendmail daemon: # /usr/lib/sendmail -bd -q30m To use SAM to refreeze the configuration and kill and restart the sendmail daemon, do the following: 1. Start SAM. 2. Select the Networking/Communications menu item. 3. Select Services Enable/Disable. 4. Select the sendmail menu item. 5. Select the Restart action. 6. Fill in the form according to its instructions or answer the prompt in the window. View the help screens for information about filling in the form. 7. Exit the Services Enable/Disable screen to a previous level by selecting Exit from the List menu. Then, to exit the Networking/Communications screen, select either Previous Level to exit to a previous level or Exit SAM to exit from SAM. 8. Select apply to enter additional names of systems to be configured (use apply as a shortcut to remain in the add screen). Then, press OK when you are done with the screen. The Mail Queue The HP-UX mail queue directory is /usr/spool/mqueue. The System Log sendmail logs its mail messages through the syslogd logging facility. The syslogd configuration on diskless clients should forward all logging that results from sending mail to the cluster root server. The 109

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  • 32
  • 33
  • 34
  • 35
  • 36
  • 37
  • 38
  • 39
  • 40
  • 41
  • 42
  • 43
  • 44
  • 45
  • 46
  • 47
  • 48
  • 49
  • 50
  • 51
  • 52
  • 53
  • 54
  • 55
  • 56
  • 57
  • 58
  • 59
  • 60
  • 61
  • 62
  • 63
  • 64
  • 65
  • 66
  • 67
  • 68
  • 69
  • 70
  • 71
  • 72
  • 73
  • 74
  • 75
  • 76
  • 77
  • 78
  • 79
  • 80
  • 81
  • 82
  • 83
  • 84
  • 85
  • 86
  • 87
  • 88
  • 89
  • 90
  • 91
  • 92
  • 93
  • 94
  • 95
  • 96
  • 97
  • 98
  • 99
  • 100
  • 101
  • 102
  • 103
  • 104
  • 105
  • 106
  • 107
  • 108
  • 109
  • 110
  • 111
  • 112
  • 113
  • 114
  • 115
  • 116
  • 117
  • 118
  • 119
  • 120
  • 121
  • 122
  • 123
  • 124
  • 125

sendmail
109
Stopping and Starting the sendmail Daemon
If the
sendmail
configuration file or frozen configuration changes, you should kill and restart the
sendmail
daemon so that it re-reads the configuration file.
The command,
# /usr/lib/sendmail -bk
run by
superuser
, kills a
sendmail
daemon started with
-bd
, whether or not it was started with the
-q
interval flag. It does not kill a
sendmail
daemon started only with
-q
interval. You must kill this type of
daemon by finding its process id and killing it explicitly.
NOTE: Do not kill
sendmail
with
kill -9
. This may cause
sendmail
to corrupt the
alias
database. Use
kill-
15
instead.
The
sendmail
frozen configuration file is
/usr/lib/sendmail.fc
. To freeze the configuration file, issue one
of the following commands as
superuser
:
# /usr/lib/sendmail -bz
# /etc/freeze
Then restart the
sendmail
daemon:
# /usr/lib/sendmail -bd -q30m
To use SAM to refreeze the configuration and kill and restart the
sendmail
daemon, do the following:
1.
Start SAM.
2.
Select the
Networking/Communications
menu item.
3.
Select
Services Enable/Disable
.
4.
Select the
sendmail
menu item.
5.
Select the
Restart
action.
6.
Fill in the form according to its instructions or answer the prompt in the window. View the help
screens for information about filling in the form.
7.
Exit the
Services Enable/Disable
screen to a previous level by selecting
Exit
from the
List
menu.
Then, to exit the
Networking/Communications
screen, select either
Previous Level
to exit to a
previous level or
Exit SAM
to exit from SAM.
8.
Select
apply
to enter additional names of systems to be configured (use
apply
as a shortcut to remain
in the
add
screen). Then, press
OK
when you are done with the screen.
The Mail Queue
The HP-UX mail queue directory is
/usr/spool/mqueue.
The System Log
sendmail
logs its mail messages through the
syslogd
logging facility. The
syslogd
configuration on
diskless clients should forward all logging that results from sending mail to the cluster
root
server. The