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

content filter after postfix/discard by transport

Expand Messages
  • Evelio Vila
    Hi everyone, I use transport_maps = proxy:pgsql:/etc/postfix/pgsql-transport.cf to discard mails being send to non-existing destinations inside my mta.
    Message 1 of 2 , Feb 1, 2009
    • 0 Attachment

      Hi everyone,

       

      I use

      transport_maps = proxy:pgsql:/etc/postfix/pgsql-transport.cf

       

      to discard mails being send to  non-existing destinations inside my mta.

       

      However I´ve installed amavis-newd to make some content-filtering (spamassasin, clamav)

       

      But since then my mails are filtered before the transport_maps decides it should be descarted wich

      is of course not very efficient.

       

      How can I make the transport_maps to discard mails before they are send to amavis?

       

      Main.cf

       

      transport_maps = proxy:pgsql:/etc/postfix/pgsql-transport.cf

       

      smtpd_client_restrictions = permit_mynetworks, reject_unknown_hostname, permit

       

      smtpd_recipient_restrictions = permit_mynetworks, check_client_access hash:/etc/postfix/check_client_access, reject_unauth_destination

       

      content_filter = smtp-amavis:[127.0.0.1]:10024

       

       

       

      Jan 31 15:01:53 mx2 postfix/smtpd[11774]: BA56839F93: client=angel.tenet.odessa.ua[85.238.107.194]

      Jan 31 15:02:16 mx2 postfix/cleanup[11896]: BA56839F93: message-id=<20090131200153.BA56839F93@...>

      Jan 31 15:02:16 mx2 postfix/qmgr[8491]: BA56839F93: from=<johann@...>, size=3406, nrcpt=1 (queue active)

      Jan 31 15:06:14 mx2 postfix/cleanup[11785]: 2AC2139F83: message-id=<20090131200153.BA56839F93@...>

      Jan 31 15:06:14 mx2 amavis[12036]: (12036-01-17) Passed SPAM, [85.238.107.194] [85.238.107.194] <johann@...> -> <johann@...>, quarantine: 5/spam-5ZuuvQ6qc934.gz, Message-ID: <20090131200153.BA56839F93@...>, mail_id: 5ZuuvQ6qc934, Hits: 20.373, size: 3399, queued_as: 2AC2139F83, 7080 ms

      Jan 31 15:06:14 mx2 postfix/smtp[12156]: BA56839F93: to=<johann@...>, relay=127.0.0.1[127.0.0.1]:10024, conn_use=17, delay=263, delays=26/231/0/7.1, dsn=2.0.0, status=sent (250 2.0.0 Ok: queued as 2AC2139F83)

      Jan 31 15:06:14 mx2 postfix/qmgr[8491]: BA56839F93: removed

       

       

      After the filter then it gets discarded…

       

       

      Jan 31 15:06:14 mx2 postfix/smtpd[11744]: 2AC2139F83: client=localhost[127.0.0.1]

      Jan 31 15:06:14 mx2 postfix/cleanup[11785]: 2AC2139F83: message-id=<20090131200153.BA56839F93@...>

      Jan 31 15:06:14 mx2 postfix/qmgr[8491]: 2AC2139F83: from=<johann@...>, size=4288, nrcpt=1 (queue active)

      Jan 31 15:06:14 mx2 postfix/discard[11961]: 2AC2139F83: to=<johann@...>, relay=none, delay=0.11, delays=0.1/0.01/0/0, dsn=2.0.0, status=sent (tesla.example.com)

      Jan 31 15:06:14 mx2 postfix/qmgr[8491]: 2AC2139F83: removed

       

       

       

      Thanks in advance,

       

       

      ila.

      VI Conferencia Internacional de Energía Renovable, Ahorro de Energía y Educación Energética
      9 - 12 de Junio 2009, Palacio de las Convenciones
      ...Por una cultura energética sustentable
      www.ciercuba.com
    • mouss
      ... why do you discard mail? ... use check_recipient_access.
      Message 2 of 2 , Feb 1, 2009
      • 0 Attachment
        Evelio Vila a écrit :
        > Hi everyone,
        >
        >
        >
        > I use
        >
        > transport_maps = proxy:pgsql:/etc/postfix/pgsql-transport.cf
        >
        >
        >
        > to discard mails being send to non-existing destinations inside my mta.
        >

        why do you discard mail?

        >
        >
        > However I´ve installed amavis-newd to make some content-filtering
        > (spamassasin, clamav)
        >
        >
        >
        > But since then my mails are filtered before the transport_maps decides
        > it should be descarted wich
        >
        > is of course not very efficient.
        >
        >
        >
        > How can I make the transport_maps to discard mails before they are send
        > to amavis?
        >

        use check_recipient_access.
      Your message has been successfully submitted and would be delivered to recipients shortly.