John P <[EMAIL PROTECTED]> wrote:
> >
> > qmail-inject assumes that a FQDN contains at least one dot. If it doesn't
> > contain one, it assumes that it is a hostname with no domain, and appends
> > the contents of /var/qmail/control/defaultdomain (or me, or
> > "defaultdomain", in that order). This is in the manpage for qmail-inject.
[...]
> I was thinking of forcing the PHP script that's generating the script to
> insert correct address (From: [EMAIL PROTECTED]) in the header,
> but to me it seems a bit of a kludge. Is there a Better Way? I basically
> don't want qmail-inject to add the system name in. As before SMTP+POP works
> great.
There's various Better Ways. If you inject via qmail-inject, you can just set
the QMAILUSER and QMAILHOST environment variables and let qmail-inject do the
right thing. If you're relaying through another qmail host, you can use the
fixme/fixup trick for the originating IP address to send messages through
qmail-inject or new-inject on that host, and cause it to rewrite headers in
various arbitrary ways. You can supply an argument with the -f option to
qmail-inject to just set the envelope sender.
Charles
--
-----------------------------------------------------------------------
Charles Cazabon <[EMAIL PROTECTED]>
GPL'ed software available at: http://www.qcc.sk.ca/~charlesc/software/
Any opinions expressed are just that -- my opinions.
-----------------------------------------------------------------------