dccifd - smtp sequence problem?

Martin Pála Martin.Pala@oskar.cz
Mon Aug 15 16:29:48 UTC 2005


Hello,

i'm trying to set postfix with dccifd before-queue content filter as described in dccifd manual page, however i have some strange problems - dccifd refuses the message right after DATA command as 'bad dccifd command sequence':

--8<--
[root@e2sgw01 ~]# telnet 127.0.0.1 10025
Trying 127.0.0.1...
Connected to 127.0.0.1.
Escape character is '^]'.

220 e2sgw01.oskarmobil.cz ESMTP Postfix
EHLO e2sgw01.oskarmobil.cz
250-e2sgw01.oskarmobil.cz
250-PIPELINING
250-SIZE 10240000
250-VRFY
250-ETRN
250-XFORWARD NAME ADDR PROTO HELO SOURCE
250 8BITMIME
XFORWARD NAME=e2sgw01.oskarmobil.cz ADDR=217.77.161.168 HELO=[127.0.0.1] PROTO=ESMTP SOURCE=LOCAL
250 Ok
MAIL FROM:<test@test.cz> SIZE=384
250 Ok
RCPT TO:<foo@bar.cz>
250 Ok
DATA
503 Bad dccifd command sequence
--8<--


I watched the traffic between client (telnet), dccifd and target postfix daemon (running on port 10026) ... the '503' error is returned by dccifd immediately (no DATA was passed to postfix). 

It seems to me that dccifd has not identified the smtp sequence correctly and that it thinks that the state is not ready for DATA.

The DCC version is 1.3.15

dccifd log (produced with -ddd option) follows:
--8<--
Aug 15 17:57:24 e2sgw01 postfix/smtpd[17181]: connect from localhost.localdomain[127.0.0.1]
Aug 15 17:57:24 e2sgw01 dccifd[16921]: 2r7EkU pass SMTP response: 220 e2sgw01.oskarmobil.cz ESMTP Postfix
Aug 15 17:58:08 e2sgw01 dccifd[16921]: 2r7EkU SMTP command: EHLO e2sgw01.oskarmobil.cz
Aug 15 17:58:08 e2sgw01 dccifd[16921]: 2r7EkU pass SMTP response: 250-e2sgw01.oskarmobil.cz
Aug 15 17:58:08 e2sgw01 dccifd[16921]: 2r7EkU pass SMTP response: 250-PIPELINING
Aug 15 17:58:08 e2sgw01 dccifd[16921]: 2r7EkU pass SMTP response: 250-SIZE 10240000
Aug 15 17:58:08 e2sgw01 dccifd[16921]: 2r7EkU pass SMTP response: 250-VRFY
Aug 15 17:58:08 e2sgw01 dccifd[16921]: 2r7EkU pass SMTP response: 250-ETRN
Aug 15 17:58:08 e2sgw01 dccifd[16921]: 2r7EkU pass SMTP response: 250-XFORWARD NAME ADDR PROTO HELO SOURCE
Aug 15 17:58:08 e2sgw01 dccifd[16921]: 2r7EkU pass SMTP response: 250 8BITMIME
Aug 15 17:59:52 e2sgw01 dccifd[16921]: 2r7EkU SMTP command: XFORWARD NAME=e2sgw01.oskarmobil.cz ADDR=217.77.161.168 HELO=[127.0.0.1] PROTO=ESMTP SOURCE=LOCAL
Aug 15 17:59:52 e2sgw01 dccifd[16921]: 2r7EkU pass SMTP response: 250 Ok
Aug 15 17:59:59 e2sgw01 dccifd[16921]: 2r7EkU SMTP command: MAIL FROM:<test@test.cz> SIZE=384
Aug 15 17:59:59 e2sgw01 dccifd[16921]: 2r7EkU pass SMTP response: 250 Ok
Aug 15 18:00:04 e2sgw01 dccifd[16921]: 2r7EkU SMTP command: RCPT TO:<foo@bar.cz>
Aug 15 18:00:04 e2sgw01 postfix/smtpd[17181]: 3BAE218049: client=e2sgw01.oskarmobil.cz[217.77.161.168]
Aug 15 18:00:04 e2sgw01 dccifd[16921]: 2r7EkU pass SMTP response: 250 Ok
Aug 15 18:00:06 e2sgw01 dccifd[16921]: 2r7EkU SMTP command: DATA
Aug 15 18:00:06 e2sgw01 dccifd[16921]: 2r7EkU SMTP response: 503 Bad dccifd command sequence
Aug 15 18:00:56 e2sgw01 dccifd[16921]: 2r7EkU SMTP command: quit
Aug 15 18:00:56 e2sgw01 postfix/smtpd[17181]: disconnect from localhost.localdomain[127.0.0.1]
Aug 15 18:00:56 e2sgw01 dccifd[16921]: 2r7EkU pass SMTP response: 221 Bye
Aug 15 18:00:56 e2sgw01 dccifd[16921]: 2r7EkU reset: SMTP QUIT
--8<--


Martin




More information about the DCC mailing list

Contact vjs@rhyolite.com by mail or use the form.