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

Installing sendmail on a Mail Client, Adding sendmail Aliases to the Alias Database

Page 110 highlights

sendmail 4. Issue the following command to run the NFS startup script: # /sbin/init.d/nfs.server start Installing sendmail on a Mail Client sendmail clients do not receive mail on their local system; instead, users on the client systems obtain their mail on the mail server. User mail directories reside on the server, and users read their mail over an NFS link. By default, a sendmail client forwards to the server any local mail (a user address destined for the client system) and sends non-local mail directly to the destination system or MX host. Outgoing mail appears to originate from the server, so replies are sent to the server. sendmail clients can be diskless systems. To Configure a sendmail Client System to Access a sendmail Server: 1. In the /etc/rc.config.d/mailservs file, use a text editor to set the SENDMAIL_SERVER variable to 0. This action ensures the sendmail daemon will not be started when you reboot your system or run the sendmail startup script. 2. In the /etc/rc.config.d/mailservs file, use a text editor to set the SENDMAIL_SERVER_NAME variable to the host name or IP address of the mail server you will use (the machine that will run the sendmail daemon). 3. In the /etc/rc.config.d/nfsconf file, use a text editor to set the NFS_CLIENT variable to 1. 4. Use a text editor to add the following line to the /etc/fstab file: servername:/var/mail /var/mail nfs 0 0 where servername is the name configured in the SENDMAIL_SERVER_NAME variable in /etc/rc.config.d/mailservs. If the /etc/fstab file does not exist, you will have to create it. 5. Issue the following command to run the sendmail startup script: # /sbin/init.d/sendmail start 6. Issue the following command to run the NFS startup script: # /sbin/init.d/nfs.client start The sendmail startup script assumes this system will use the host specified by the SENDMAIL_SERVER_NAME variable as the mail hub. The script also assumes mail sent from this system should appear to be from the host specified by the SENDMAIL_SERVER_NAME variable (this feature may previously have been known as "site hiding"). The script therefore modifies the macros DM (for masquerade) and DH (for mail hub) in the system's /etc/mail/sendmail.cf file to use the host specified by the SENDMAIL_SERVER_NAME variable. If the DM and DH macros have previously been defined, the startup script does not modify them. As mentioned earlier, the client system now forwards local mail to the mail server and forwards other mail directly to remote systems. To configure the client system to relay all mail to the mail server for delivery, see Modifying the Default sendmail Configuration File. The NFS startup script, NFS, mounts the /var/mail directory from the mail server to your system. Adding sendmail Aliases to the Alias Database 1. If the file /etc/mail/aliases does not exist on your system, copy it from /usr/newconfig/etc/mail/aliases to /etc/mail/aliases. 105

  • 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
105
4.
Issue the following command to run the NFS startup script:
# /sbin/init.d/nfs.server start
Installing sendmail on a Mail Client
sendmail
clients do not receive mail on their local system; instead, users on the client systems obtain their
mail on the mail server. User mail directories reside on the server, and users read their mail over an NFS
link. By default, a
sendmail
client forwards to the server any local mail (a user address destined for the
client system) and sends non-local mail directly to the destination system or MX host. Outgoing mail
appears to originate from the server, so replies are sent to the server.
sendmail
clients can be diskless
systems.
To Configure a sendmail Client System to Access a sendmail Server:
1.
In the
/etc/rc.config.d/mailservs
file, use a text editor to set the
SENDMAIL_SERVER
variable to
0
.
This action ensures the sendmail daemon will not be started when you reboot your system or run the
sendmail
startup script.
2.
In the
/etc/rc.config.d/mailservs
file, use a text editor to set the
SENDMAIL_SERVER_NAME
variable to the host name or IP address of the mail server you will use (the machine that will run the
sendmail
daemon).
3.
In the
/etc/rc.config.d/nfsconf
file, use a text editor to set the
NFS_CLIENT
variable to
1
.
4.
Use a text editor to add the following line to the
/etc/fstab
file:
servername:/var/mail /var/mail nfs 0 0
where
servername
is the name configured in the
SENDMAIL_SERVER_NAME
variable in
/etc/rc.config.d/mailservs
. If the
/etc/fstab
file does not exist, you will have to create it.
5.
Issue the following command to run the
sendmail
startup script:
# /sbin/init.d/sendmail start
6.
Issue the following command to run the NFS startup script:
# /sbin/init.d/nfs.client start
The
sendmail
startup script assumes this system will use the host specified by the
SENDMAIL_SERVER_NAME
variable as the mail hub. The script also assumes mail sent from this
system should appear to be from the host specified by the
SENDMAIL_SERVER_NAME
variable (this
feature may previously have been known as "site hiding"). The script therefore modifies the macros
DM
(for
masquerade
) and
DH
(for
mail hub
) in the system±s
/etc/mail/sendmail.cf
file to use the host
specified by the
SENDMAIL_SERVER_NAME
variable. If the
DM
and
DH
macros have previously
been defined, the startup script does not modify them. As mentioned earlier, the client system now forwards
local mail to the mail server and forwards other mail directly to remote systems.
To configure the client system to relay all mail to the mail server for delivery, see
Modifying the Default
sendmail Configuration File
.
The NFS startup script, NFS, mounts the
/var/mail
directory from the mail
server to your system.
Adding sendmail Aliases to the Alias Database
1.
If the file
/etc/mail/aliases
does not exist on your system, copy it from
/usr/newconfig/etc/mail/aliases
to
/etc/mail/aliases
.