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.5 (Berkeley) 11/19/91) 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# unqualified names (e.g., "eric") "come from" $M 27R$+ $: $1 < @ $M > user w/o host 28R$+ < @ > $: $1 < @ $j > in case $M undefined 29 30S21 31 32# do sender/recipient common rewriting 33R$+ $: $>19 $1 34 35# if already @ qualified, we are done 36R$* < @ $+ > $* $@ $1 < @ $2 > $3 already qualified 37 38# unqualified names (e.g., "eric") are qualified by local host 39R$+ $: $1 < @ $j > 40 41S19 42 43# pass <route-addr>s through 44R< @ $+ > $* $@ < @ $1 > $2 resolve <route-addr> 45 46# output fake domains as user%fake@relay 47ifdef(`BITNET_RELAY', 48`R$+ <@ $+ . BITNET > $: $1 % $2 .BITNET < @ $B > user@host.BITNET', 49 `dnl') 50ifdef(`CSNET_RELAY', 51`R$+ <@ $+ . CSNET > $: $1 % $2 .CSNET < @ $C > user@host.CSNET', 52 `dnl') 53R$+ <@ $+ . UUCP > $: $2 ! $1 < @ $j > user@host.UUCP 54