Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 31 Aug 1997 16:22:26 +0200 (MET DST)
From:      maf@dtek.chalmers.se
To:        reilly@zeta.org.au
Cc:        questions@freebsd.org, nick@zeta.org.au
Subject:   Re: Curly sendmail config problem
Message-ID:  <199708311422.QAA21497@monet.math.chalmers.se>
In-Reply-To: <199708291332.XAA22919@gurney.reilly.home>

next in thread | previous in thread | raw e-mail | index | archive | help
On 29 Aug , Andrew Reilly wrote:
> I believe that the problem has only manifested itself with the
> installation of tkrat because tkrat is the first MUA I have installed
> that generates a "From:" header field, and I can't find a way to turn
> that off.  I think that Tkrat is also the only MUA I have that connects
> directly to the localhost SMTP socket to deliver mail, rather than just
> running sendmail -t.

You can select how it sends messages. Eitehr via SMTP or a program
(like sendmail). Actually that is one kludgy workaround for your
problem. Make a script which removes the From: headers and then passes
it on to sendmail and use this script as sending program.

> What is happening at the moment is that tkrat is filling out a From:
> field with a fully qualified (but deliberately bogus) domain name

I assume you know you can control which domain tkrat puts here via the
masquerade_as option.

> The "simplest" correct answer is to stop tkrat from generating a From:
> header.  None of my other mailers (mail, elm, mutt) seem to do that,
> and the From: address ends up right.  I spent this evening poring over
> the tkrat documentation and sources, but was unable to figure out how
> to do that: I don't really understand tcl syntax, for starters.

The from generation is buried rather deep into the c-library of tkrat.
There is currently no easy way to turn it off.

> The "most" correct answer is to make sendmail do the userdb lookup on
> the supplied From: address (after figuring out that it is a local user
> address despite being fully qualified).  Unfortunately, sendmail seems
> to use extra magic to do userdb lookups, rather than exposing the
> mechanism through the .cf file (where there are plenty of other data
> base lookups), so I don't know how to get this to happen.  I've thought

You could try to set masquerade_as to gurney. The the from header from
tkrat should be andrew@gurney which might do the trick. Unfortunately I
hev never needed the userdb feature of sendmail so I am afraid I can
not help you much there.

	/MaF




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199708311422.QAA21497>