[Postfix-es] unexpected command-line argument

Simon J Mudd sjmudd en pobox.com
Lun Oct 10 22:10:45 CEST 2005


rmcama at wanadoo.es (Kien) writes:

>     Es bastante largo pero lo voy a poner, pues estoy un poco cansado
> y no quisiera tener que volver a qmail:

[snip]
Largo es, pero se ve lo que esta ocurriendo.

[snip]
> 
> --D7AAC6000B.1128699083/rugonet.com
> Content-Description: Undelivered Message
> Content-Type: message/rfc822
> 
> Received: from localhost (localhost [127.0.0.1])
> 	by rugonet.com (Postfix) with ESMTP id D7AAC6000B
> 	for <rafalito at rugonet.com>; Fri,  7 Oct 2005 17:31:20 +0200 (CEST)
> Received: from rugonet.com ([127.0.0.1])
> 	by localhost (rugonet.com [127.0.0.1]) (amavisd-new, port 10024)
> 	with LMTP id 05299-01-12 for <rafalito at rugonet.com>;
> 	Fri, 7 Oct 2005 17:31:19 +0200 (CEST)

[se repite varias veces]

> Received: from rugonet.com ([127.0.0.1])
> 	by localhost (rugonet.com [127.0.0.1]) (amavisd-new, port 10024)
> 	with LMTP id 05298-01 for <rafalito at rugonet.com>;
> 	Fri, 7 Oct 2005 17:30:50 +0200 (CEST)
> Received: from [172.26.0.10] (unknown [172.26.0.10])
> 	(using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits))
> 	(No client certificate requested)
> 	by rugonet.com (Postfix) with ESMTP id 1778A6000B
> 	for <rafalito at rugonet.com>; Fri,  7 Oct 2005 17:30:49 +0200 (CEST)
> Message-ID: <4346949B.10709 at rugonet.com>
> Date: Fri, 07 Oct 2005 17:30:35 +0200
> From: enanin <enanin at rugonet.com>
> User-Agent: Mozilla Thunderbird 1.0.2 (Windows/20050317)
> X-Accept-Language: es-es, es
> MIME-Version: 1.0
> To:  rafalito at rugonet.com
> Subject: Prueba
> Content-Type: text/plain; charset=ISO-8859-1; format=flowed
> Content-Transfer-Encoding: 7bit
> X-Virus-Scanned: by amavisd-new-20030616-p10 (Debian) at rugonet.com
[se repite varias veces]
> X-Virus-Scanned: by amavisd-new-20030616-p10 (Debian) at rugonet.com
> 
> Esto es una segunda prueba.

Como te he dicho. Amavis tiene que volver a meter el mensaje en
Postfix a traves de un puerto donde el content_filter esta
deshabilitado.

En _mi_ configuracion lo hago asi:

# define the content filter (amavisd) [listens on port 10024]
# - smtp client which connects to the virus scanner
smtp-amavis    unix    -       -       y       -       5       smtp
  -o smtp_data_done_timeout=1200s
  -o smtp_send_xforward_command=yes
  -o smtp_never_send_ehlo=yes
  -o disable_dns_lookups=yes
  -o smtp_helo_name=send-to-amavis

# amavisd configuration
# - postfix listener on localhost only (listens to mail from amavis)
# - amavis itself is listening on 10024
# - here we DISABLE the content filter
127.0.0.1:10025 inet    n       -       y       -       5      smtpd
  -o receive_override_options=no_unknown_recipient_checks,no_header_body_checks
  -o content_filter=
  -o local_recipient_maps=
  -o smtpd_helo_restrictions=
  -o smtpd_client_restrictions=
  -o smtpd_sender_restrictions=
  -o smtpd_recipient_restrictions=permit_mynetworks,reject
  -o strict_rfc821_envelopes=yes
  -o mynetworks=127.0.0.0/8
  -o syslog_name=postfix-postamavis

Creo que tu amavisd-new esta volviendo a meter el correo en puerto 25,
o que en la configuracion del puerto 10025 no tienes la linea

  -o content_filter=

?puede ser?

Simon



Más información sobre la lista de distribución Postfix-es