El 2004-10-29 a las 13:52 +0200, Emiliano Sutil escribió: [aviso: correo largo y liado, leer entero antes de sacar conclusiones]
He simplificado mi configuracion del fichero master.cf y lo he dejado de esta manera:
smtp inet n - n - 2 smtpd -o content_filter=smtp:[127.0.0.1]:10024 smtp-amavis unix - - y - 2 smtp -o smtp_data_done_timeout=1200 -o disable_dns_lookups=yes ... 127.0.0.1:10025 inet n - n - - smtpd -o content_filter= ... vscan unix - n n - 10 pipe user=vscan argv=/usr/sbin/amavis ${sender} ${recipient}
Estaba yo tratando de adivinar que rayos es eso de smtp-amavis, hasta que
se me ha ocurrido que estarías siguiendo las instrucciones de amavis-new,
y ¡voilá! lo encontré. ¿Quien te manda leer las instrucciones? :-P
Me estoy guaseando porque el Yast lo instala y configura sin ninguna
historia - parece que lo hace como te envié en otro correo este mediodia.
Bueno, pues me leo un poco ese doc. Dice:
smtp-amavis unix - - y/n - 2 smtp
-o smtp_data_done_timeout=1200
-o smtp_send_xforward_command=yes
-o disable_dns_lookups=yes
COMMENT:
the '-o disable_dns_lookups=yes' in the smtp-amavis smtp service is
no longer needed since Postfix 2.0. The '-o smtp_send_xforward_command=yes'
(or '-o lmtp_send_xforward_command=yes') are optional and will be used
by future versions of amavisd-new, primarily for logging purposes.
It does not hurt if specified, even if not yet needed or not yet
supported by the currently running Postfix or amavisd-new.
Así que quita el "disable_dns_lookups" del tuyo, que tu tienes postfix > 2.0.
Además, te dice que edites el main.cf y le añadas algo - supongo que ya
lo habrás hecho, pero por si las moscas:
5. Tell Postfix to start forwarding all mail it receives to amavisd-new
for content inspection.
To the Postfix main.cf file add a line:
content_filter=smtp-amavis:[127.0.0.1]:10024
either with a text editor, or preferably using a shell command:
# postconf -e 'content_filter=smtp-amavis:[127.0.0.1]:10024'
COMMENT:
This global setting in main.cf affects any Postfix input service (i.e.
smtpd and pickup). If you require a more selective approach, the option
-o content_filter=smtp-amavis:[127.0.0.1]:10024
may be given in master.cf to selected services only, or the option:
-o content_filter=
on selected services may override (clear) the global setting.
La diferencia es que suse lo hace con esta otra linea (en lugar de
smtp-amavis):
content_filter = vscan:
y en el master.cf tiene entonces:
vscan unix - n n - 5 pipe
user=vscan argv=/usr/sbin/amavis ${sender} ${recipient}
pero también estas otras:
smtp inet n - n - 5 smtpd -o content_filter=smtp:[localhost]:10024
#smtps inet n - n - 5 smtpd -o smtpd_tls_wrappermode=yes -o content_filter=smtp:[localhost]:10024
#
No es una simple cuestion de nombre, aquí vscan es una tubería a un
ejecutable (que tiene que cargar). Eso supongo que es más lento que
enviarlo por smtp a un demonio que está ya cargado.
Por cierto, para liar más la cosa, la documentación del amavis recomienda,
que si tienes postfix 2.0 uses el protocolo lmtp en lugar del smtp:
ALTERNATIVE:
If you have a recent Postfix version such as 2.0, and
amavisd-new-20021116 or younger, Postfix can be told to feed mail
to amavisd via LMTP protocol instead of SMTP. This brings
multi-session mail transaction capability and per-recipient status
responses. Just replace the service name (last item) 'smtp' with
'lmtp' in the master.cf entry: vvvv
smtp-amavis unix - - y/n - 2 lmtp
-o lmtp_data_done_timeout=1200
-o lmtp_send_xforward_command=yes
(and change parameter names accordingly).
It works with earlier version of Postfix as well, but there are
one or two minor bugs in the Postfix lmtp client code (parsing a
LMTP port number, and unnecessarily lowercasing the addresses), so
it is easiest to stick to the fresh Postfix version.
Option 'max_use=10' should be added to main.cf to limit the
session reuse.
Me parece interesante. Voy a hacer probatinas yo también ;-)
Por cierto, una nota. Dice que para desactivar el amavis, basta con quitar
la linea "content_filter=smtp-amavis:[127.0.0.1]:10024" del main.cf
[....]
Probatinas. **************************
He puesto lo de:
smtp-amavis unix - - n - 2 lmtp
-o lmtp_data_done_timeout=1200
-o lmtp_send_xforward_command=yes
y en el main.cf:
#content_filter = vscan:
content_filter=smtp-amavis:[127.0.0.1]:10024
Vale. Pero mirando en la cabecera de la probatina recibida, veo:
Received: from nimrodel.valinor ([127.0.0.1])
by localhost (nimrodel [127.0.0.1]) (amavisd-new, port 10024) with ESMTP
id 16119-01 for
Respecto a lo que tiene Carlos que paso en un correo anterior tengo la linea esa de smtp-amavis que no se muy bien lo que hace.
Pos ya está explicado ;-)
Otra cosa el mensaje de error que me llega es mu raro, os lo paso, parece que se va añadiendo al mismo correo varias veces el mensaje cada vez que rebota.
Puede ser. -- Saludos Carlos Robinson