BHOLMES@cms.cc.wayne.edu (Brian Holmes) (06/05/90)
I need to have sendmail rewrite the 'To:' field of all mail addressed to 'To: *@xx.yy.zz' to 'To: *@xx.BITNET'. Is this this easy to accomplish in the sendmail.cf file? I'm a bit overwhelmed by this file and the Sun manual doesn't help too much either. Thanks in advance. Brian Holmes UCC Operating Systems & Communications PHONE: (313) 577-3750 FAX=577-5626 Wayne State University BITNET: BHOLMES@WAYNEST1 5925 Woodward INTERNET: BHOLMES@CMS.CC.WAYNE.EDU Detroit, MI 48202 U.S.A
nancy@uunet.uu.net (06/08/90)
To change "*@xx.yy.zz" to "*@xx.BITNET", where "xx" is any host name, add
one of the following lines to ruleset 0 (i.e., below the line "S0").
R$*@$+.yy.zz R$1@$2.BITNET domain yy.zz goes to BITNET
R$*@$+.$=D R$1@$2.BITNET domain in class D goes to BITNET
The second form will work only if two conditions are met: 1) the line
"CDyy.zz" appears near the top of the sendmail.cf file, 2) your sendmail
image contains the IDA patch (look for DV or OK lines). The second form
assumes that "yy.zz" is your own domain name.
You can test your change by using sendmail's test mode (the -bt option).
For example, say you made your changes in a file called test.cf.
/usr/lib/sendmail -bt -Ctest.cf
ADDRESS TEST MODE
Enter <ruleset> <address>
> 0,4 user@xx.yy.zz
... Check to see if the output changes the xx.yy.zz to xx.BITNET ...
Nancy Buehmann UUCP: ...!uunet!ingr!b11!nancy
Intergraph Corporation Internet: b11!nancy@ingr.com
Huntsville, Alabama 35894-0001