1PUSHDIVERT(-1) 2# 3# Copyright (c) 1983 Eric P. Allman 4# Copyright (c) 1988 The Regents of the University of California. 5# All rights reserved. 6# 7# %sccs.include.redist.sh% 8# 9POPDIVERT 10##################################### 11### SMTP Mailer specification ### 12##################################### 13 14VERSIONID(@(#)smtp.m4 2.6 (Berkeley) 06/16/92) 15 16Msmtp, P=[IPC], F=mDFMueXLC, S=11, R=21, A=IPC $h, E=\r\n 17 18S11 19 20# do sender/recipient common rewriting 21R$+ $: $>19 $1 22 23# if already @ qualified, we are done 24R$* < @ $+ > $* $@ $1 < @ $2 > $3 already qualified 25 26# don't qualify list:; syntax 27R$* :; $@ $1 :; 28 29# unqualified names (e.g., "eric") "come from" $M 30R$+ $: $1 < @ $M > user w/o host 31R$+ < @ > $: $1 < @ $j > in case $M undefined 32 33S21 34 35# do sender/recipient common rewriting 36R$+ $: $>19 $1 37 38# if already @ qualified, we are done 39R$* < @ $+ > $* $@ $1 < @ $2 > $3 already qualified 40 41# don't qualify list:; syntax 42R$* :; $@ $1 :; 43 44# unqualified names (e.g., "eric") are qualified by local host 45R$+ $: $1 < @ $j > 46 47S19 48 49# pass <route-addr>s through 50R< @ $+ > $* $@ < @ $1 > $2 resolve <route-addr> 51 52# output fake domains as user%fake@relay 53ifdef(`BITNET_RELAY', 54`R$+ <@ $+ . BITNET > $: $1 % $2 .BITNET < @ $B > user@host.BITNET', 55 `dnl') 56ifdef(`CSNET_RELAY', 57`R$+ <@ $+ . CSNET > $: $1 % $2 .CSNET < @ $C > user@host.CSNET', 58 `dnl') 59R$+ <@ $+ . UUCP > $: $2 ! $1 < @ $j > user@host.UUCP 60