DSM-G600, DNS-3xx and NSA-220 Hack Forum

Unfortunately no one can be told what fun_plug is - you have to see it for yourself.

You are not logged in.

Announcement

#1 2008-09-29 20:09:02

vedeja
Member
Registered: 2008-02-21
Posts: 161

Postfix installation

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:

Code:

# /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!

¤ 2 x 500 GB Samsung Spinpoint ¤ FFP 0.5 ¤ Custom fanscript ¤
¤ Lighttpd 1.4.19 ¤ Transmission 1.50 ¤ FW 1.07 ¤

Offline

 

#2 2008-09-29 23:22:32

forre
Member
Registered: 2008-04-22
Posts: 26

Re: Postfix installation

Check permissions on directories in .../spool/postfix/ or where opt version of postfix install the these directories.

Try to set following permissions.

Code:

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

 

#3 2008-09-30 18:08:01

vedeja
Member
Registered: 2008-02-21
Posts: 161

Re: Postfix installation

forre wrote:

Check permissions on directories in .../spool/postfix/

Weird, that directory is completely missing:

Code:

/ # 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?


¤ 2 x 500 GB Samsung Spinpoint ¤ FFP 0.5 ¤ Custom fanscript ¤
¤ Lighttpd 1.4.19 ¤ Transmission 1.50 ¤ FW 1.07 ¤

Offline

 

#4 2008-09-30 19:41:03

vedeja
Member
Registered: 2008-02-21
Posts: 161

Re: Postfix installation

I was in the wrong location. However, my queue folders are owned by root:

Code:

/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

¤ 2 x 500 GB Samsung Spinpoint ¤ FFP 0.5 ¤ Custom fanscript ¤
¤ Lighttpd 1.4.19 ¤ Transmission 1.50 ¤ FW 1.07 ¤

Offline

 

#5 2008-09-30 21:48:29

vedeja
Member
Registered: 2008-02-21
Posts: 161

Re: Postfix installation

OK, with some chown done the permissions are corrected.

Now, when I attempt to start postfix, everything appears fine:

Code:

# 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?


¤ 2 x 500 GB Samsung Spinpoint ¤ FFP 0.5 ¤ Custom fanscript ¤
¤ Lighttpd 1.4.19 ¤ Transmission 1.50 ¤ FW 1.07 ¤

Offline

 

#6 2008-09-30 21:55:01

fonz
Member / Developer
From: Berlin
Registered: 2007-02-06
Posts: 1716
Website

Re: Postfix installation

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

 

#7 2008-09-30 22:15:53

vedeja
Member
Registered: 2008-02-21
Posts: 161

Re: Postfix installation

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'?


¤ 2 x 500 GB Samsung Spinpoint ¤ FFP 0.5 ¤ Custom fanscript ¤
¤ Lighttpd 1.4.19 ¤ Transmission 1.50 ¤ FW 1.07 ¤

Offline

 

#8 2008-09-30 22:36:47

fonz
Member / Developer
From: Berlin
Registered: 2007-02-06
Posts: 1716
Website

Re: Postfix installation

vedeja wrote:

Do you mean 'postfix check'?

No, I mean postfix status:

Code:

root@io:~# postfix status
postfix/postfix-script: the Postfix mail system is running: PID: 15435

Offline

 

#9 2008-09-30 22:44:06

vedeja
Member
Registered: 2008-02-21
Posts: 161

Re: Postfix installation

Code:

# postfix status
postfix/postfix-script: fatal: usage: postfix start (or stop, reload, abort, flush, check, set-permissions, upgrade-configuration)

¤ 2 x 500 GB Samsung Spinpoint ¤ FFP 0.5 ¤ Custom fanscript ¤
¤ Lighttpd 1.4.19 ¤ Transmission 1.50 ¤ FW 1.07 ¤

Offline

 

#10 2008-09-30 22:54:25

fonz
Member / Developer
From: Berlin
Registered: 2007-02-06
Posts: 1716
Website

Re: Postfix installation

Your postfix version is old, it seems.

Code:

root@io:~# ls /var/log/packages/postfix-*                
/var/log/packages/postfix-2.5.1-i486-1_SBo

Offline

 

#11 2008-09-30 23:00:43

vedeja
Member
Registered: 2008-02-21
Posts: 161

Re: Postfix installation

Hmm, that's partly my problem... I seem to have no logs, at least not at that location:

Code:

# ls /var/log/packages/postfix-*
cannot access /var/log/packages/postfix-*: No such file or directory

I agree it's old(er than yours):

Code:

# 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)


¤ 2 x 500 GB Samsung Spinpoint ¤ FFP 0.5 ¤ Custom fanscript ¤
¤ Lighttpd 1.4.19 ¤ Transmission 1.50 ¤ FW 1.07 ¤

Offline

 

#12 2008-09-30 23:07:40

fonz
Member / Developer
From: Berlin
Registered: 2007-02-06
Posts: 1716
Website

Re: Postfix installation

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

 

#13 2008-09-30 23:31:00

vedeja
Member
Registered: 2008-02-21
Posts: 161

Re: Postfix installation

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? smile

PS, that last post was your 1000:nd, congrats (and thanks) fonz!


¤ 2 x 500 GB Samsung Spinpoint ¤ FFP 0.5 ¤ Custom fanscript ¤
¤ Lighttpd 1.4.19 ¤ Transmission 1.50 ¤ FW 1.07 ¤

Offline

 

#14 2008-09-30 23:45:24

fonz
Member / Developer
From: Berlin
Registered: 2007-02-06
Posts: 1716
Website

Re: Postfix installation

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? smile

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

 

#15 2008-10-01 08:29:58

vedeja
Member
Registered: 2008-02-21
Posts: 161

Re: Postfix installation

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)


¤ 2 x 500 GB Samsung Spinpoint ¤ FFP 0.5 ¤ Custom fanscript ¤
¤ Lighttpd 1.4.19 ¤ Transmission 1.50 ¤ FW 1.07 ¤

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2010 PunBB