[comp.mail.sendmail] Having two local mailers

rand@hwcae.cfsat.honeywell.com (Douglas K. Rand) (04/05/91)

I have a difficulty. I have two local mailers defined. One is called
"local" and one is called "unix". Both have the 'l' flag set. And,
they work almost great. The mail gets delivered just fine.

The only problem that I've found is that the mailer "unix" doesn't put
the user's full name in the From field if they are set up to use the
"unix" mailer.

I've tracked it down to an if statement in evnelope.c. The function
setsender() checks to see if the CurEnv is defined as LocalMailer.
This gets set in main.c function main(). It checks to see if the
mailer name is "local"; if so, then it defines that as LocalMailer.

Now, should I hack into main() and setsender() to create a variable
UnixMailer, and  check for a mailer called "unix", and then add a
check for either LocalMailer or UnixMailer in setsender()? This
doesn't feel real good to me.

Or, should I change setsender() to look for the 'l' (M_LOCAL) flag on
the mailer. This sounds cleaner to me.

I have the ability to do the first one. I don't know enough about the
internals of Sendmail to do the second. Has anybody any suggestions?
Am I real foolish to define two local mailers?

The locations in the code are (sendmail 5.65 + IDA 1.3.5):

  o the variable LocalMailer is set in main.c line 481
  o LocalMailer is checked in envelope.c line 503

Thanks in Advance.
--
Douglas Keenan Rand                Honeywell -- Air Transport Systems Division
Phone: +1 602 436 2814               US Snail: P.O. Box 21111 Phoenix AZ 85036
Internet: @cim-vax.honeywell.com:rand@hwcae.cfsat.honeywell.com
   -or-   rand@ssdc.honeywell.com
UUCP: ...!uunet!asuvax!apciphx!hwcae!rand