Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    554 5.7.1 Postfix

    Scheduled Pinned Locked Moved Problems Installing or Upgrading pfSense Software
    4 Posts 2 Posters 3.4k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • M
      mbco
      last edited by

      Hi

      I have installed the postfix package on my pfsense box (version 2.1 beta). I have configure postfix, but when I try to send mail I get a 554 5.7.1 relay access denied. I have can't see what is wrong.

      <main.cf>/usr/local/etc/postfix/main.cf
      #main.cf
      #Part of the Postfix package for pfSense
      #Copyright (C) 2010 Erik Fonnesbeck
      #Copyright (C) 2011 Marcello Coutinho
      #All rights reserved.
      #DO NOT EDIT THIS FILE

      mynetworks = /usr/local/etc/postfix/mynetwork_table
      mynetworks_style = host

      relay_domains = mbco.nl
      transport_maps = hash:/usr/local/etc/postfix/transport
      local_recipient_maps =
      relay_recipient_maps = hash:/usr/local/etc/postfix/relay_recipients
      mydestination =
      mynetworks_style = host
      message_size_limit = 10240000
      default_process_limit = 100
      disable_vrfy_command = yes
      strict_rfc821_envelopes = yes

      #Just reject after helo,sender,client,recipient tests
      smtpd_delay_reject = yes

      Don't talk to mail systems that don't know their own hostname.

      smtpd_helo_required = yes
      smtpd_helo_restrictions =

      smtpd_sender_restrictions = reject_non_fqdn_sender,
      reject_unknown_sender_domain,
      reject_unauth_pipelining,
      reject_multi_recipient_bounce,
      permit

      Allow connections from specified local clients and strong check everybody else.

      smtpd_client_restrictions = permit_mynetworks,
      reject_unauth_destination,
      check_client_access pcre:/usr/local/etc/postfix/cal_pcre,
      check_client_access cidr:/usr/local/etc/postfix/cal_cidr,
      reject_unknown_client_hostname,
      reject_unauth_pipelining,
      reject_multi_recipient_bounce,
      permit

      smtpd_recipient_restrictions = permit_mynetworks,
      reject_unauth_destination,
      reject_unauth_pipelining,
      check_client_access pcre:/usr/local/etc/postfix/cal_pcre,
      check_client_access cidr:/usr/local/etc/postfix/cal_cidr,
      check_sender_access hash:/usr/local/etc/postfix/sender_access,
      reject_invalid_helo_hostname,
      reject_non_fqdn_helo_hostname,
      reject_unknown_recipient_domain,
      reject_non_fqdn_recipient,
      reject_multi_recipient_bounce,
      reject_spf_invalid_sender,
      permit

      spf_mark_only = yes
      postscreen_access_list = permit_mynetworks,
      cidr:/usr/local/etc/postfix/cal_cidr
      postscreen_dnsbl_action= enforce
      postscreen_blacklist_action= enforce
      postscreen_dnsbl_sites=bl.spamcop.net
      postscreen_dnsbl_threshold=1</main.cf>

      <relay_recipients>/usr/local/etc/postfix/relay_recipients

      @mbco.nl OK</relay_recipients>

      The most settings are the default setting. I only have added my domain mbco.nl. I like to use pfsense as my firewall. I have a exchange 2010 as internal mail server.

      Any help is welcome

      Martijn

      1 Reply Last reply Reply Quote 0
      • W
        wallabybob
        last edited by

        @mbco:

        but when I try to send mail I get a 554 5.7.1 relay access denied. I have can't see what is wrong.

        Which mail server sent you "relay access denied" - postfix on pfSense or one of its upstream servers?

        1 Reply Last reply Reply Quote 0
        • M
          mbco
          last edited by

          Hi

          It's the postfix server.  I have send a mail form my work address to my private address.

          <message from="" the="" ndr="" email="">pfsense.mbco.local #554 5.7.1 martijn@mbco.nl: Relay access denied ##/martijn@mbco.nl</message>

          Martijn

          1 Reply Last reply Reply Quote 0
          • W
            wallabybob
            last edited by

            Did you restart postfix after your adjustments to the configuration file? (I don't know if this is necessary and don't know enough about postfix to comment on the details of your configuration file.)

            1 Reply Last reply Reply Quote 0
            • First post
              Last post
            Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.