151225SericPUSHDIVERT(-1) 251225Seric# 351225Seric# Copyright (c) 1983 Eric P. Allman 462501Sbostic# Copyright (c) 1988, 1993 562501Sbostic# The Regents of the University of California. All rights reserved. 651225Seric# 751225Seric# %sccs.include.redist.sh% 851225Seric# 959766Sericifdef(`SMTP_MAILER_FLAGS',, 1059766Seric `define(`SMTP_MAILER_FLAGS', 1159766Seric `ifdef(`_OLD_SENDMAIL_', `L', `')')') 1251225SericPOPDIVERT 1351225Seric##################################### 1451225Seric### SMTP Mailer specification ### 1551225Seric##################################### 1651225Seric 17*65196SericVERSIONID(`@(#)smtp.m4 8.12 (Berkeley) 12/22/93') 1851225Seric 1964748SericMsmtp, P=[IPC], F=CONCAT(mDFMuX, SMTP_MAILER_FLAGS), S=11/31, R=ifdef(`_ALL_MASQUERADE_', `11/31', `21'), E=\r\n, 2059766Seric ifdef(`_OLD_SENDMAIL_',, `L=990, ')A=IPC $h 2164748SericMesmtp, P=[IPC], F=CONCAT(mDFMuXa, SMTP_MAILER_FLAGS), S=11/31, R=ifdef(`_ALL_MASQUERADE_', `11/31', `21'), E=\r\n, 2263755Seric ifdef(`_OLD_SENDMAIL_',, `L=990, ')A=IPC $h 23*65196SericMrelay, P=[IPC], F=CONCAT(mDFMuXa, SMTP_MAILER_FLAGS), S=11/31, R=61, E=\r\n, 2459766Seric ifdef(`_OLD_SENDMAIL_',, `L=2040, ')A=IPC $h 2551225Seric 2664748Seric# 2764748Seric# envelope sender and masquerading recipient rewriting 2864748Seric# 2951225SericS11 3064803SericR$+ $: $>51 $1 sender/recipient common 3164748SericR$* :; <@> $@ $1 :; list:; special case 32*65196SericR$* $@ $>61 $1 qualify unqual'ed names 3351225Seric 3464748Seric 3564748Seric# 3664748Seric# header recipient rewriting if not masquerading recipients 3764748Seric# 3864748SericS21 3964748Seric 4051686Seric# do sender/recipient common rewriting 4164803SericR$+ $: $>51 $1 4251686Seric 4364748Seric# unqualified names (e.g., "eric") are qualified by local host 4458117SericR$* < @ $* > $* $@ $1 < @ $2 > $3 already qualified 4564748SericR$+ $: $1 < @ $j > add local domain 4651686Seric 4754018Seric 4864748Seric# 4964748Seric# header sender and masquerading recipient rewriting 5064748Seric# 5164748SericS31 5264803SericR$+ $: $>51 $1 sender/recipient common 5364748SericR$* :; <@> $@ $1 :; list:; special case 5451686Seric 5564748Seric# do special header rewriting 5664748SericR$* <@> $* $@ $1 <@> $2 pass null host through 5764748SericR< @ $* > $* $@ < @ $1 > $2 pass route-addr through 5864748SericR$=E < @ $=w . > $@ $1 < @ $2 > exposed user as is 5964748SericR$* < @ $=w . > $: $1 < @ $M > masquerade as domain 6064748SericR$* < @ > $: $1 < @ $j > in case $M undefined 61*65196SericR$* $@ $>61 $1 qualify unqual'ed names 6251686Seric 6351686Seric 6464748Seric# 6564748Seric# common rewriting for all SMTP addresses 6664748Seric# 6764803SericS51 6851686Seric 6951225Seric# pass <route-addr>s through 7051245SericR< @ $+ > $* $@ < @ $1 > $2 resolve <route-addr> 7151225Seric 7251225Seric# output fake domains as user%fake@relay 7351225Sericifdef(`BITNET_RELAY', 7465175Seric`R$+ <@ $+ .BITNET. > $: $1 % $2 .BITNET < @ $B > user@host.BITNET 7565183SericR$+.BITNET <@ $+:$+ > $: $1 .BITNET < @ $3 > strip mailer: part', 7651225Seric `dnl') 7765183Sericifdef(`UUCP_RELAY', 7865183Seric`R$+ <@ $+ .UUCP. > $: $1 % $2 .UUCP < @ $Y > user@host.UUCP 7965183SericR$+.UUCP <@ $+:$+ > $: $1 .UUCP < @ $3 > strip mailer: part', 8051225Seric `dnl') 8158297Sericifdef(`_NO_UUCP_', `dnl', 8264973Seric`R$+ <@ $+ .UUCP. > $: $2 ! $1 < @ $j > user@host.UUCP') 8364748Seric 8464748Seric 8564748Seric# 8664748Seric# common sender and masquerading recipient rewriting 8764748Seric# 8864803SericS61 8964803Seric 90*65196SericR$* < @ $* > $* $@ $1 < @ $2 > $3 already qualified 9164748SericR$=E $@ $1 < @ $j> show exposed names 9264748SericR$+ $: $1 < @ $M > user w/o host 9364748SericR$+ <@> $: $1 < @ $j > in case $M undefined 94