🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.mail.sendmail
Article #67

Fuzzy name matching- using special mailer for SOME messages

#67
From: Daniel R. Kegel
Date: Sat, 01 Aug 1992 18:31
71 lines
2500 bytes
Hi,
I'm trying to implement fuzzy mail forwarding.
My real hostname is blacks, and I have one DNS alias, horton; I would like 
mail sent to user@blacks to be delivered normally, and mail sent to 
first-last@horton to be delivered thru phquery.  phquery rewrites 
first-last@horont to userid@host, and resubmits letter with sendmail.

At first, I heard this could only be done with IDA sendmail.  However,
it seems to be working ok with vanilla sendmail.  Can anyone tell me
why I'd need IDA?
- Dan K. (dank@blacks.jpl.nasa.gov)

p.s. For those interested, here are context diffs showing the changes
I had to make to sendmail.cf.

*** /etc/sendmail.cf.noph	Sat Aug  1 12:12:04 1992
--- /etc/sendmail.cf.ph	Sat Aug  1 12:07:15 1992
***************
*** 34,41 ****
  Dj$w
  
  # Aliases for ourself
! Cw blacks blacks.jpl.nasa.gov
  
  # major relay mailer - typical choice is "ddn" if you are on the
  # Defense Data Network (e.g. Arpanet or Milnet)
  DMddn
--- 34,47 ----
  Dj$w
  
  # Aliases for ourself
! Cw horton horton.jpl.nasa.gov blacks blacks.jpl.nasa.gov
! #Cw blacks blacks.jpl.nasa.gov
  
+ #### start phquery
+ # Aliases for domain addresses for which we send mail thru phquery
+ CMhorton horton.jpl.nasa.gov 
+ #### end phquery
+ 
  # major relay mailer - typical choice is "ddn" if you are on the
  # Defense Data Network (e.g. Arpanet or Milnet)
  DMddn
***************
*** 249,254 ****
--- 255,265 ----
  Mlocal,	P=/bin/mail, F=rlsDFMmnP, S=10, R=20, A=mail -d $u
  Mprog,	P=/bin/sh,   F=lsDFMeuP,  S=10, R=20, A=sh -c $u
  
+ #### start phquery
+ # phquery mailer; rewrites addresses using CSO name lookup
+ MPH, P=/etc/horton/phquery, F=DFMhnmur,    A=phquery $u
+ #### end phquery
+ 
  S10
  # None needed.
  
***************
*** 361,366 ****
--- 372,381 ----
  S0
  # On entry, the address has been canonicalized and focused by ruleset 3.
  # Handle special cases.....
+ 
+ #### start phquery
+ R$*<@$=M>		$#PH  $@$w $:$1
+ #### end phquery
  
  R@			$#local $:$n			handle <> form
  

--- end ---
Technical Details
Message-ID: <dank.712693880@blacks>
Path: arc1-ca.pugleaf.net!sparky!uunet!elroy.jpl.nasa.gov!dank

Show Full Headers
Complete Article Headers
Newsgroups: comp.mail.sendmail
Path: arc1-ca.pugleaf.net!sparky!uunet!elroy.jpl.nasa.gov!dank
From: dank@blacks.jpl.nasa.gov (Daniel R. Kegel)
Subject: Fuzzy name matching- using special mailer for SOME messages
Message-ID: <dank.712693880@blacks>
Sender: news@elroy.jpl.nasa.gov (Usenet)
Nntp-Posting-Host: blacks.jpl.nasa.gov
Organization: Image Analysis Systems Group, JPL
Date: Sat, 1 Aug 1992 18:31:20 GMT
Lines: 71