Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!usc!snorkelwacker.mit.edu!bloom-beacon!eru!kth.se!sunic!mcsun!ukc!axion!uzi-9mm.fulcrum.bt.co.uk!igb From: igb@fulcrum.bt.co.uk (Ian G Batten) Newsgroups: comp.mail.sendmail Subject: Re: Help! Sendmail debugging problem Message-ID: Date: 21 Mar 91 09:01:07 GMT References: <1991Mar18.230044.6450@ee.rochester.edu> Sender: news@fulcrum.bt.co.uk (News with an UZI) Organization: BT Fulcrum, Birmingham Lines: 35 In article <1991Mar18.230044.6450@ee.rochester.edu> Mark Sirota writes: > I suspect that something is happening with the local-mailer rewriting > rulesets, which fully qualify the names, changing "msirota" to > "msirota@ee.rochester.edu". > > Now, I don't see why that should cause a problem. I mean, it has already > resolved to the local mailer, and $u should be "msirota" rather than > "msirota@ee.rochester.edu", right? Or is $u then passed through the > mailer-specific ruleset before final delivery or something? I thought that > only happened to the header addresses, not the envelope addresses. What on > earth could be going on here? After the address has been resolved it is passed through S and 4 prior to invocation of the mailer. There is support in IDA for different rulesets for header and transport rewrites, but it is not present in other sendmails. One technique is to wrap angle brakets around the transport address as it is generated in ruleset 0: R$+ $#local$:<$1> local via alias table which can then be spotted in S to mean ``leave alone'' S20 R<$+> $@<$1> return transport addr R$+@$+ $@$1@$2 return non-local address R$+ $@$1@$J add local domain - 822 style and finally stripped off in ruleset 4 S4 R<$+> $:$1 remove brackets from $u addr Hope this helps. ian