1PUSHDIVERT(-1)
2#
3# Copyright (c) 1983 Eric P. Allman
4# Copyright (c) 1988, 1993
5#	The Regents of the University of California.  All rights reserved.
6#
7# %sccs.include.redist.sh%
8#
9ifdef(`SMTP_MAILER_FLAGS',, `define(`SMTP_MAILER_FLAGS', `')')
10define(_NULL_CLIENT_ONLY_, `1')
11ifelse(_ARG_, `', `errprint(`Feature "nullclient" requires argument')',
12	`define(`MAIL_HUB', _ARG_)')
13POPDIVERT
14
15#
16#  This is used only for relaying mail from a client to a hub when
17#  that client does absolutely nothing else -- i.e., it is a "null
18#  mailer".  In this sense, it acts like the "R" option in Sun
19#  sendmail.
20#
21
22VERSIONID(`@(#)nullclient.m4	8.5 (Berkeley) 03/30/95')
23
24PUSHDIVERT(6)
25# hub host (to which all mail is sent)
26DH`'ifdef(`MAIL_HUB', MAIL_HUB,
27	`errprint(`MAIL_HUB not defined for nullclient feature')')
28
29# route-addr separators
30C: : ,
31POPDIVERT
32PUSHDIVERT(7)
33############################################
34###   Null Client Mailer specification   ###
35############################################
36
37ifdef(`confRELAY_MAILER',,
38	`define(`confRELAY_MAILER', `nullclient')')dnl
39ifdef(`confFROM_HEADER',,
40	`define(`confFROM_HEADER', <$g>)')dnl
41
42Mnullclient,	P=[IPC], F=CONCAT(mDFMuXa, SMTP_MAILER_FLAGS),ifdef(`SMTP_MAILER_MAX', ` M=SMTP_MAILER_MAX,')
43		A=IPC $h
44POPDIVERT
45