Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Qmail: users

qmail domainkey issues

 

 

Qmail users RSS feed   Index | Next | Previous | View Threaded


kengheng at mysql

Feb 22, 2009, 7:40 PM

Post #1 of 3 (1417 views)
Permalink
qmail domainkey issues

Hi All, I just implemented domainkey into qmail-scanner-queue.pl

sub qmail_requeue {
my($sender,$env_recips,$msg)=@_;
my ($temp,$findate);

# check rcpthosts file for relaying domains
open(RCPTHOSTS, "</var/qmail/control/rcpthosts");
while (<RCPTHOSTS>) {
chomp;
if (/^$domain_returnpath$/i || $domain_returnpath =~ /$_$/i) {
# match found
# set DKSIGN variable to private key to sign with
# set DKQUEUE to original qmail-queue to spawn
$ENV{'DKSIGN'}='/etc/domainkeys/%/default';
$ENV{'DKQUEUE'}=$qmailqueue;

# set $qmailqueue to qmail-dk so qmail-scanner calls it to sign keys
$qmailqueue = '/var/qmail/bin/qmail-dk';
&minidebug("Signing message from $returnpath with a DomainKey");
}
}
close(RCPTHOSTS);

&debug("q_r: fork off child into $qmailqueue...");
...
...
...
...

However, i got the error msg sometimes at qmail-queue.log :
Mon, 23 Feb 2009 11:38:50 MYT:1549: error_condition:
X-QMAIL-SQLTECHNOLOGY-SCANNER-2.05st: Unable to close pipe to
/var/qmail/bin/qmail-dk [81] (#4.3.0) - Illegal seek

Any ideas ? Thanks

--
Best regards,
KengHeng. Chan
Mobile : +6-016-717-0273
SQL Technology Sdn Bhd
http://www.mysql.cc
ckh [at] mysql


bh at izb

Feb 22, 2009, 8:50 PM

Post #2 of 3 (1333 views)
Permalink
Re: qmail domainkey issues [In reply to]

kengheng wrote:
> Hi All, I just implemented domainkey into qmail-scanner-queue.pl
>
> sub qmail_requeue {
> my($sender,$env_recips,$msg)=@_;
> my ($temp,$findate);
>
> # check rcpthosts file for relaying domains
> open(RCPTHOSTS, "</var/qmail/control/rcpthosts");
> while (<RCPTHOSTS>) {
> chomp;
> if (/^$domain_returnpath$/i || $domain_returnpath =~ /$_$/i) {
> # match found
> # set DKSIGN variable to private key to sign with
> # set DKQUEUE to original qmail-queue to spawn
> $ENV{'DKSIGN'}='/etc/domainkeys/%/default';
> $ENV{'DKQUEUE'}=$qmailqueue;
>
> # set $qmailqueue to qmail-dk so qmail-scanner calls it to sign keys
> $qmailqueue = '/var/qmail/bin/qmail-dk';
> &minidebug("Signing message from $returnpath with a DomainKey");
> }
> }
> close(RCPTHOSTS);
>
> &debug("q_r: fork off child into $qmailqueue...");
> ...
> ...
> ...
> ...
>
> However, i got the error msg sometimes at qmail-queue.log :
> Mon, 23 Feb 2009 11:38:50 MYT:1549: error_condition:
> X-QMAIL-SQLTECHNOLOGY-SCANNER-2.05st: Unable to close pipe to
> /var/qmail/bin/qmail-dk [81] (#4.3.0) - Illegal seek
>
> Any ideas ? Thanks
>
Well, this is somewhat off-topic. DomainKeys(RFC4870) was obsoleted by
DKIM(RFC4871). So its solving will be a hollow victory.

byunghee


kengheng at mysql

Feb 23, 2009, 1:07 AM

Post #3 of 3 (1328 views)
Permalink
Re: qmail domainkey issues [In reply to]

Byung-Hee HWANG wrote:
> kengheng wrote:
>> Hi All, I just implemented domainkey into qmail-scanner-queue.pl
>>
>> sub qmail_requeue {
>> my($sender,$env_recips,$msg)=@_;
>> my ($temp,$findate);
>>
>> # check rcpthosts file for relaying domains
>> open(RCPTHOSTS, "</var/qmail/control/rcpthosts");
>> while (<RCPTHOSTS>) {
>> chomp;
>> if (/^$domain_returnpath$/i || $domain_returnpath =~ /$_$/i) {
>> # match found
>> # set DKSIGN variable to private key to sign with
>> # set DKQUEUE to original qmail-queue to spawn
>> $ENV{'DKSIGN'}='/etc/domainkeys/%/default';
>> $ENV{'DKQUEUE'}=$qmailqueue;
>>
>> # set $qmailqueue to qmail-dk so qmail-scanner calls it to sign
>> keys
>> $qmailqueue = '/var/qmail/bin/qmail-dk';
>> &minidebug("Signing message from $returnpath with a DomainKey");
>> }
>> }
>> close(RCPTHOSTS);
>>
>> &debug("q_r: fork off child into $qmailqueue...");
>> ...
>> ...
>> ...
>> ...
>>
>> However, i got the error msg sometimes at qmail-queue.log :
>> Mon, 23 Feb 2009 11:38:50 MYT:1549: error_condition:
>> X-QMAIL-SQLTECHNOLOGY-SCANNER-2.05st: Unable to close pipe to
>> /var/qmail/bin/qmail-dk [81] (#4.3.0) - Illegal seek
>>
>> Any ideas ? Thanks
>>
> Well, this is somewhat off-topic. DomainKeys(RFC4870) was obsoleted by
> DKIM(RFC4871). So its solving will be a hollow victory.
>
> byunghee
>
>
Yape, the DomainKeys is obsoleted, but they are still somebody using it
together with DKIM

--
Best regards,
KengHeng. Chan
Mobile : +6-016-717-0273
SQL Technology Sdn Bhd
http://www.mysql.cc
ckh [at] mysql

Qmail users RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.