KSpagnol@massey.ac.nz (Ken Spagnolo) (09/06/89)
I am trying to move an email alias database onto our Pyramid OSx4.4 machine. Our addresses are of the form P.K.Dick@massey.ac.nz, which would map to something like phil@whatever.machine.on.campus. Incoming mail needs to be readdressed from the alias to the actual account, while outgoing mail needs to have the From: line rewritten with the user's alias. We already have a phone book type database that holds user information, including the alias. It is queried via a tcp connection to the port that has the daemon sitting on it. The idea is to have the mail system (and eventually news) use this existing method to determine what alias transformations are needed for a piece of mail, and whether or not the usercode is valid, etc. I intend to write a program to make the queries as well as edit the mail accordingly. The question is where do I hook this into the mail system? It would seem best to do it thru sendmail.cf, but I would need a mechanism to cause my program to be executed after sendmail got it, but before recipient resolution is done. So far, there seems to be no way of calling a program other than the mailer at the end. It looks as though I may have to call my program sendmail and have it execute the real thing when it's done. I'm not a sendmail guru and would appreciate tips from those who are! We are using sendmail version 5.54, because that's what we have the source to. The phone book datebase is actually the CSO Nameserver, given to us by Steven Dorner at the University of Illinios at Urbana- Champaign. With a bit of hacking, I've got it running in a rudimentary (for the time being) form. We are quite pleased with the package so far, as it should solve our email alias problems as well as provide a new service to our user community. Thanx. -- Ken Spagnolo - Systems Programmer, Postmaster, Usenet Administrator, etc... Computer Centre, Massey University, Palmerston North, New Zealand K.Spagnolo@massey.ac.nz Phone: +64-63-69099 x8587 New Zealand = GMT+12