[Postfix espanol] Postfix + Avmailgate

Alberto aalberto en euskalnet.net
Dom Mayo 19 18:51:24 CEST 2002


> Hola Peña:
>
> Estoy poniendo el Avmailgate como antivirus para correo con el Postfix. Y
> detallo configuracion y logs generados:
>
> postconf -n
> ---
> alias_database = hash:/etc/aliases
> alias_maps = hash:/etc/aliases
> command_directory = /usr/sbin
> config_directory = /etc/postfix
> daemon_directory = /usr/lib/postfix
> debug_peer_level = 2
> default_destination_concurrency_limit = 10
> default_privs = nobody
> inet_interfaces = all
> local_destination_concurrency_limit = 2
> local_recipient_maps = $alias_maps unix:passwd.byname
> mail_owner = postfix
> mailbox_command = /usr/bin/procmail -t
> mydestination = $myhostname, localhost.$mydomain $mydomain
tomate.fadlan.com
> mydomain = bersol.fadlan.com
> myhostname = kbl.bersol.fadlan.com
> mynetworks = 192.168.1.0/24, 127.0.0.0/8
> myorigin = /etc/mailname
> notify_classes = bounce, delay, policy, protocol, software, resource
> program_directory = /usr/lib/postfix
> queue_directory = /var/spool/postfix
> relay_domains = $mydestination
> sender_canonical_maps = hash:/etc/postfix/sender_canonical
> smtp_sasl_password_maps = hash:/etc/postfix/saslpass
> smtp_sasl_security_options = noplaintext
> smtpd_banner = $myhostname ESMTP $mail_name ($mail_version)
> smtpd_recipient_restrictions = permit_mynetworks    check_sender_access
> hash:/etc/postfix/remitentes_invalidos    check_relay_domains
> transport_maps = hash:/etc/postfix/transport
> virtual_gid_maps = mysql:/etc/postfix/ids.cf
> virtual_mailbox_base = /
> virtual_mailbox_maps = mysql:/etc/postfix/mysql-aliases.cf
> virtual_maps = hash:/etc/postfix/virtual
> virtual_uid_maps = mysql:/etc/postfix/ids.cf
> ---
> y los logs generados cuando mando un correo de prueba...
> ---
> May 19 02:12:30 kbl postfix/postfix-script: starting the Postfix mail
system
> May 19 02:12:31 kbl postfix/master[27596]: daemon started
> May 19 02:12:42 kbl avgated[27620]: version: AvMailGate-2.0.0.4
> May 19 02:12:42 kbl avgated[27620]: configuration file:
/etc/avmailgate.conf
> May 19 02:12:42 kbl avgated[27620]: library directory:  /usr/lib/AntiVir
> May 19 02:12:42 kbl avgated[27621]: ready to accept connections on port
> 10024
> May 19 02:12:43 kbl avgatefwd[27622]: version: AvMailGate-2.0.0.4
> May 19 02:12:43 kbl avgatefwd[27622]: configuration file:
> /etc/avmailgate.conf
> May 19 02:12:43 kbl avgatefwd[27622]: library directory:  /usr/lib/AntiVir
> May 19 02:12:45 kbl avgatefwd[27622]: engine version: 6.13.0.4
> May 19 02:12:45 kbl avgatefwd[27622]: vdf version: 6.13.0.14
> May 19 02:12:45 kbl avgatefwd[27622]: no valid license found - running in
> nonregistered demo mode
> May 19 02:12:45 kbl avgatefwd[27628]: Current directory is
> '/var/spool/avmailgate'.
> May 19 02:12:52 kbl postfix/pickup[27598]: 62B3012DAF: uid=0 from=<root>
> May 19 02:12:52 kbl postfix/cleanup[27635]: 62B3012DAF:
> message-id=<20020519021252.GA27631 en bersol.fadlan.com>
> May 19 02:12:52 kbl postfix/qmgr[27599]: 62B3012DAF:
> from=<aalberto en euskalnet.net>, size=823, nrcpt=1 (queue active)
> May 19 02:12:52 kbl avgated[27638]: connection from kbl
> May 19 02:12:52 kbl avgated[27638]: spooled to 27638-06EE6503
> May 19 02:12:52 kbl postfix/smtp[27637]: 62B3012DAF:
> to=<alberto en bersol.fadlan.com>, relay=127.0.0.1[127.0.0.1], delay=0,
> status=sent (250 Mail accepted for delivery.)
> May 19 02:12:52 kbl avgated[27638]: connection to kbl closed
> May 19 02:13:02 kbl avgatefwd[27656]: Message 'outgoing/xf-16976-3C50A3D0'
> scheduled for delivery now. Last attempt: Sun May 19 01:42:56 2002
> May 19 02:13:02 kbl avgatefwd[27659]: Message 'outgoing/xf-16976-7D44E174'
> scheduled for delivery now. Last attempt: Sun May 19 01:42:56 2002
> May 19 02:13:03 kbl avgatefwd[27662]: Message 'outgoing/xf-16976-686BE0CC'
> scheduled for delivery now. Last attempt: Sun May 19 01:42:56 2002
> May 19 02:13:03 kbl avgatefwd[27659]: connect() failed (Connection
refused)
> May 19 02:13:03 kbl avgatefwd[27659]: connection to host "localhost", port
> 10025 failed
> May 19 02:13:03 kbl avgatefwd[27659]: Message 'outgoing/qf-16976-7D44E174'
> could not be forwarded now. We'll retry later.
> May 19 02:13:03 kbl avgatefwd[27656]: connect() failed (Connection
refused)
> May 19 02:13:03 kbl avgatefwd[27656]: connection to host "localhost", port
> 10025 failed
> May 19 02:13:03 kbl avgatefwd[27656]: Message 'outgoing/qf-16976-3C50A3D0'
> could not be forwarded now. We'll retry later.
> May 19 02:13:03 kbl avgatefwd[27662]: connect() failed (Connection
refused)
> May 19 02:13:03 kbl avgatefwd[27662]: connection to host "localhost", port
> 10025 failed
> May 19 02:13:03 kbl avgatefwd[27662]: Message 'outgoing/qf-16976-686BE0CC'
> could not be forwarded now. We'll retry later.
> May 19 02:13:05 kbl avgatefwd[27693]: Message 'incoming/xf-27638-06EE6503'
> scheduled for scanning now.
> May 19 02:13:05 kbl avgatefwd[27693]: Virus Scanner will process message
> 'incoming/qf-27638-06EE6503'.
> May 19 02:13:06 kbl avgatefwd[27693]: VIRUS! the file
> "/var/tmp/av-27693-m80BD6/av-1" contains "Eicar-Test-Signatur"
> May 19 02:13:06 kbl avgatefwd[27693]: A virus has been found - mail will
be
> blocked.
> May 19 02:13:23 kbl avgatefwd[27713]: Message 'outgoing/xf-27693-7456D7C6'
> scheduled for delivery now.
> May 19 02:13:23 kbl avgatefwd[27714]: Message 'outgoing/xf-27693-3C94A4C0'
> scheduled for delivery now.
> May 19 02:13:23 kbl avgatefwd[27715]: Message 'outgoing/xf-27693-70AC6284'
> scheduled for delivery now.
> May 19 02:13:24 kbl avgatefwd[27713]: connect() failed (Connection
refused)
> May 19 02:13:24 kbl avgatefwd[27713]: connection to host "localhost", port
> 10025 failed
> May 19 02:13:24 kbl avgatefwd[27713]: Message 'outgoing/qf-27693-7456D7C6'
> could not be forwarded now. We'll retry later.
> May 19 02:13:24 kbl avgatefwd[27714]: connect() failed (Connection
refused)
> May 19 02:13:24 kbl avgatefwd[27714]: connection to host "localhost", port
> 10025 failed
> May 19 02:13:24 kbl avgatefwd[27714]: Message 'outgoing/qf-27693-3C94A4C0'
> could not be forwarded now. We'll retry later.
> May 19 02:13:24 kbl avgatefwd[27715]: connect() failed (Connection
refused)
> May 19 02:13:24 kbl avgatefwd[27715]: connection to host "localhost", port
> 10025 failed
> May 19 02:13:24 kbl avgatefwd[27715]: Message 'outgoing/qf-27693-70AC6284'
> could not be forwarded now. We'll retry later.
> ---
> Parece evidente que el correo se recepciona correctamente a traves del
> puerto 10024 por Avmailgate, que tras chequearlo lo reenvia al 10025 en el
> que Postfix ya recoge para su entrega, pero AHI se encuentra cerrado NO SE
> PORQUE.
>
> Los cambios que se han realizado segun las instrucciones propias son:
> - anular la linea "smtp      inet  n       -       -       -       -
> smtpd" del master.cf
> - añadir "content_filter = smtp:127.0.0.1:10024" en el main.cf
> - añadir 2 servicios en el /etc/services:
>     antivir         10024/tcp                       #Port for avgated
>     smtp-backdoor   10025/tcp                       #Port for postfix
> backdoor
> - establecer en el /etc/avmailgate.conf:
>     ListenAddress  localhost port antivir (para que escuche en el 10024)
>     ForwardTo SMTP: localhost port smtp-backdoor (para que reenvie al
10025)
>
> Bueno, pues eso es el tema, la cosa es que la semana pasada me funcionó, y
> lo quite para probar otro, ahora lo vuelvo a poner, y haga lo que haga,
> siempre obtengo el mensaje de que la conexion esta cerrada a la hora de
> reenviar el correo desde avmailgate a postfix.
>
> Cualquier ayuda sera agradecida eternamente, dado el grado de
desesperacion
> y agotamiento que tengo ya a  estas horas.
>
> un saludo a todos
> Alberto
>
>
> Agur,
> Alberto
>
> "Error de Windows 95- Win 95 no se puede cargar por CARGARSE el HD."
>
>

-
Para quitarte de la lista enviar la linea "unsubscribe postfix-espanol" en
el cuerpo de un mensaje a majordomo en WL0.org



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