[EMAIL PROTECTED] wrote:

On Wed, Aug 11, 2004 at 09:53:06PM -0600, Stephen Warren wrote:


[EMAIL PROTECTED] wrote:



I believe tmda-pending needs to clear its environment at startup. For
example, if I set QMAILHOST and QMAILUSER, then all messages released


from tmda-pending will have From: set to [EMAIL PROTECTED]


instead of the original sender.

I have noticed this since I do set QMAILHOST, QMAILUSER and
QMAILINJECT=f in my .bashrc.


Are you setting these to incorrect values? If so, why? If not, what's the problem?



I am setting them to correct values: to my return address, so that
when I send mail via qmail's sendmail to other people, they get the
correct address. But in this case, TMDA uses sendmail to deposit mail
into _my_ mailbox coming from other people. QMAILUSER and friends
certainly were never intended for this purpose.




You can setup TMDA to use SMTP for email delivery. This seems the simplest work-around for now... Or, tmda-pending is just a Python script - you can probably make your own local hacks that say something like:

if os.environ.has_key('QMAILHOST'):
   delete os.environ['QMAILHOST']
# Remembering the syntax off the top of my head - check with docs!

Or:

mv tmda-pending tmda-pending.orig
cat > tmda-pending
#!/bin/sh
export QMAILHOST=
exec tmda-pending.orig $*
^D
_________________________________________________
tmda-workers mailing list ([EMAIL PROTECTED])
http://tmda.net/lists/listinfo/tmda-workers

Reply via email to