bryan(_at_)ak(_dot_)net writes:
fetchmail: The QMAILINJECT environment variable is set.
This is dangerous as it can make qmail-inject or qmail's sendmail wrapper
tamper with your From: or Message-ID: headers.
Try "env QMAILINJECT= fetchmail YOUR ARGUMENTS HERE"
fetchmail: Abort.
fetchmail and qmail have coexisted on this system for a long time.
I need to use the QMAILINJECT variable, because I use a dynamic IP
address, and don't have a globally defined hostname.
The suggestion in the error message doesn't make sense, since "fetchmail"
will be interpreted by qmail as character commands.
Well, you figured it, but let me give some background. I introduced the
patch some time back after someone killed MY Message-ID and the
In-Reply-To:-header of mail he sent me was therefore broken, killing my
threading, and rejecting the QMAILINJECT or NULLMAILERINJECT variables
would eliminate two common causes for mail headers that had been
tampered with. (the i and f flags are the most common mistakes there,
but I didn't want to parse MTA crap.)
The real solution is to either use SMTP or to use a real MDA (maildrop
for instance) and stop doing stupid things like using
/var/qmail/bin/qmail-inject everywhere; you can normally leave settings
at /usr/sbin/sendmail if qmail is properly installed (it will still pay
attention to QMAILINJECT) and when your host and mail user agent are
configured properly, there's not need for qmail-inject + QMAILINJECT
tampering with your mail at all.
Only keep in mind that fetchmail's MDA option cannot currently handle
multi-drop properly unless a patch to implement this escaped my eyes.
--
Matthias Andree