home *** CD-ROM | disk | FTP | other *** search
- ###############################################################################
- ###############################################################################
- #####
- ##### @(#)mailers.m4 UK-2.1 sendmail configuration 18/11/88
- #####
- ##### The Mailer specifications
- #####
- ###############################################################################
- ###############################################################################
-
-
- ####################################################################
- ###
- ### Local and Program Mailer specification
- ###
- ####################################################################
-
- Mlocal, P=/bin/mail, F=rnlsmFD, S=20, R=20, A=mail -d $u
- Mbinmail, P=/bin/mail, F=rnlsmFD, S=20, R=20, A=mail -d $u
- Mprog, P=/bin/sh, F=nlsFD, S=20, R=20, A=sh -c $u
-
- S20
- R<$+> $@<$1> return transport addr
-
- R~$+ $1 remove '~' in To: line
- R$+@[$+] $@$1@[$2] domain literals
-
- ifdef(`LOCALSHOWUUCP',
- `# we assume an address is a uucp address if it contains more than two
- # hostnames (as opposed to domain names). This is not always right..
- R$+%$-%$-@$+ $:$>12$1%$2%$3@$4 strip outer domain name
- R$+%$-%$-@$+ $@$>8$1%$2%$3@$4 convert to uucp address')
-
- ifdef(`LOCALSHOWNRS',
- `R$+@$-.$+ $@$>9$1@$2.$3 convert to NRS ordering')
-
- ifdef(`LOCALSHOWLDOMAIN',
- `R$+@$+ $@$1@$2 return non-local address
- ifdef(`LOCALSHOWNRS',
- `R$+ $@$>9$1@$J add local domain - NRS style',
- `R$+ $@$1@$J add local domain - 822 style')')
-
- ifdef(`ETHERNAME',`
- ###################################################################
- ###
- ### Ethernet Mailer specification
- ###
- ###################################################################
-
- Mether, P=[IPC], F=nsmFDMuXC, S=21, R=21, A=IPC $h
-
- S21
- R$+@$+ $@$1@$2 address ok
- R$+ $@$1@ETHERNAME add ether domain name')
-
- ifdef(`TCPNAME',`
- ###################################################################
- ###
- ### TCP Mailer specification
- ###
- ###################################################################
-
- Mtcp, P=[IPC], F=nsmFDMuXL, S=22, R=22, A=IPC $h, E=\r\n
-
- #
- # header addresses are kept in percent style, rather than 822 style as
- # sendmail can not produce a correct routed 822 address from another style
- #
- S22
- R<$+> $@$>6$1 transport addr in 822 style
-
- R$+@$+ $@$1@$2 address ok
- R$+ $@$1@TCPNAME add tcp domain name')
-
- ifdef(`UUCPNAME',`
- ###################################################################
- ###
- ### UUCP Mailer specification
- ###
- ###################################################################
-
- ifdef(`UUCPMUUCP',`
- Muucp, F=nsmFDMuh, S=23, R=23, M=100000, ifdef(`UUCPAUTH',`
- P=/usr/lib/authorise, A=authorise uucp $g $h /usr/lib/uucp/',`
- P=/usr/lib/uucp/muucp, A=')muucp -r -gA -f$f@UUCPNAME -H$U $h $u
-
- #
- # RFC 976 style. Note, however, that addresses are kept in percent style,
- # rather than 822 style as sendmail can not produce a correct routed 822
- # address from another style
- #
- S23
- R<$+> $@<$1> return transport addr
-
- R$+@$+ $@$1@$2 address ok
- R$+ $@$1@UUCPNAME add uucp domain name',`
- Muucp, F=sFDMuh, S=23, R=23, M=100000, ifdef(`UUCPAUTH',`
- P=/usr/lib/authorise, A=authorise uucp $g $h /usr/bin/',`
- P=/usr/bin/uux, A=')uux - -r -gA $h!rmail ($u)
-
- #
- # Addresses are converted back to uucp style.
- #
- S23
- R<$+> $@<$1> return transport addr
-
- R$+@$+ $:$>8$1@$2 convert to uucp style
- R$+!$+ $@$1!$2 address ok
- R$+ $@UUCPNAME!$1 add uucp domain name')')
-
- ifdef(`JANETNAME',`
- ###################################################################
- ###
- ### Janet Mailer specification
- ###
- ###################################################################
-
- ifdef(`JANETHHSEND',`
- Mniftp, F=nsmFDMxu, S=24, R=24, M=100000, ifdef(`JANETAUTH',`
- P=/usr/lib/authorise, A=authorise janet $g $h /usr/lib/x25/',`
- P=/usr/lib/x25/hhsend, A=')hhsend $h $u',`
- Mniftp, F=SnsmFDMxu, S=24, R=24, M=100000, ifdef(`JANETAUTH',`
- P=/usr/lib/authorise, A=authorise janet $g $h /usr/lib/niftp/',`
- P=/usr/lib/niftp/ni_send, A=')ni_send -f $g $h $u')
-
- S24
- R<$+> $@<$1> return transport addr
-
- R$+@$+ $@$>9$1@$2 RFC822 -> NRS style
-
- R$+ $:$1@JANETNAME add janet domain name
- R$+@$+ $@$>9$1@$2 RFC822 -> NRS style')
-
- ifdef(`NEWSNAME',`
- ###################################################################
- #####
- ##### News Mailer specification
- #####
- ###################################################################
- ifdef(`NEWSRELAYED',`
- # This host forwards all news messages to a relay',`
- Mnews, P=/usr/lib/news/mail-news, F=nlsmFDMPuh, S=25, A=inews -f $g -n $u -h
-
- S25
- R<$+> $@<$1> return transport addr
- R$+@$+ $@$1@$2 address ok
- R$+ $@$1@NEWSNAME add local domain')')
-
- ifdef(`CSNETNAME',`
- ###################################################################
- ###
- ### CSNet PhoneNet Mailer specification
- ###
- ###################################################################
-
- Mpmdf, F=nsmFDM, S=26, R=26, M=100000, ifdef(`CSNETAUTH',`
- P=/usr/lib/authorise, A=authorise csnet $g $h /usr/local/lib/pmdf/',`
- P=/usr/local/lib/pmdf/pmdf-submit, A=')pmdf-submit -f $g $u
-
- S26
- R<$+> $@<$1> return transport addr
-
- R$+@$+ $@$1@$2 address ok
- R$+ $@$1@CSNETNAME add csnet domain name')
-
- ifdef(`DECNETNAME',`
- ###################################################################
- #####
- ##### DECNET Mailer specification
- #####
- ###################################################################
-
- Mmail11, F=nsmFDM, S=27, R=27, M=100000, ifdef(`DECNETAUTH',`
- P=/usr/lib/authorise, A=authorise decnet $g $h /usr/bin/',`
- P=/usr/bin/mail11, A=')mail11 $f $x $h $u
-
- S27
- R<$+> $@<$1> return transport addr
- R$+@$+ $:$>8$1@$2 convert to uucp style
- R$+!$+ $1::$2 and then to decnet style
- #R$+ $@DECNETNAME::$1 add local decnet name')
-
- ifdef(`XEROXNAME',`
- ###################################################################
- #####
- ##### Xerox Ethernet Mailer specification
- #####
- ###################################################################
-
- Mxerox, F=nsmFDSEuX, S=28, R=28, M=100000, ifdef(`XEROXAUTH',`
- P=/usr/lib/authorise, A=authorise xerox $g $h /usr/lib/',`
- P=/usr/lib/mxerox, A=')mxerox $u
-
- S28
- R$+@$+ $@$1@$2 address ok
- R$+ $@$1@XEROXNAME add local domain')
-