unreasonable packet length

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

unreasonable packet length

Maurizio Caloro-2

Hello

have running a little postix 2.11.3 with Dovecot and ClamAv-Milter

the integration with Clammilter running over TCP, but receive the following Warning messages.

 

Mar  6 13:38:53 mail postfix/smtpd[2091]: warning: milter inet:[127.0.0.1]:3310: unreasonable packet length: 1431194446 > 1073741823

Mar  6 13:38:53 mail postfix/smtpd[2091]: warning: milter inet:[127.0.0.1]:3310: read error in initial handshake

 

Discussing / Writing with ClanAV are this a possible issue on Postfix, please any know this problem if sending any Email.

 

Main.cf

# Milter Sttings

milter_clamav = inet:[127.0.0.1]:3310

milter_default_action = accept

milter_mail_macros = "i {mail_addr} {client_addr} {client_name} {auth_authen}"

milter_opendkim = inet:[127.0.0.1]:8891

milter_opendmarc = inet:[127.0.0.1]:8893

milter_protocol = 6

non_smtpd_milters = $milter_opendkim

smtpd_milters = $milter_clamav,$milter_opendkim,$milter_opendmarc

 

 

 

 

for me little strange that exactly this two lines “error messages” will be appair in following file: milter8.c

 

[Snip]

     * Receive the packet length.

                msg_warn("milter %s: unreasonable packet length: %ld > %ld",

                               milter->m.name, (long) pkt_len, (long) XXX_MAX_DATA);

 

                msg_warn("milter %s: read error in initial handshake", milter->m.name);

                /* milter8_read_resp() called milter8_comm_error() */

[Snip]

 

please friendly asking if here any one know this problem, and how i can troubleshooting this error.

Thanks

Mauri

Reply | Threaded
Open this post in threaded view
|

Re: unreasonable packet length

Wietse Venema
[hidden email]:

> Hello
>
> have running a little postix 2.11.3 with Dovecot and ClamAv-Milter
>
> the integration with Clammilter running over TCP, but receive the following
> Warning messages.
>
>  
>
> Mar  6 13:38:53 mail postfix/smtpd[2091]: warning: milter
> inet:[127.0.0.1]:3310: unreasonable packet length: 1431194446 > 1073741823
> Mar  6 13:38:53 mail postfix/smtpd[2091]: warning: milter
> inet:[127.0.0.1]:3310: read error in initial handshake

The length of 1431194446 that Postfix reports is the first 4 bytes
of what the Milter sends.

Converting 1431194446 to ASCII:

$ perl -e 'printf "%c%c%c%c\n", 1431194446>> 24, 0xff & (1431194446>> 16), 0xff & (1431194446>> 8), 1431194446 & 0xff;'
UNKN

My bet: the remote is sending "UNKNOWN ...." because it is not Milter.

        Wietse