Unfortunately no one can be told what fun_plug is - you have to see it for yourself.
You are not logged in.
Has anyone been successful installing Postfix? If so, could you please shed some light on the process? I am trying to carefully http://www.nslu2-linux.org/wiki/HowTo/S … ailServer2 but am stuck at:
# /opt/etc/init.d/S69postfix starting service postfix postsuper: fatal: scan_dir_push: open directory defer: Permission denied postfix/postfix-script: fatal: Postfix integrity check failed!
Offline
Check permissions on directories in .../spool/postfix/ or where opt version of postfix install the these directories.
Try to set following permissions.
drwx------ 2 postfix postfix 4096 Jul 13 21:51 active drwx------ 2 postfix postfix 4096 Jul 12 11:11 bounce drwx------ 2 postfix postfix 4096 Jul 12 11:11 corrupt drwx------ 5 postfix postfix 4096 Jul 13 21:45 defer drwx------ 5 postfix postfix 4096 Jul 13 21:45 deferred drwx------ 2 postfix postfix 4096 Jul 12 11:11 flush drwx------ 2 postfix postfix 4096 Jul 12 11:11 hold drwx------ 2 postfix postfix 4096 Jul 13 21:48 incoming drwx-wx--- 2 postfix postdrop 4096 Jul 12 11:11 maildrop drwxr-xr-x 2 postfix postfix 4096 Jul 13 21:45 pid drwx------ 2 postfix postfix 4096 Jul 13 21:51 private drwx--x--- 2 postfix postdrop 4096 Jul 13 21:51 public drwx------ 2 postfix postfix 4096 Jul 12 11:11 saved drwx------ 2 postfix postfix 4096 Jul 12 11:11 trace
Offline
forre wrote:
Check permissions on directories in .../spool/postfix/
Weird, that directory is completely missing:
/ # ls -l /var/spool drwxr-xr-x 2 root root 1024 Dec 27 2005 at drwxr-xr-x 3 root root 1024 Sep 30 16:00 cron
Or am I looking in the wrong "spool" dir?
Offline
I was in the wrong location. However, my queue folders are owned by root:
/opt/var/spool/postfix # ls -l drwx------ 2 root root 4096 Mar 28 2008 active drwx------ 2 root root 4096 Mar 28 2008 bounce drwx------ 2 root root 4096 Mar 28 2008 corrupt drwx------ 2 root root 4096 Mar 28 2008 defer drwx------ 2 root root 4096 Mar 28 2008 deferred drwx------ 2 root root 4096 Mar 28 2008 flush drwx------ 2 root root 4096 Mar 28 2008 hold drwx------ 2 root root 4096 Mar 28 2008 incoming drwx-wx--- 2 root root 4096 Mar 28 2008 maildrop drwxr-xr-x 2 root root 4096 Mar 28 2008 pid drwx------ 2 root root 4096 Mar 28 2008 private drwx--x--- 2 root root 4096 Mar 28 2008 public drwx------ 2 root root 4096 Mar 28 2008 saved drwx------ 2 root root 4096 Mar 28 2008 trace
Offline
OK, with some chown done the permissions are corrected.
Now, when I attempt to start postfix, everything appears fine:
# postfix start postfix/postfix-script: starting the Postfix mail system
However, there is no postfix process running afterwards, so I guess something goes wrong. Where are the logs to check?
Offline
vedeja wrote:
However, there is no postfix process running afterwards, so I guess something goes wrong. Where are the logs to check?
There's no postfix process. Look for 'master', 'pickup' and 'qmgr' processes or simply run 'postfix status'.
Offline
fonz wrote:
Look for 'master', 'pickup' and 'qmgr' processes
The 'master' process runs very briefly after I start postfix, but when I ps a few seconds later, it's all gone.
fonz wrote:
run 'postfix status'.
Do you mean 'postfix check'?
Offline
# postfix status postfix/postfix-script: fatal: usage: postfix start (or stop, reload, abort, flush, check, set-permissions, upgrade-configuration)
Offline
Hmm, that's partly my problem... I seem to have no logs, at least not at that location:
# ls /var/log/packages/postfix-* cannot access /var/log/packages/postfix-*: No such file or directory
I agree it's old(er than yours):
# ipkg list_installed | grep postfix postfix - 2.3.6-3 - The Postfix mail system is an alternative to sendmail.
Where can I get a newer version, if not at the locations stated in the instruction? (see post #1)
Last edited by vedeja (2008-09-30 23:01:46)
Offline
vedeja wrote:
Hmm, that's partly my problem... I seem to have no logs, at least not at that location:
Of course, not. /var/log/packages is a slackware-specific location. You need to find out what optware does with postfix. I'd look for log files in /opt/var/log/maillog or /var/log/maillog. Also, check syslog (/var/log/messages, start /ffp/start/syslogd.sh if not present). Installing postfix is often non-trivial. Fortunately, there's lots of good documentation at:
http://www.postfix.org/documentation.html
Installation instructions are also included in the source tarball. To get a newer postfix version, ask the optware guys or compile it yourself or wait for someone else to create a package or setup a <insert-distro-name-here>-chroot.
PS: Are you sure you want postfix? Running an MTA that is reachable from the net can create a lot of trouble (both for you and the rest of the world).
Last edited by fonz (2008-09-30 23:10:38)
Offline
fonz wrote:
check syslog (/var/log/messages, start /ffp/start/syslogd.sh if not present)
I did that, and found my source of error, a linefeed had unintentionally found its way into the main.cf
fonz wrote:
PS: Are you sure you want postfix? Running an MTA that is reachable from the net can create a lot of trouble (both for you and the rest of the world).
Sorry, I don't understand. If the MTA is not reachable from the outside world, what is the point of having it? If I don't want Postfix, what do you suggest I want?
PS, that last post was your 1000:nd, congrats (and thanks) fonz!
Offline
vedeja wrote:
Sorry, I don't understand. If the MTA is not reachable from the outside world, what is the point of having it? If I don't want Postfix, what do you suggest I want?
I'm sure you don't want your (accidentally) misconfigured postfix to become a spam relay. You need to be aware of the risks.
If all you want is to relay mail to your providers smtp server, there's esmtp in ffp. You need an MTA like postfix only, if you want to receive mail for some domain via smtp from other MTAs.
Offline
Well, I evetually got Postfix running, but still only half way through the instructions (see post #1). Considering how troublesome the installation/configuration has been so far - also the next step is giving me errors - together with fonz's words of warning, I have decided to drop my plans on having a mail server of my own. At least for now. Anyway, thanks for helping out! Perhaps someone else can make use of what I found and solved so far, feel free to hijack the thread.
Last edited by vedeja (2008-10-01 08:30:32)
Offline