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

Postfix - antispam and relay package

Scheduled Pinned Locked Moved
pfSense Packages
136
855
978.6k
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
    mrbrax
    last edited by Jul 15, 2016, 3:33 PM Jul 12, 2016, 9:38 AM

    Well i can't get it to work anyway, it times out when i change the 25 port forward to the postfix server, but i can telnet it no problem.

    Thanks for the help still. Not really pfSense related anymore.

    edit

    yep it's not possible to have a postfix relay server behind pfsense, it times out. been trying for 6 hours. should i file a bug report maybe?

    edit

    finally managed to get it to work, let's put this to rest. internal postfix server nic did not have a valid gateway, ~15 hours of searching/trying got me "sudo route add -net default gw 192.168.1.1 dev eth1" and it just started working
    some config alterations after that and we now have a working spam filter - no thanks to exchange!

    thanks to everyone that tried to help however, much appreciated!

    1 Reply Last reply Reply Quote 0
    • M
      MadCatZA
      last edited by Jul 17, 2016, 9:26 PM

      FYI. If you are in a bind and need a postfix solution, look into Nethserver.

      1 Reply Last reply Reply Quote 0
      • M
        mrbrax
        last edited by Jul 19, 2016, 9:34 AM

        @MadCatZA:

        FYI. If you are in a bind and need a postfix solution, look into Nethserver.

        No hardware left over, and we already have a machine in its place with Debian.

        It didn't work out though, seems like it can only have one gateway at a time unlike Windows, so it's either spam filter or our website.
        Seems like we're gonna have to endure the spam still.

        1 Reply Last reply Reply Quote 0
        • L
          LinuxCuba
          last edited by Aug 1, 2016, 5:33 PM

          Se olvidaron del postfix y mailscanner por fin ya va el pfsense 2.3.2 y nada de estos paquetes. Salu2

          1 Reply Last reply Reply Quote 0
          • D
            deddric
            last edited by Oct 3, 2016, 11:39 AM Oct 3, 2016, 11:12 AM

            Is this coming o 2.3.2 ?

            1 Reply Last reply Reply Quote 0
            • N
              netsense
              last edited by Oct 8, 2016, 9:11 AM

              Are there any news about pfsense 2.3 and postfix forwarder?

              1 Reply Last reply Reply Quote 0
              • B
                biggsy
                last edited by Oct 8, 2016, 9:22 AM

                Yes, here.

                1 Reply Last reply Reply Quote 0
                • B
                  Bismarck
                  last edited by Oct 14, 2016, 8:27 AM

                  Postfix + MailScanner runs fine here, it just needs manual installation and even survived pfSense update from 2.3.2 –> 2.3.2-p1. :P

                  1 Reply Last reply Reply Quote 0
                  • E
                    eaykoc
                    last edited by Oct 14, 2016, 2:51 PM

                    @Bismarck:

                    Postfix + MailScanner runs fine here, it just needs manual installation and even survived pfSense update from 2.3.2 –> 2.3.2-p1. :P

                    Would you please tell us how you installed them to pfSense 2.3.2?

                    The whole week I've been trying to compile and install the necessary (afaik) packages and I've failed in every possible way.

                    1 Reply Last reply Reply Quote 0
                    • B
                      Bismarck
                      last edited by Oct 20, 2016, 8:06 AM Oct 14, 2016, 3:56 PM

                      scroll down to Reply #709
                      /edit

                      the View config / Search mail / Queue / About /  tabs are broken, everything else works great.

                      1 Reply Last reply Reply Quote 0
                      • R
                        Ralph-DE
                        last edited by Oct 18, 2016, 3:16 PM

                        @Bismarck:

                        • next get those postfix files from github for 2.3.

                        https://github.com/pfsense/FreeBSD-ports/pull/23/files

                        • and copy them where they are belong

                        Can anybody tell how to do this? Get how and copy where?

                        1 Reply Last reply Reply Quote 0
                        • B
                          Bismarck
                          last edited by Nov 24, 2016, 1:49 PM Oct 18, 2016, 5:00 PM

                          MAKE A BACKUP BEFORE YOU GO THIS ROUTE!

                          Those are the files needed, for the manual install of the Postfix Package for pfSense 2.3.x

                          **/usr/local/bin/adexport.pl

                          /usr/local/www/shortcuts/pkg_postfix.inc

                          /usr/local/www/postfix_view_config.php
                          /usr/local/www/postfix_about.php
                          /usr/local/www/widgets/widgets/postfix.widget.php
                          /usr/local/www/postfix_queue.php
                          /usr/local/www/postfix_search.php
                          /usr/local/www/postfix_recipients.php
                          /usr/local/www/postfix.php

                          /usr/local/pkg/postfix_domains.xml
                          /usr/local/pkg/postfix_antispam.xml
                          /usr/local/pkg/postfix.inc
                          /usr/local/pkg/postfix_recipients.xml
                          /usr/local/pkg/postfix.xml
                          /usr/local/pkg/postfix_sync.xml
                          /usr/local/pkg/postfix_acl.xml

                          /usr/local/etc/rc.d/postfix
                          /usr/local/etc/rc.d/postfix.sh

                          /etc/inc/priv/postfix.priv.inc

                          /etc/inc/system.inc**

                          • Download the attached pfSense-2.3-Postfix.zip, unzip and copy the files to your system root /.

                          • Unlock the FreeBSD repo in

                          /usr/local/etc/pkg/repos/FreeBSD.conf > enabled: yes

                          /usr/local/etc/pkg/repos/pfSense.conf > enabled: yes

                          • Install Postfix via pkg

                          pkg install postfix

                          • Next edit:

                          /conf/config.xml

                          • and add Postfix to the Service Status and Menu:

                          <service><name>postfix</name>
                          <rcfile>postfix.sh</rcfile>
                          <executable>master</executable></service>

                          **<menu>
                          <name>Postfix Forwarder</name>
                          <tooltiptext>Configure Postfix Forwarder</tooltiptext>
                          Services
                          <url>/pkg_edit.php?xml=postfix.xml&id=0</url>
                          </menu>

                          <menu>
                          <name>Search Mail</name>
                          <tooltiptext>Search postfix logs</tooltiptext>
                          Diagnostics
                          <url>/postfix_search.php</url>
                          </menu>

                          <menu>
                          <name>Postfix Queue</name>
                          <tooltiptext>check postfix queue</tooltiptext>
                          Status
                          <url>/postfix_queue.php</url>
                          </menu>**

                          • Now cross your fingers and reboot!  :P

                          pfSense-2.3-Postfix.zip

                          1 Reply Last reply Reply Quote 0
                          • R
                            Ralph-DE
                            last edited by Oct 19, 2016, 9:41 AM

                            Bismarck, you are my hero! And Marcello of course.
                            The installation is easy (for those knowing the howto) and everything seems to work like a charm.
                            I don't see any logs, though. Shouldn't there be a mail log in var/log ?

                            1 Reply Last reply Reply Quote 0
                            • B
                              Bismarck
                              last edited by Oct 19, 2016, 2:04 PM

                              @Ralph-DE:

                              I don't see any logs, though. Shouldn't there be a mail log in var/log ?

                              Did you enabled it in the Postfix General Settings > Logging > Destination > /var/log/maillog ?

                              And check /etc/syslog.conf there should be a line for it:

                              …
                              local7.* %/var/log/dhcpd.log
                              mail. /var/log/maillog*
                              .notice;kern.debug;lpr.info;mail.crit;daemon.none;news.err;local0.none;local3.none;local4.none;local7.none;security.;auth.info;authpriv.info;daemon.info %/var/log/system.log
                              auth.info;authpriv.info |exec /usr/local/sbin/sshlockout_pf 15
                              *.emerg *
                              …

                              Otherwise, everything will be logged in the system.log facility, which can be very noisy. :P

                              1 Reply Last reply Reply Quote 0
                              • R
                                Ralph-DE
                                last edited by Oct 19, 2016, 5:01 PM

                                Should it not be "%/var/log/maillog"?

                                1 Reply Last reply Reply Quote 0
                                • M
                                  mikle
                                  last edited by Oct 20, 2016, 6:38 AM

                                  @Ralph-DE:

                                  Should it not be "%/var/log/maillog"?

                                  My syslog.conf:

                                  root@pfsense:/root# cat /etc/syslog.conf

                                  -cut-
                                  local4.*                                                        %/var/log/portalauth.log
                                  local7.*                                                        %/var/log/dhcpd.log
                                  mail.*                                                          /var/log/maillog
                                  -cut-

                                  It's without "%"

                                  1 Reply Last reply Reply Quote 0
                                  • R
                                    Ralph-DE
                                    last edited by Oct 20, 2016, 1:47 PM

                                    The following message comes repeatedly from the pfSense Crash Reporter:

                                    [20-Oct-2016 14:30:00 Europe/Berlin] PHP Stack trace:
                                    [20-Oct-2016 14:30:00 Europe/Berlin] PHP  1. {main}() /usr/local/www/postfix.php:0
                                    [20-Oct-2016 14:30:00 Europe/Berlin] PHP  2. grep_log() /usr/local/www/postfix.php:542
                                    [20-Oct-2016 14:30:00 Europe/Berlin] PHP  3. create_db() /usr/local/www/postfix.php:208
                                    [20-Oct-2016 14:40:00 Europe/Berlin] PHP Fatal error:  Call to undefined function sqlite_open() in /usr/local/www/postfix.php on line 476

                                    Is that something to be repaired or can I ignore this Messages?

                                    1 Reply Last reply Reply Quote 0
                                    • BismarckB
                                      Bismarck
                                      last edited by Nov 24, 2016, 1:50 PM Oct 20, 2016, 4:19 PM

                                      Little Update…

                                      postfix_about.php and postfix_view_config.php is working again.

                                      But postfix_search.php and postfix_queue.php is still broken.

                                      If someone have the skills to fix the javascript code, you are more then welcome!  :P

                                      pfSense-2.3-Postfix.zip

                                      1 Reply Last reply Reply Quote 0
                                      • I
                                        ikbendeman
                                        last edited by Oct 30, 2016, 7:47 PM

                                        Hi Bismarck,

                                        I followed your guidance from #709 on the latest version of pfsense.

                                        I wonder if the order of

                                        <menu>and <service>in the config.xml does matter, because after the reboot I don't see the postfix-forwarder item in the menu.

                                        You write to install postfix… but do we also need to install mailscanner?

                                        Pls advice on how to get postfix forwarder working.

                                        Kind regards,

                                        Bob</service> </menu>

                                        1 Reply Last reply Reply Quote 0
                                        • BismarckB
                                          Bismarck
                                          last edited by Oct 31, 2016, 8:20 PM

                                          <menu>and <service>needs to be, where

                                          <menu>and <service>items are  in the config.xml, no special order just right section.

                                          If you need MailScanner, you can install it but its not required to run Postfix, its just another layer for email security.</service> </menu></service> </menu>

                                          1 Reply Last reply Reply Quote 0
                                          • First post
                                            Last post
                                          Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.
                                            [[user:consent.lead]]
                                            [[user:consent.not_received]]