Path: utzoo!utgpu!news-server.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!pacific.mps.ohio-state.edu!zaphod.mps.ohio-state.edu!samsung!munnari.oz.au!mel.dit.csiro.au!smart From: smart@mel.dit.csiro.au (Robert Smart) Newsgroups: comp.mail.sendmail Subject: Re: $h in IPC mailer line: meaning/use Message-ID: <1990Jul13.050028.25681@mel.dit.csiro.au> Date: 13 Jul 90 05:00:28 GMT References: <1990Jul12.040301.21074@mel.dit.csiro.au> Organization: CSIRO DIT (Melb.) Lines: 46 >In an MX mailer (I have only looked in 5.64/IDA/NIU) in deliver.c in >openmailer, if mailer is [IPC] then it seems to ignore the parameter. >So if your M line ends "A=IPC $h" the $h is ignored. It actually assigns >the value to CurHostName but that value is always overwritten by MX >records. > >I have taken the $h out of that line with no apparent ill affects > So now I would like to change deliver.c so that it >will only use MX records if there is no $h parameter. If there is a $h >parameter it will ignore the MXes and send the mail where I specify. I've done it and it seems to work *** deliver.c Fri Jul 13 14:29:28 1990 --- deliver.c~ Fri Jul 13 14:24:46 1990 *************** *** 802,813 **** register int i, j; register u_short port; - #ifdef OPTMX - if (pvp[1] != NULL){ - MxHosts[0] = pvp[1]; - Nmx = 1; - } - #endif OPTMX CurHostName = pvp[1]; if (!clever) syserr("non-clever IPC"); --- 802,807 ---- Then M lines look like this # TCP-A uses MX MTCP-A, P=[IPC], F=CDFMXhnmu, E=\r\n, R=12, S=12, A=IPC # TCP-T requires a destination to which mail is sent MTCP-T, P=[IPC], F=CDFMXhnmu, E=\r\n, R=12, S=12, A=IPC $h Perhaps this isn't quite the best way to implement it? We need some more organization in collecting sendmail patches. I suggest we start two organizations, one called Sendmail International and the other called the Open Sendmail Foundation and see if this will lead to better standardization :-). Bob Smart