OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
 
problem with postfix and clamav.

From: Payne (paynemagidesign.com)
Date: Wed Aug 02 2006 - 02:24:00 CDT


Hi,

I am trying to get clamav to work with postfix, I am using using
amavis-new and have the following in....

main.cf
content_filter = amavis:[127.0.0.1]:10024
receive_override_options = no_address_mappings

master.cf

amavis unix - - - - 2 smtp
        -o smtp_data_done_timeout=1200
        -o smtp_send_xforward_command=yes
 
localhost:10025 inet n - - - - smtpd
        -o content_filter=
        -o local_recipient_maps=
        -o relay_recipient_maps=
        -o smtpd_restriction_classes=
        -o smtpd_client_restrictions=
        -o smtpd_helo_restrictions=
        -o smtpd_sender_restrictions=
        -o smtpd_recipient_restrictions=permit_mynetworks,reject
        -o mynetworks=127.0.0.0/8
        -o strict_rfc821_envelopes=yes
        -o
receive_override_options=no_unknown_recipient_checks,no_header_body_checks
        -o smtpd_bind_address=127.0.0.1

But I keep getting error

Aug 2 02:53:42 magi postfix/qmgr[26403]: 1C514167CA:
to=<mymailmydomain>, relay=none, delay=0, status=deferred (delivery
temporarily suspended: lost connection with 127.0.0.1[127.0.0.1] while
sending end of data -- message may be sent more than once)

Now if I try to connect via telnet it works...

telnet localhost 10024
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
220 [127.0.0.1] ESMTP amavisd-new service ready
quit
221 2.0.0 [127.0.0.1] amavisd-new closing transmission channel
Connection closed by foreign host.

Same is I try to contect...

telnet localhost 10025
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
220 magi.magidesign.com ESMTP Postfix

Any clues?