Loading ...
Sorry, an error occurred while loading the content.
 

clamsmtpd

Expand Messages
  • Tolga
    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 =
    Message 1 of 3 , Jul 3 1:20 AM
      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
      --
      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=<mtozses@...>, size=1257, nrcpt=3 (queue active)
      Jul 3 11:19:34 ozses postfix/qmgr[21873]: D837C2786B:
      to=<-o@...>, 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=yes@...>,
      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=<tolga@...>, 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.2C94166F01@...>
      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=<mtozses@...>,
      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?

      Regards,
      --
      667:
      The neighbor of the beast.
    • mouss
      ... did you read the comments at the bottom of the article? use content_filter = scan:[127.0.0.1]:10025. ... by using addresses that do not start with - .
      Message 2 of 3 , Jul 3 1:51 AM
        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=<mtozses@...>, size=1257, nrcpt=3 (queue active)
        > Jul 3 11:19:34 ozses postfix/qmgr[21873]: D837C2786B:
        > to=<-o@...>, 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=yes@...>,
        > 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=<tolga@...>, 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.2C94166F01@...>
        > 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=<mtozses@...>,
        > 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 "-".
      • Tolga
        Sorry, it was my bad. In the lines to be put in master.cf, I didn t uncomment the line that starts with scan. I pasted using vi, and they were all commented
        Message 3 of 3 , Jul 3 2:29 AM
          Sorry, it was my bad. In the lines to be put in master.cf, I didn't
          uncomment the line that starts with scan. I pasted using vi, and they
          were all commented out. I uncommented all of them, but apparently left
          that one.

          mouss wrote:
          > 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=<mtozses@...>, size=1257, nrcpt=3 (queue active)
          >> Jul 3 11:19:34 ozses postfix/qmgr[21873]: D837C2786B:
          >> to=<-o@...>, 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=yes@...>,
          >> 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=<tolga@...>, 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.2C94166F01@...>
          >> 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=<mtozses@...>,
          >> 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 "-".

          --
          Stay with *nix :)
        Your message has been successfully submitted and would be delivered to recipients shortly.