13d75c0d2SericPUSHDIVERT(-1)
23d75c0d2Seric#
33d75c0d2Seric# Copyright (c) 1983 Eric P. Allman
43d75c0d2Seric# Copyright (c) 1988, 1993
53d75c0d2Seric#	The Regents of the University of California.  All rights reserved.
63d75c0d2Seric#
73d75c0d2Seric# %sccs.include.redist.sh%
83d75c0d2Seric#
998c7c04fSericifdef(`SMTP_MAILER_FLAGS',, `define(`SMTP_MAILER_FLAGS', `')')
10741a5bdeSericdefine(_NULL_CLIENT_ONLY_, `1')
11741a5bdeSericifelse(_ARG_, `', `errprint(`Feature "nullclient" requires argument')',
12741a5bdeSeric	`define(`MAIL_HUB', _ARG_)')
133d75c0d2SericPOPDIVERT
143d75c0d2Seric
153d75c0d2Seric#
163d75c0d2Seric#  This is used only for relaying mail from a client to a hub when
173d75c0d2Seric#  that client does absolutely nothing else -- i.e., it is a "null
183d75c0d2Seric#  mailer".  In this sense, it acts like the "R" option in Sun
193d75c0d2Seric#  sendmail.
203d75c0d2Seric#
213d75c0d2Seric
22*98dd0197SericVERSIONID(`@(#)nullclient.m4	8.5 (Berkeley) 03/30/95')
23741a5bdeSeric
24*98dd0197SericPUSHDIVERT(6)
25*98dd0197Seric# hub host (to which all mail is sent)
26*98dd0197SericDH`'ifdef(`MAIL_HUB', MAIL_HUB,
27*98dd0197Seric	`errprint(`MAIL_HUB not defined for nullclient feature')')
28*98dd0197Seric
29*98dd0197Seric# route-addr separators
30*98dd0197SericC: : ,
31*98dd0197SericPOPDIVERT
32741a5bdeSericPUSHDIVERT(7)
33741a5bdeSeric############################################
34741a5bdeSeric###   Null Client Mailer specification   ###
35741a5bdeSeric############################################
363d75c0d2Seric
373d75c0d2Sericifdef(`confRELAY_MAILER',,
383d75c0d2Seric	`define(`confRELAY_MAILER', `nullclient')')dnl
39*98dd0197Sericifdef(`confFROM_HEADER',,
40*98dd0197Seric	`define(`confFROM_HEADER', <$g>)')dnl
413d75c0d2Seric
42ab33c5a5SericMnullclient,	P=[IPC], F=CONCAT(mDFMuXa, SMTP_MAILER_FLAGS),ifdef(`SMTP_MAILER_MAX', ` M=SMTP_MAILER_MAX,')
43ab33c5a5Seric		A=IPC $h
44741a5bdeSericPOPDIVERT
45