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

postscreen: unknown command: OK

Expand Messages
  • Jeetu
    Hi, I m trying to use postscreen using postfix-2.8.4 on rhel-4 64 bit server My postconf is postscreen_access_list = permit_mynetworks,
    Message 1 of 6 , Aug 2, 2011
    • 0 Attachment
      Hi,

      I'm trying to use postscreen using postfix-2.8.4 on rhel-4 64 bit server

      My postconf is
      postscreen_access_list =
      permit_mynetworks,
      hash:/etc/postfix/whitelisted_clients,
      hash:/etc/postfix/blacklisted_clients

      $head /etc/postfix/whitelisted_clients
      x.x.x.x OK
      x.x.x.x OK
      ...
      ...

      I'm getting following error in logs
      Aug 2 19:15:57 inbound-in-1 postfix/postscreen[24480]: warning:
      hash:/etc/postfix/whitelisted_clients: unknown command: OK -- ignoring
      the remainder of this access list
      Aug 2 19:17:07 inbound-in-1 postfix/postscreen[24480]: warning:
      hash:/etc/postfix/whitelisted_clients: unknown command: OK -- ignoring
      the remainder of this access list
      Aug 2 19:29:31 inbound-in-1 postfix/postscreen[24480]: warning:
      hash:/etc/postfix/whitelisted_clients: unknown command: OK -- ignoring
      the remainder of this access list


      --
      -Jeetu
    • Duane Hill
      Hello Jeetu, ... See: http://www.postfix.org/postconf.5.html#postscreen_access_list -- Best regards, Duane
      Message 2 of 6 , Aug 2, 2011
      • 0 Attachment
        Hello Jeetu,

        Tuesday, August 2, 2011, 9:15:13 AM, you wrote:

        > Hi,

        > I'm trying to use postscreen using postfix-2.8.4 on rhel-4 64 bit server

        > My postconf is
        > postscreen_access_list =
        > permit_mynetworks,
        > hash:/etc/postfix/whitelisted_clients,
        > hash:/etc/postfix/blacklisted_clients

        > $head /etc/postfix/whitelisted_clients
        > x.x.x.x OK
        > x.x.x.x OK
        > ...
        > ...

        > I'm getting following error in logs
        > Aug 2 19:15:57 inbound-in-1 postfix/postscreen[24480]: warning:
        > hash:/etc/postfix/whitelisted_clients: unknown command: OK -- ignoring
        > the remainder of this access list
        > Aug 2 19:17:07 inbound-in-1 postfix/postscreen[24480]: warning:
        > hash:/etc/postfix/whitelisted_clients: unknown command: OK -- ignoring
        > the remainder of this access list
        > Aug 2 19:29:31 inbound-in-1 postfix/postscreen[24480]: warning:
        > hash:/etc/postfix/whitelisted_clients: unknown command: OK -- ignoring
        > the remainder of this access list

        See: http://www.postfix.org/postconf.5.html#postscreen_access_list

        --
        Best regards,
        Duane mailto:duane@...
      • Ralf Hildebrandt
        ... permit, not OK. -- Ralf Hildebrandt Geschäftsbereich IT | Abteilung Netzwerk Charité - Universitätsmedizin Berlin Campus Benjamin Franklin
        Message 3 of 6 , Aug 2, 2011
        • 0 Attachment
          * Jeetu <jeetendra.p@...>:

          > $head /etc/postfix/whitelisted_clients
          > x.x.x.x OK
          > x.x.x.x OK

          permit, not OK.

          --
          Ralf Hildebrandt
          Geschäftsbereich IT | Abteilung Netzwerk
          Charité - Universitätsmedizin Berlin
          Campus Benjamin Franklin
          Hindenburgdamm 30 | D-12203 Berlin
          Tel. +49 30 450 570 155 | Fax: +49 30 450 570 962
          ralf.hildebrandt@... | http://www.charite.de
        • Jeetu
          ... thank you. -- -Jeetu
          Message 4 of 6 , Aug 2, 2011
          • 0 Attachment
            On 02/08/11 7:53 PM, Duane Hill wrote:
            > See:http://www.postfix.org/postconf.5.html#postscreen_access_list

            thank you.

            --
            -Jeetu
          • Jeetu
            ... ok. i wanted to know if i add access_list in postscreen, then do i need it in smtpd_recipient_restrictions or i can just remove it from there ? -- -Jeetu
            Message 5 of 6 , Aug 2, 2011
            • 0 Attachment
              On 03/08/11 12:48 AM, Ralf Hildebrandt wrote:
              >> $head /etc/postfix/whitelisted_clients
              >> > x.x.x.x OK
              >> > x.x.x.x OK
              > permit, not OK.

              ok. i wanted to know if i add access_list in postscreen, then do i need
              it in smtpd_recipient_restrictions or i can just remove it from there ?

              --
              -Jeetu
            • Ralf Hildebrandt
              ... I don t understand the question. What you add in /etc/postfix/whitelisted_clients is valid for POSTSCREEN only. If your smtpd_recipient_restrictions should
              Message 6 of 6 , Aug 3, 2011
              • 0 Attachment
                * Jeetu <jeetendra.p@...>:
                > On 03/08/11 12:48 AM, Ralf Hildebrandt wrote:
                > >>$head /etc/postfix/whitelisted_clients
                > >>> x.x.x.x OK
                > >>> x.x.x.x OK
                > >permit, not OK.
                >
                > ok. i wanted to know if i add access_list in postscreen,
                > then do i need it in smtpd_recipient_restrictions or i can just remove
                > it from there ?

                I don't understand the question. What you add in
                /etc/postfix/whitelisted_clients is valid for POSTSCREEN only. If your
                smtpd_recipient_restrictions should (for whatever reason) block the
                SAME IP you also need to whitelist there as well!

                --
                Ralf Hildebrandt
                Geschäftsbereich IT | Abteilung Netzwerk
                Charité - Universitätsmedizin Berlin
                Campus Benjamin Franklin
                Hindenburgdamm 30 | D-12203 Berlin
                Tel. +49 30 450 570 155 | Fax: +49 30 450 570 962
                ralf.hildebrandt@... | http://www.charite.de
              Your message has been successfully submitted and would be delivered to recipients shortly.