[SOLVED] Postfix Forwarder Issues with pfsense 2.01-RELEASE



  • Postfix will make your pfsense system blow up if you update to the current release of pfsense. I was able to reproduce this problem after a reinstall of the pfsense software. Post fix will reload ok after you restore your configuration backup file and all is well until you change the mail logs path from system to var/mail/logs location.

    The error will say something like incorret line on 561 system.inc

    I have rebuilt the system 3 times now to see if I can fix it somehow. But for those using postfix, make sure you leave you maillog set to system after a rebuild. Again your system will blow up if you do an upgrade and have postfix installed with it pointing to the var/mail/log folder.

    Thanks for any resolutions someone may have on this.



  • I`ll take a look on it.



  • Thanks.


  • Rebel Alliance Developer Netgate

    patching system.inc to include the maillog is the problem. Inserting a line into a critical system file in that way is dangerous at best.

    If you must do that, forming a proper patch and applying a patch (even on the fly) would at least ensure by context that it ended up in the right place, and if the file didn't match, the patch wouldn't apply instead of mangling it.



  • If you must do that, forming a proper patch and applying a patch (even on the fly) would at least ensure by context that it ended up in the right place, and if the file didn't match, the patch wouldn't apply instead of mangling it.

    I'm working on it right now.



  • Fixed!

    upgrade to version 2.3.3 of postfix package

    Before editing system.inc to include mail logs on syslogd, postfix packages copy original system.inc file to /root/system.inc.backup but this backup file is from 2.0 if you are upgrading.

    I suggest doing this:

    • open pfsense console ( menu option 8 )

    • uninstall postfix package via GUI

    • remove maillog lines from /etc/inc/system.inc if you installed postfix on 2.0 and then upgraded.

    • restore original system.inc file (cp /root/system.inc.backup /etc/inc/system.inc) if you installed postfix after upgrade or clean install.

    • install postfix 2.3.3 package

    Note: uninstall process does not erase xml postfix config. When you reinstall all config will be there.

    If you can't access gui to remove postfix 2.3.2, restore system.inc file following above steps and try again.

    Sorry for the bug.



  • Thanks marcelloc, That seems to have corrected the issue.



  • Can you include in first post subject [SOLVED] ?


Log in to reply