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

virtual(8) with content_filter ¿?

Expand Messages
  • Jordi Espasa Clofent
    Hi all, In my master.cf I have: smtp inet n - n - - smtpd -o content_filter=filtres So, when mailserver recieves a mail, it
    Message 1 of 5 , Feb 1, 2010
      Hi all,

      In my master.cf I have:

      smtp inet n - n - - smtpd -o
      content_filter=filtres

      So, when mailserver recieves a mail, it passes through 'filter' (is a
      perl-based script which control the auto-reply, quota and anti-spam).
      Nice here.

      The problem comes when I need that auto-reply works also between two
      accounts of same domain (controled by mailserver, of course):

      - account a.domain.com --> send an email
      - account b.domain.com --> recieves email

      b.domain.com has the auto-reply active and it works fine when the sender
      is from anywhere but .domain.com.

      ¿How can I do to make content_filter works also with account of same domain?

      I suspect the problem is I use the virtual(8) as LDA and i don't see how
      apply 'content_filter=' parameter here.

      Thanks in advance.

      + info:

      # postconf -n
      bounce_queue_lifetime = 2d
      command_directory = /usr/local/sbin
      config_directory = /usr/local/etc/postfix
      daemon_directory = /usr/local/libexec/postfix
      data_directory = /var/db/postfix
      home_mailbox = Maildir/
      html_directory = no
      mail_owner = postfix
      mailbox_size_limit = 1024000000
      mailq_path = /usr/local/bin/mailq
      manpage_directory = /usr/local/man
      maximal_queue_lifetime = 2d
      message_size_limit = 256000000
      mydomain = xxxx.xxx
      myhostname = xxx.xxxx.xxxx
      mynetworks_style = host
      newaliases_path = /usr/local/bin/newaliases
      queue_directory = /var/spool/postfix
      readme_directory = no
      sample_directory = /usr/local/etc/postfix
      sendmail_path = /usr/local/sbin/sendmail
      setgid_group = maildrop
      smtpd_client_restrictions = permit_mynetworks,
      permit_sasl_authenticated, reject_rbl_client bl.spamcop.net,
      reject_rbl_client zen.spamhaus.org,
      smtpd_recipient_restrictions = permit_sasl_authenticated,
      permit_mynetworks, reject_unauth_destination
      smtpd_sasl_auth_enable = yes
      smtpd_sasl_local_domain = noverificar
      smtpd_sasl_security_options = noanonymous
      smtpd_sender_restrictions = check_sender_access
      hash:/usr/local/etc/postfix/bloquejats
      unknown_local_recipient_reject_code = 550
      virtual_gid_maps = static:6
      virtual_mailbox_base = /home/postfix
      virtual_mailbox_domains =
      mysql:/usr/local/etc/postfix/mysql_virtual_domains_maps.cf
      virtual_mailbox_limit = 1024000000
      virtual_mailbox_maps =
      mysql:/usr/local/etc/postfix/mysql_virtual_mailbox_maps.cf
      virtual_minimum_uid = 100
      virtual_transport = virtual
      virtual_uid_maps = static:125

      --

      I must not fear. Fear is the mind-killer. Fear is the little-death that brings total obliteration. I will face my fear. I will permit it to pass over me and through me. And when it has gone past I will turn the inner eye to see its path. Where the fear has gone there will be nothing. Only I will remain.

      Bene Gesserit Litany Against Fear.
    • Wietse Venema
      ... All mail that arrives via smtpd is filtered, even if it is sent between local users, or users in the same domain. If some mail is not filtered, then it did
      Message 2 of 5 , Feb 1, 2010
        Jordi Espasa Clofent:
        > Hi all,
        >
        > In my master.cf I have:
        >
        > smtp inet n - n - - smtpd -o
        > content_filter=filtres

        All mail that arrives via smtpd is filtered, even if it is sent
        between local users, or users in the same domain.

        If some mail is not filtered, then it did not arrive via smtpd.

        Wietse
      • Jordi Espasa Clofent
        ... Thanks for response Wietse. I suspect that I m missing something essential. - 44@dadprod01.mcario.com - the sender - 99@dadprod01.mcario.com - the
        Message 3 of 5 , Feb 1, 2010
          On 02/01/2010 01:14 PM, Wietse Venema wrote:
          > Jordi Espasa Clofent:
          >> Hi all,
          >>
          >> In my master.cf I have:
          >>
          >> smtp inet n - n - - smtpd -o
          >> content_filter=filtres
          >
          > All mail that arrives via smtpd is filtered, even if it is sent
          > between local users, or users in the same domain.
          >
          > If some mail is not filtered, then it did not arrive via smtpd.

          Thanks for response Wietse. I suspect that I'm missing something essential.

          - 44@... -> the sender
          - 99@... -> the receipt with auto-reply enabled

          maillog shows:

          [...]
          Feb 1 13:24:36 dadprod01 postfix/smtpd[21930]: connect from
          62.Red-217-126-43.staticIP.rima-tde.net[xxx.xxx.xxx.xxx]
          Feb 1 13:24:37 dadprod01 postfix/smtpd[21930]: 9EFB0DA8F4:
          client=62.Red-217-126-43.staticIP.rima-tde.net[xxx.xxx.xxx.xxx],
          sasl_method=CRAM-MD5, sasl_username=a444@noverificar
          Feb 1 13:24:37 dadprod01 postfix/cleanup[21934]: 9EFB0DA8F4:
          message-id=<4B66C804.2050407@...>
          Feb 1 13:24:37 dadprod01 postfix/qmgr[7392]: 9EFB0DA8F4:
          from=<44@...>, size=656, nrcpt=1 (queue active)
          Feb 1 13:24:37 dadprod01 postfix/smtpd[21930]: disconnect from
          62.Red-217-126-43.staticIP.rima-tde.net[xxx.xxx.xxx.xxx]
          Feb 1 13:24:38 dadprod01 filtres.pl[21937]:
          from=<44@...> to=<99@...>
          antispam=smtp antivirus=smtp autoreply=smtp delays=0/0/0
          Feb 1 13:24:38 dadprod01 postfix/smtpd[21939]: connect from
          localhost.xxxx.xxxx[127.0.0.1]
          Feb 1 13:24:38 dadprod01 postfix/smtpd[21939]: 0852CDA8F5:
          client=localhost.xxxx.xxxx[127.0.0.1]
          Feb 1 13:24:38 dadprod01 postfix/cleanup[21934]: 0852CDA8F5:
          message-id=<4B66C804.2050407@...>
          Feb 1 13:24:38 dadprod01 postfix/qmgr[7392]: 0852CDA8F5:
          from=<44@...>, size=840, nrcpt=1 (queue active)
          Feb 1 13:24:38 dadprod01 postfix/smtpd[21939]: disconnect from
          localhost.xxxx.xxxx[127.0.0.1]
          Feb 1 13:24:38 dadprod01 postfix/pipe[21936]: 9EFB0DA8F4:
          to=<99@...>, relay=filtres, delay=0.61,
          delays=0.27/0.01/0/0.32, dsn=2.0.0, status=sent (delivered via filtres
          service)
          Feb 1 13:24:38 dadprod01 postfix/qmgr[7392]: 9EFB0DA8F4: removed
          Feb 1 13:24:38 dadprod01 postfix/virtual[21940]: 0852CDA8F5:
          to=<99@...>, relay=virtual, delay=0.13,
          delays=0.11/0.02/0/0.01, dsn=2.0.0, status=sent (delivered to maildir)
          Feb 1 13:24:38 dadprod01 postfix/qmgr[7392]: 0852CDA8F5: removed
          (...)

          ¿?



          --
          I must not fear. Fear is the mind-killer. Fear is the little-death that
          brings total obliteration. I will face my fear. I will permit it to pass
          over me and through me. And when it has gone past I will turn the inner
          eye to see its path. Where the fear has gone there will be nothing. Only
          I will remain.

          Bene Gesserit Litany Against Fear.
        • Wietse Venema
          ... As you see, the content_filter works for accounts in the same domain. This answers your question in previous email, which is: ?How can I do to make
          Message 4 of 5 , Feb 1, 2010
            Jordi Espasa Clofent:
            > On 02/01/2010 01:14 PM, Wietse Venema wrote:
            > > Jordi Espasa Clofent:
            > >> Hi all,
            > >>
            > >> In my master.cf I have:
            > >>
            > >> smtp inet n - n - - smtpd -o
            > >> content_filter=filtres
            > >
            > > All mail that arrives via smtpd is filtered, even if it is sent
            > > between local users, or users in the same domain.
            > >
            > > If some mail is not filtered, then it did not arrive via smtpd.
            >
            > Thanks for response Wietse. I suspect that I'm missing something essential.
            >
            > - 44@... -> the sender
            > - 99@... -> the receipt with auto-reply enabled
            >
            > maillog shows:
            >
            > [...]
            > Feb 1 13:24:36 dadprod01 postfix/smtpd[21930]: connect from
            > 62.Red-217-126-43.staticIP.rima-tde.net[xxx.xxx.xxx.xxx]
            > Feb 1 13:24:37 dadprod01 postfix/smtpd[21930]: 9EFB0DA8F4:
            > client=62.Red-217-126-43.staticIP.rima-tde.net[xxx.xxx.xxx.xxx],
            > sasl_method=CRAM-MD5, sasl_username=a444@noverificar
            > Feb 1 13:24:37 dadprod01 postfix/cleanup[21934]: 9EFB0DA8F4:
            > message-id=<4B66C804.2050407@...>
            > Feb 1 13:24:37 dadprod01 postfix/qmgr[7392]: 9EFB0DA8F4:
            > from=<44@...>, size=656, nrcpt=1 (queue active)
            > Feb 1 13:24:37 dadprod01 postfix/smtpd[21930]: disconnect from
            > 62.Red-217-126-43.staticIP.rima-tde.net[xxx.xxx.xxx.xxx]
            > Feb 1 13:24:38 dadprod01 filtres.pl[21937]:
            > from=<44@...> to=<99@...>
            > antispam=smtp antivirus=smtp autoreply=smtp delays=0/0/0

            As you see, the content_filter works for accounts in the same
            domain. This answers your question in previous email, which is:

            ?How can I do to make content_filter works also with account
            of same domain?

            If the content filter does not produce auto-replies between users
            in the same domain, then that is a bug in the content filter.

            Wietse
          • Jordi Espasa Clofent
            ... Completey clear now. Thanks for aclaration. -- I must not fear. Fear is the mind-killer. Fear is the little-death that brings total obliteration. I will
            Message 5 of 5 , Feb 1, 2010
              > If the content filter does not produce auto-replies between users
              > in the same domain, then that is a bug in the content filter.

              Completey clear now.
              Thanks for aclaration.


              --
              I must not fear. Fear is the mind-killer. Fear is the little-death that
              brings total obliteration. I will face my fear. I will permit it to pass
              over me and through me. And when it has gone past I will turn the inner
              eye to see its path. Where the fear has gone there will be nothing. Only
              I will remain.

              Bene Gesserit Litany Against Fear.
            Your message has been successfully submitted and would be delivered to recipients shortly.