2010/4/12 mouss <mo...@ml.netoyen.net>

> Alexis Ducastel a écrit :
> > Hello,
> >
> > I've postfix width dkim-filter installed. Each mail sent from sendmail ,
> > or coming from internet before to be forwarded are delayed of 5 min.
> > Not 4'30, not 5'10 ... but exactly 5 min ! according to received
> > headers, it seems like postfix keep it 5 min after dkim doing signature.
> >
> > I searched in postconf |grep everything that contains 300 seconds (5min)
> > but nothing relevant in my opinion.
> >
> > In facts, this postfix is only used for aliases , coupled with a MySQL.
> >
> > Does anybody knows where is the problem please ?
> >
> > Thanks a lot.
> >
> > Alexis Ducastel
> > =================================
> > Here is my complete main.cf <http://main.cf> if it could help :
>
> Please show
> - output of 'postconf -n', not main.cf.
> - contents of master.cf.
> - headers that show the 5 min delay
> and if possible,
> - relevant logs
>
> feel free to hide private infos, but do so coherently.
>
>
> > [snip]
>
>
Sorry for partial informations, i didn't notice that a problem report is
like a bug report.

anyway ...
Problem solved ! One of my friend has found a misconfiguration.

as i posted in my main.cf there was : smtp_tls_cert_file =
$config_directory/ssl/smtpd.pem

The key file was used as a certification file in SSL transactions.
Intra-communications between postfix and dkim were going down after 5 min of
start_tls try, then going stmp without tls successfuly.

Here is a part of log that expose symptoms :

....
Apr 12 17:44:48 bart postfix/pickup[4611]: DF572688179: uid=33 from=<
bou...@guilde-asgard.fr>
Apr 12 17:44:48 bart postfix/cleanup[4718]: DF572688179:
message-id=<20100412154448.df572688...@bart.localdomain>
Apr 12 17:44:48 bart postfix/qmgr[9932]: DF572688179: from=<
bou...@guilde-asgard.fr>, size=635, nrcpt=1 (queue active)
Apr 12 17:44:48 bart dkimproxy.out[509]: connect from 127.0.0.1
Apr 12 17:44:48 bart postfix/smtpd[4721]: connect from
localhost.localdomain[127.0.0.1]
Apr 12 *17:44:48* bart postfix/smtp[4720]: discarding EHLO keywords:
8BITMIME
Apr 12 *17:49:48* bart postfix/smtpd[4721]: SSL_accept error from
localhost.localdomain[127.0.0.1]: -1
Apr 12 17:49:48 bart postfix/smtpd[4721]: lost connection after STARTTLS
from localhost.localdomain[127.0.0.1]
Apr 12 17:49:48 bart postfix/smtpd[4721]: disconnect from
localhost.localdomain[127.0.0.1]
Apr 12 17:49:48 bart postfix/smtp[4720]: SSL_connect error to
127.0.0.1[127.0.0.1]:10027: -1
Apr 12 17:49:48 bart postfix/smtp[4720]: DF572688179: Cannot start TLS:
handshake failure
Apr 12 17:49:48 bart dkimproxy.out[511]: connect from 127.0.0.1
Apr 12 17:49:48 bart postfix/smtpd[4721]: connect from
localhost.localdomain[127.0.0.1]
Apr 12 17:49:48 bart postfix/smtp[4720]: discarding EHLO keywords: 8BITMIME
Apr 12 17:49:48 bart postfix/smtp[4720]: Host offered STARTTLS: [127.0.0.1]
Apr 12 17:49:48 bart postfix/smtpd[4721]: EC31D688024:
client=localhost.localdomain[127.0.0.1]
Apr 12 17:49:49 bart dkimproxy.out[511]: DKIM signing - signed;
message-id=<20100412154448.df572688...@bart.localdomain>, signer=<
bou...@guilde-asgard.fr>, from=<bou...@guilde-asgard.fr>
Apr 12 17:49:49 bart postfix/cleanup[4729]: EC31D688024:
message-id=<20100412154448.df572688...@bart.localdomain>
....

Generating an auto-certified certificate and provide it in main.cf is able
to solve problem.

Now delivery is immediate for me.

Thanks for your help.

Alexis Ducastel

Reply via email to