OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
Re: clamsmtpd

From: mouss (mlist.onlyfree.fr)
Date: Tue Jul 03 2007 - 03:51:28 CDT


Tolga wrote:
> Hi,
>
> Following http://www.debian-administration.org/articles/259, I put in
> the following lines in main.cd and master.cf
>
> main.cf
> --
> content_filter = scan:127.0.0.1:10025
> receive_override_options = no_address_mappings
>

did you read the comments at the bottom of the article? use
content_filter = scan:[127.0.0.1]:10025.

> --
> master.cf
> --
> # AV scan filter (used by content_filter)
> scan unix - - n - 16 smtp
> -o smtp_send_xforward_command=yes
> # For injecting mail back into postfix from the filter
> 127.0.0.1:10026 inet n - n - 16 smtpd
> -o content_filter=
> -o receive_override_options=no_unknown_recipient_checks,no_header_body_checks
> -o smtpd_helo_restrictions=
> -o smtpd_client_restrictions=
> -o smtpd_sender_restrictions=
> -o smtpd_recipient_restrictions=permit_mynetworks,reject
> -o mynetworks_style=host
> -o smtpd_authorized_xforward_hosts=127.0.0.0/8
> Ever since, I've been getting the following in /var/log/messages
> Jul 3 11:19:33 ozses postfix/qmgr[21873]: D837C2786B:
> from=<mtozsessabanciuniv.edu>, size=1257, nrcpt=3 (queue active)
> Jul 3 11:19:34 ozses postfix/qmgr[21873]: D837C2786B:
> to=<-oozses.net>, orig_to=<-o>, relay=none, delay=1.1,
> delays=0.99/0.13/0/0, dsn=5.1.3, status=bounced (bad address syntax)
> Jul 3 11:19:34 ozses spamd[5443]: prefork: child states: II
> Jul 3 11:19:34 ozses postfix/qmgr[21873]: D837C2786B:
> to=<smtp_send_xforward_command=yesozses.net>,
> orig_to=<smtp_send_xforward_command=yes>, relay=none, delay=1.2,
> delays=0.99/0.21/0/0, dsn=4.3.0, status=deferred (mail transport
> unavailable)
> Jul 3 11:19:34 ozses postfix/qmgr[21873]: D837C2786B:
> to=<tolgaozses.net>, relay=none, delay=1.3, delays=0.99/0.29/0/0,
> dsn=4.3.0, status=deferred (mail transport unavailable)
> Jul 3 11:19:34 ozses postfix/cleanup[22221]: 2C94166F01:
> message-id=<20070703081934.2C94166F01ozses.net>
> Jul 3 11:19:34 ozses postfix/bounce[22227]: D837C2786B: sender
> non-delivery notification: 2C94166F01
> Jul 3 11:19:34 ozses postfix/qmgr[21873]: 2C94166F01: from=<>,
> size=2983, nrcpt=1 (queue active)
> Jul 3 11:19:37 ozses postfix/smtp[22231]: 2C94166F01:
> to=<mtozsessabanciuniv.edu>,
> relay=mail.sabanciuniv.edu[193.255.135.54]:25, delay=3,
> delays=0.02/0.03/0.08/2.8, dsn=2.0.0, status=sent (250 Ok: queued as
> B767E30ED48)
> Jul 3 11:19:37 ozses postfix/qmgr[21873]: 2C94166F01: removed
>
> Why and how can I fix it?
>

by using addresses that do not start with "-".