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

    Postfix forwarder - modify SMTP banner?

    Scheduled Pinned Locked Moved pfSense Packages
    40 Posts 3 Posters 12.7k 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
      mschiek01
      last edited by

      @dreadnought:

      I follow this except for the "at least" part… maybe I need to try using the WAN interface instead of loopback.

      That seems to have worked… I changed the rule to:

      TCP * * WAN address 25 (SMTP) * none

      And now postfix forwarder is answering... and emails are getting to my internal mail server.

      It should be answering now with whatever you put in smtpd_banner = $myhostname

      1 Reply Last reply Reply Quote 0
      • D
        dreadnought
        last edited by

        @mschiek01:

        Good.  :)

        You still should go to /var/log/maillog

        And take a look and see what postfix is doing and see if there are any other problems.

        I thought I replied to this but don't see it… anyway, I changed the postfix forwarder logging option to /var/log/maillog.  This file is 0 bytes when I download it from the pfsense GUI.  The Postfix dashboard widget is also just a blue bar that says Postfix.  This was the case before and after my changing the logging from System logs to /var/log/maillog.  Confused!  It appears email is being processed fine as I'm receiving it from my internal mail server and the headers mention my pfsense.domain.com.

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

          Try rebooting the box.  Then take a look at the log and see if it is logging properly.

          1 Reply Last reply Reply Quote 0
          • D
            dreadnought
            last edited by

            @mschiek01:

            Try rebooting the box.  Then take a look at the log and see if it is logging properly.

            When all else fails… yeah, that worked.  After rebooting I can now download and view /var/log/maillog and there are stats in the Postfix dashboard widget.

            It will be nice not having any more spam from Dr. Oz.  Not that you guys would know about that, because you've been blocking his mail.  And now I am too.  ;)

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

              @dreadnought:

              @mschiek01:

              Good.  :)

              You still should go to /var/log/maillog

              And take a look and see what postfix is doing and see if there are any other problems.

              I thought I replied to this but don't see it… anyway, I changed the postfix forwarder logging option to /var/log/maillog.  This file is 0 bytes when I download it from the pfsense GUI.  The Postfix dashboard widget is also just a blue bar that says Postfix.  This was the case before and after my changing the logging from System logs to /var/log/maillog.  Confused!  It appears email is being processed fine as I'm receiving it from my internal mail server and the headers mention my pfsense.domain.com.

              Also did you configure the tabs in postfix  "access lists" and "antispam"

              1 Reply Last reply Reply Quote 0
              • D
                dreadnought
                last edited by

                Also did you configure the tabs in postfix  "access lists" and "antispam"

                Antispam yes… access lists no.  In terms of the "Client Access List", I force users to connect to the LAN via VPN to send mail.  So I don't think I need to let postfix forwarder know about clients allowed to relay, because no one is?

                1 Reply Last reply Reply Quote 0
                • D
                  dreadnought
                  last edited by

                  Any idea where the Postfix dashboard widget gets its data?  It currently shows:

                  Postfix
                  2013-08-16
                  Sent
                  2

                  But I can see from /var/log/maillog (and from my inbox) that a lot more stuff has happened… e.g. rejections.

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

                    @dreadnought:

                    Also did you configure the tabs in postfix  "access lists" and "antispam"

                    Antispam yes… access lists no.  In terms of the "Client Access List", I force users to connect to the LAN via VPN to send mail.  So I don't think I need to let postfix forwarder know about clients allowed to relay, because no one is?

                    You are thinking the wrong direction.  the ACL is what postfix uses to process the email.  The key word being accept as in "INBOUND" mail.  Not outbound as it does not have any thing to do with outbound mail.

                    What you are seeing in the dashboard is correct.  The Sent actually refers to received.  So it received 2 emails from x and forwarded it to you smtp server.

                    Are you using mailscanner?

                    1 Reply Last reply Reply Quote 0
                    • D
                      dreadnought
                      last edited by

                      @mschiek01:

                      @dreadnought:

                      Also did you configure the tabs in postfix  "access lists" and "antispam"

                      Antispam yes… access lists no.  In terms of the "Client Access List", I force users to connect to the LAN via VPN to send mail.  So I don't think I need to let postfix forwarder know about clients allowed to relay, because no one is?

                      You are thinking the wrong direction.  the ACL is what postfix uses to process the email.  The key word being accept as in "INBOUND" mail.  Not outbound as it does not have any thing to do with outbound mail.

                      What you are seeing in the dashboard is correct.  The Sent actually refers to received.  So it received 2 emails from x and forwarded it to you smtp server.

                      Are you using mailscanner?

                      Oh… I think I get it now.  So the ACL is to whitelist my computers in case they send spammy-looking email, they won't be blocked by postfix forwarder?  I think I'll leave the entire set of options in that tab empty for now.

                      I thought the dashboard would show rejections, but it looks like it does not... I just have #s for sent and bounced, but I know many more messages are being rejected from looking at /var/log/maillog.

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

                        you are correct.

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