151225SericPUSHDIVERT(-1)
251225Seric#
351225Seric# Copyright (c) 1983 Eric P. Allman
451225Seric# Copyright (c) 1988 The Regents of the University of California.
551225Seric# All rights reserved.
651225Seric#
751225Seric# %sccs.include.redist.sh%
851225Seric#
951225SericPOPDIVERT
1051225Seric#####################################
1151225Seric###   SMTP Mailer specification   ###
1251225Seric#####################################
1351225Seric
14*51752SericVERSIONID(@(#)smtp.m4	2.5 (Berkeley) 11/19/91)
1551225Seric
1651686SericMsmtp,	P=[IPC], F=mDFMueXLC, S=11, R=21, A=IPC $h, E=\r\n
1751225Seric
1851225SericS11
1951225Seric
2051686Seric# do sender/recipient common rewriting
2151686SericR$+			$: $>19 $1
2251686Seric
2351686Seric# if already @ qualified, we are done
2451686SericR$* < @ $+ > $*		$@ $1 < @ $2 > $3		already qualified
2551686Seric
2651686Seric# unqualified names (e.g., "eric") "come from" $M
2751686SericR$+			$: $1 < @ $M >			user w/o host
2851686SericR$+ < @ >		$: $1 < @ $j >			in case $M undefined
2951686Seric
3051686SericS21
3151686Seric
3251686Seric# do sender/recipient common rewriting
3351686SericR$+			$: $>19 $1
3451686Seric
3551686Seric# if already @ qualified, we are done
3651686SericR$* < @ $+ > $*		$@ $1 < @ $2 > $3		already qualified
3751686Seric
3851686Seric# unqualified names (e.g., "eric") are qualified by local host
39*51752SericR$+			$: $1 < @ $j >
4051686Seric
4151686SericS19
4251686Seric
4351225Seric# pass <route-addr>s through
4451245SericR< @ $+ > $*		$@ < @ $1 > $2			resolve <route-addr>
4551225Seric
4651225Seric# output fake domains as user%fake@relay
4751225Sericifdef(`BITNET_RELAY',
4851245Seric`R$+ <@ $+ . BITNET >	$: $1 % $2 .BITNET < @ $B >	user@host.BITNET',
4951225Seric	`dnl')
5051225Sericifdef(`CSNET_RELAY',
5151245Seric`R$+ <@ $+ . CSNET >	$: $1 % $2 .CSNET < @ $C >	user@host.CSNET',
5251225Seric	`dnl')
5351287SericR$+ <@ $+ . UUCP >	$: $2 ! $1 < @ $j >		user@host.UUCP
54