7 msgPostfix 2.2.5 on latest Solaris 9 x86
5 msgPostfix Relay, and Pop-before-smtp
12 msgNewb Question
13 msgBest defense against this?
1 msgundelivered mail problem - SOLVED
4 msgLegal local-part
3 msgvirtual_alias_domains with mysql: 'User unknown...
6 msgSubmission port (587): howto to use differente ...
5 msgWhen does smtpd_reject_unlisted_recipient kick in?
4 msgPostfix 'falling back' on sasldb? I don't want ...
3 msgNested access maps (I think ;))
3 msgSuppression of encoding bad header function in ...
4 msgRE: Catchall ??
3 msgproblem with .forward files + forwarding loops
5 msgPostfix Strange Behaviours
7 msgContent filter question, based upon auth'ed or not
28 msgMail stuck in active queue for loooong time
11 msgHow to stop a user from changing the 'From:' he...
10 msg[Semi-OT] blocked port 465, anywhere?

chroot problems on Nexenta (OpenSolaris)
\ Stefán Freyr Stefánsson (20 Sep 2007)
. \ Victor Duchovni (20 Sep 2007)
. . \ Stefán Freyr Stefánsson (20 Sep 2007)
. \ Victor Duchovni (20 Sep 2007)
. . \ Stefán Freyr Stefánsson (20 Sep 2007)
. . . \ Victor Duchovni (20 Sep 2007)
. . . \ (Wietse Venema) (20 Sep 2007)

Subject:chroot problems on Nexenta (OpenSolaris)
Group:Postfix-users
From:Stefán Freyr Stefánsson
Date:20 Sep 2007


 
Hello.

I have installed Postfix on Nexenta but I'm having a minor problem
with getting it to relay to remote users when running in a chrooted
environment.

First off, if I change master.cf so that the smtp service has chroot
disabled everything works ok and I'm able to send to remote users.

However, I would like to run smtp using chroot and I'm baffled as to
what the problem could be. I've set the queue_directory variable to
/var/spool/postfix/ explicitly and I can verify from syslog that this
is in fact the directory that is being chrooted to.

But when I try relaying a message to a remote user that way I keep getting:
[ID 947731 mail.crit] fatal: unknown service: smtp/tcp

I've verified that /var/spool/postfix/etc/services is there and is
readable and it is exactly the same as my /etc/services file (which
must work since everything works when I'm not chrooted).

Here you can see the permissions of the chroot environment:

root@atlas:/var/spool/postfix# ls -la /var/spool/postfix/etc/
total 14
drwxr-xr-x 2 root root 512 Sep 20 09:05 .
drwxr-xr-x 19 root root 512 Sep 19 03:08 ..
-r--r--r-- 1 root root 1034 Sep 20 09:05 hosts
-rw-r--r-- 1 root root 56 Sep 20 09:05 localtime
-rw-r--r-- 1 root root 2101 Sep 20 09:05 nsswitch.conf
-r--r--r-- 1 root root 25 Sep 20 09:05 resolv.conf
-r--r--r-- 1 root root 4950 Sep 20 09:05 services

No differences between the two services files:
root@atlas:~# diff /etc/services /var/spool/postfix/etc/services
root@atlas:~#

Can anyone think of anything else that could be causing this??? Please
let me know if you would like more info (such as the output of
syslog).

Kind regards, Stefan Freyr.


© 2004-2008 readlist.com