Qmail
[Top] [All Lists]

Re: qmail-dk not signing mail sent from system application

To: qmail List <qmail@list.cr.yp.to>
Subject: Re: qmail-dk not signing mail sent from system application
From: Phil Breskey <pbreskey@dotcomholdingsofbuffalo.com>
Date: Thu, 07 Jun 2007 09:43:31 -0400
Delivered-to: sp-com-lists@consult.net
Delivered-to: gmail-qmail@securepoint.com
Delivered-to: sp.com.list@gmail.com
Delivered-to: mailing list qmail@list.cr.yp.to
In-reply-to: <20070606201514.GJ2558@caesar.cse.nd.edu>
Mailing-list: contact qmail-help@list.cr.yp.to; run by ezmlm
References: <4666F97C.5060209@dotcomholdingsofbuffalo.com> <p06240603c28cac286ed5@chowder.jmatt.net> <4666FEF0.60601@dotcomholdingsofbuffalo.com> <20070606201514.GJ2558@caesar.cse.nd.edu>
User-agent: Thunderbird 2.0.0.0 (X11/20070326)
Kyle Wheeler wrote:
On Wednesday, June  6 at 02:37 PM, quoth Phil Breskey:
Hi Matt, thanks for the reply.  The line in the script I'm using is:

/usr/sbin/sendmail -t -i -fbounce@dotcomholdingsofbuffalo.com

I tried changing it to this:

/usr/sbin/sendmail -t -i -fbounce@dotcomholdingsofbuffalo.com DKSIGN=/etc/domainkeys/dotcomholdingsofbuffalo.com/default QMAILQUEUE=/var/qmail/bin/qmail-dk

Because in my reading it said something about qmail-inject passing along variables which were passed to it, but that didn't seem to work. <shrugs> I know it's probably something silly that I'm missing. Thanks again.

That's not the way environment variables work. You don't pass them as arguments to your function command, you have to establish them before you call your command. Like this:

    env DKSIGN=/etc/domainkeys/dotcomholdingsofbuffalo.com/default \
    QMAILQUEUE=/var/qmail/bin/qmail-dk \
    /usr/sbin/sendmail -t -i -fbounce@dotcomholdingsofbuffalo.com

~Kyle


Thanks everyone for the replies and help. I have yet to get it working for sending mail from the command line or from a script, but since it works via smtp, I know that the problem has to be some configuration I'm missing. I've even tried setting the environment variables DKSIGN and QMAILQUEUE in my .bash_profile (they echo out the right value), but still no go. Thanks again for the help. It's off to the man pages I go again to find what I'm missing.

<Prev in Thread] Current Thread [Next in Thread>