Postfix forwarder
-
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 OKthank you for help.
-
Did you configured internal servers ips that can send mail to postfix forwarder?
Access List -> MyNetworks
-
Hi,
I added my internal server ip and mail relay running fine. ;)
Thank you for your answer.
bye.
-
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.
-
I do not have this issue on my servers.
Did you enabled postfix service?
-
yes of course, in "services –> Postfix Forwarder --> General (tab) Enable Postfix box is checked.
-
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.
-
What version of pfsense are you running?
Any log ?
-
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-p6You 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 -
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.
-
You going to correct this ?
-
-
You are the best.
Can you inform me when fix it's ok ?
Thanks
-
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.
-
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 15in tab Service –> PostfixFwd --> General, enable postfix box is checked
-
Can you check if postfix folders are created?
/var/db/postfix
/var/spool/postfix
/var/mail/postfix -
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 completed7/ 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 createdHere is the problem no… folder are not created... how I can help you ?
-
The package try to create these folders, can you check if /var/spool and /var/mail exists.
-
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): -
ok.
The mkdir will do it recursive.