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

    Postfix forwarder

    Scheduled Pinned Locked Moved pfSense Packages
    24 Posts 2 Posters 10.3k 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.
    • A
      Agrum
      last edited by

      Hello,

      It's the first time that I install "Postfix Forwarder" in Pfsense 2.0.1-RELEASE (i386)

      I receive mail normaly, but I cannot send mail…

      error is "postfix/smtpd [19398]: warnning: connect to private/anvil: No such file or directory"

      fyi:
      pfsense forward all mail to a SBS2011 server with Exchange.
      telnet (25) exchange to pfsense OK
      telnet (25) pfsense to ip sbs 2011 OK

      thank you for help.

      1 Reply Last reply Reply Quote 0
      • marcellocM
        marcelloc
        last edited by

        Did you configured internal servers ips that can send mail to postfix forwarder?

        Access List -> MyNetworks

        Treinamentos de Elite: http://sys-squad.com

        Help a community developer! ;D

        1 Reply Last reply Reply Quote 0
        • A
          Agrum
          last edited by

          Hi,

          I added my internal server ip and mail relay running fine. ;)

          Thank you for your answer.

          bye.

          1 Reply Last reply Reply Quote 0
          • A
            Agrum
            last edited by

            An other question, why after I reboot of my firewall, Postfix is stopped (Statuts –> Services)...

            | Services | Description      | Statut |
            | postfix  | Not available    |Stopped| >

            I clic on ">" for start the services... but he do not start :(

            I remove the package and re install it... and Postfix-Forwarder running.

            What I have forgotten ? A bug ?

            thank you for answers.

            1 Reply Last reply Reply Quote 0
            • marcellocM
              marcelloc
              last edited by

              I do not have this issue on my servers.

              Did you enabled postfix service?

              Treinamentos de Elite: http://sys-squad.com

              Help a community developer! ;D

              1 Reply Last reply Reply Quote 0
              • A
                Agrum
                last edited by

                yes of course, in "services –> Postfix Forwarder --> General (tab) Enable Postfix box is checked.

                1 Reply Last reply Reply Quote 0
                • A
                  Agrum
                  last edited by

                  it's embarrasing…

                  To following my previous post. I install a new Pfsense (Soekrix box) up to date with Postfix-Forwarder. When I restart the firewall, Postfix-forwarder stop.
                  In tab, Services --> Postfix-Forwarder enable is checked
                  In tab, Status --> Services Postfix-Forwarder is stopped and I cannot enable it !

                  I desintall, reinstall package (System –> Package) and I enable Postfix-Forwader... it running fine !

                  How I can fix this, force Postfix-Forwarder be enable after reboot ?

                  thank-you.

                  1 Reply Last reply Reply Quote 0
                  • marcellocM
                    marcelloc
                    last edited by

                    What version of pfsense are you running?

                    Any log ?

                    Treinamentos de Elite: http://sys-squad.com

                    Help a community developer! ;D

                    1 Reply Last reply Reply Quote 0
                    • A
                      Agrum
                      last edited by

                      Version:
                      Name beaver.xxxxx.com
                      Version 2.0.1-RELEASE (i386)
                      built on Mon Dec 12 19:00:03 EST 2011
                      FreeBSD 8.1-RELEASE-p6

                      You are on the latest version.
                      Platform nanobsd (4g)

                      Log:
                      Mar 21 13:55:00 php: : IPSEC: One or more IPsec tunnel endpoints has changed its IP. Refreshing.
                      Mar 21 13:54:59 postfix[59117]: fatal: chdir(/var/spool/postfix): No such file or directory
                      Mar 21 13:54:57 postfix[56819]: fatal: chdir(/var/spool/postfix): No such file or directory
                      Mar 21 13:54:57 php: : Postfix setup completed
                      Mar 21 13:54:56 postfix[55350]: fatal: chdir(/var/spool/postfix): No such file or directory
                      Mar 21 13:54:56 php: : Reloading/starting postfix
                      Mar 21 13:54:56 postfix[54552]: fatal: chdir(/var/spool/postfix): No such file or directory
                      Mar 21 13:54:55 kernel: pid 28598 (apinger), uid 0: exited on signal 11
                      Mar 21 13:54:55 apinger: Error while feeding rrdtool: Broken pipe
                      Mar 21 13:54:55 php: : Writing rc_file
                      Mar 21 13:54:55 postfix/sendmail[53235]: fatal: chdir /var/spool/postfix: No such file or directory
                      Mar 21 13:54:55 postfix[53066]: fatal: chdir(/var/spool/postfix): No such file or directory
                      Mar 21 13:54:54 php: : Postfix setup completed
                      Mar 21 13:54:53 php: : Writing out configuration
                      Mar 21 13:54:53 php: : The command '/usr/local/sbin/postfix reload' returned exit code '1', the output was ''
                      Mar 21 13:54:52 postfix[51353]: fatal: chdir(/var/spool/postfix): No such file or directory
                      Mar 21 13:54:52 php: : Reloading/starting postfix
                      Mar 21 13:54:51 postfix[50834]: fatal: chdir(/var/spool/postfix): No such file or directory
                      Mar 21 13:54:51 php: : Writing rc_file
                      Mar 21 13:54:51 postfix/sendmail[50551]: fatal: chdir /var/spool/postfix: No such file or directory
                      Mar 21 13:54:51 syslogd: kernel boot file is /boot/kernel/kernel
                      Mar 21 13:54:51 syslogd: exiting on signal 15
                      Mar 21 13:54:51 postfix[47402]: fatal: chdir(/var/spool/postfix): No such file or directory …. ???
                      Mar 21 13:54:50 php: : Postfix setup completed
                      Mar 21 13:54:49 php: : Writing out configuration
                      Mar 21 13:54:49 php: : The command '/usr/local/sbin/postfix reload' returned exit code '1', the output was ''
                      Mar 21 13:54:49 postfix[45089]: fatal: chdir(/var/spool/postfix): No such file or directory
                      Mar 21 13:54:49 php: : Reloading/starting postfix

                      1 Reply Last reply Reply Quote 0
                      • marcellocM
                        marcelloc
                        last edited by

                        that's nanobsd.

                        Nanobsd cleans /var every boot so that's why you can't get it working.

                        I'll include some version and dirs checks to fix it.

                        Treinamentos de Elite: http://sys-squad.com

                        Help a community developer! ;D

                        1 Reply Last reply Reply Quote 0
                        • A
                          Agrum
                          last edited by

                          You going to correct this ?

                          1 Reply Last reply Reply Quote 0
                          • marcellocM
                            marcelloc
                            last edited by

                            @Agrum:

                            You going to correct this ?

                            Yes  :)

                            Treinamentos de Elite: http://sys-squad.com

                            Help a community developer! ;D

                            1 Reply Last reply Reply Quote 0
                            • A
                              Agrum
                              last edited by

                              You are the best.

                              Can you inform me when fix it's ok ?

                              Thanks

                              1 Reply Last reply Reply Quote 0
                              • marcellocM
                                marcelloc
                                last edited by

                                @Agrum:

                                Can you inform me when fix it's ok ?

                                I've just pushed some dir checks to this package, try to reinstall in abount 15 minutes.

                                Thanks for your feedback.

                                Treinamentos de Elite: http://sys-squad.com

                                Help a community developer! ;D

                                1 Reply Last reply Reply Quote 0
                                • A
                                  Agrum
                                  last edited by

                                  I just uninstall / reinstall package, after reboot:

                                  It's the same version number –> v.2.3.3_1 Normal ?
                                  logs:

                                  Mar 21 16:30:05 php: : Writing rc_file
                                  Mar 21 16:30:05 postfix/sendmail[15154]: fatal: chdir /var/spool/postfix: No such file or directory
                                  Mar 21 16:30:05 php: : Writing rc_file
                                  Mar 21 16:30:05 postfix/sendmail[14813]: fatal: chdir /var/spool/postfix: No such file or directory
                                  Mar 21 16:30:03 php: : Writing out configuration
                                  Mar 21 16:30:03 php: : The command '/usr/local/sbin/postfix reload' returned exit code '1', the output was ''
                                  Mar 21 16:30:02 php: : Writing out configuration
                                  Mar 21 16:30:02 php: : The command '/usr/local/sbin/postfix reload' returned exit code '1', the output was ''
                                  Mar 21 16:30:02 postfix[12031]: fatal: chdir(/var/spool/postfix): No such file or directory
                                  Mar 21 16:30:02 syslogd: kernel boot file is /boot/kernel/kernel
                                  Mar 21 16:30:01 syslogd: exiting on signal 15

                                  in tab Service –> PostfixFwd --> General, enable postfix box is checked

                                  1 Reply Last reply Reply Quote 0
                                  • marcellocM
                                    marcelloc
                                    last edited by

                                    Can you check if postfix folders are created?

                                    /var/db/postfix
                                    /var/spool/postfix
                                    /var/mail/postfix

                                    Treinamentos de Elite: http://sys-squad.com

                                    Help a community developer! ;D

                                    1 Reply Last reply Reply Quote 0
                                    • A
                                      Agrum
                                      last edited by

                                      Hi Marcelloc,

                                      Beautiffull sun in my country this mornning :). Below my tests:

                                      1/ reboot
                                      2/ uninstall package
                                      3/ reboot
                                      4/ install package
                                      5/ clear log and test from an other network –> telnet ip 25 --> ehlo OK
                                      6/ reboot 
                                      logs:
                                      Mar 22 08:18:32 login: login on console as root
                                      Mar 22 08:18:31 php: : IPSEC: One or more IPsec tunnel endpoints has changed its IP. Refreshing.
                                      Mar 22 08:18:31 kernel: pid 27184 (apinger), uid 0: exited on signal 11
                                      Mar 22 08:18:31 apinger: Error while feeding rrdtool: Broken pipe
                                      Mar 22 08:18:30 postfix[782]: fatal: chdir(/var/spool/postfix): No such file or directory
                                      Mar 22 08:18:30 postfix[63532]: fatal: chdir(/var/spool/postfix): No such file or directory
                                      Mar 22 08:18:28 postfix[61741]: fatal: chdir(/var/spool/postfix): No such file or directory
                                      Mar 22 08:18:28 php: : Postfix setup completed

                                      7/ connect from ssh:

                                      Can you check if postfix folders are created?

                                      /var/db/postfix
                                      /var/spool/postfix
                                      /var/mail/postfix

                                      /var/db/postfix  YES created
                                      /var/spool/postfix NOT created
                                      /var/mail/postfix  NOT created

                                      Here is the problem no… folder are not created... how I can help you ?

                                      1 Reply Last reply Reply Quote 0
                                      • marcellocM
                                        marcelloc
                                        last edited by

                                        The package try to create these folders, can you check if /var/spool and /var/mail exists.

                                        Treinamentos de Elite: http://sys-squad.com

                                        Help a community developer! ;D

                                        1 Reply Last reply Reply Quote 0
                                        • A
                                          Agrum
                                          last edited by

                                          they don't exist

                                          my shell:
                                          [2.0.1-RELEASE][admin@beaver.arf.com]/var/spool(10): ls -lrt
                                          total 2
                                          drwxr-xr-x  16 root  postfix  512 Mar 22 08:43 postfix
                                          [2.0.1-RELEASE][admin@beaver.arf.com]/var/spool(11):

                                          1 Reply Last reply Reply Quote 0
                                          • marcellocM
                                            marcelloc
                                            last edited by

                                            ok.

                                            The mkdir will do it recursive.

                                            Treinamentos de Elite: http://sys-squad.com

                                            Help a community developer! ;D

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