vserver i smtp w postfixie w trybie chroot a rekordy ptr
Paweł Lęcznar
maillistpld w gmail.com
Nie, 14 Sie 2011, 10:54:14 CEST
W dniu 14.08.2011 09:46, Adam Osuchowski pisze:
> A restart postfiksa robiłeś?
tak, restart postfix'a, restart vservera ale dalej bez zmian
> smtpd inicjuje resolver przy połączeniu
> pierwszego klienta, a później trzyma już wynik. Jak to nie pomoże to
> zostaje jeszcze strace i zobaczyć co próbuje otwierać, a co się mu nie
> udaje. Ale to też na początku uruchomienia smtpd (czyli najlepiej strace
> mastera i patrzeć jak się odforkowany smtpd zachowuje).
tak wygląda strace procesu master dla chrootowanego procesu smtpd (na
pierwszy rzut oka wygląda tak samo gdy smtpd nie jest chrootowany a
przynajmniej część z otwieraniem /etc/resolv.conf)
# strace -eopen,socket,connect /usr/lib64/postfix/master
open("/etc/ld.so.cache", O_RDONLY) = 3
open("/usr/lib64/libpostfix-global.so.1", O_RDONLY) = 3
open("/usr/lib64/libpostfix-util.so.1", O_RDONLY) = 3
open("/lib64/libdb-4.7.so", O_RDONLY) = 3
open("/lib64/libresolv.so.2", O_RDONLY) = 3
open("/usr/lib64/libsasl2.so.2", O_RDONLY) = 3
open("/lib64/libssl.so.1.0.0", O_RDONLY) = 3
open("/lib64/libcrypto.so.1.0.0", O_RDONLY) = 3
open("/usr/lib64/libcdb.so.1", O_RDONLY) = 3
open("/lib64/libpcre.so.0", O_RDONLY) = 3
open("/lib64/libnsl.so.1", O_RDONLY) = 3
open("/lib64/libc.so.6", O_RDONLY) = 3
open("/lib64/libdl.so.2", O_RDONLY) = 3
open("/lib64/libpthread.so.0", O_RDONLY) = 3
open("/lib64/libcrypt.so.1", O_RDONLY) = 3
open("/lib64/libfreebl3.so", O_RDONLY) = 3
open("/etc/localtime", O_RDONLY) = 3
socket(PF_FILE, SOCK_DGRAM|SOCK_CLOEXEC, 0) = 3
connect(3, {sa_family=AF_FILE, path="/dev/log"}, 110) = -1 EPROTOTYPE
(Protocol wrong type for socket)
socket(PF_FILE, SOCK_STREAM|SOCK_CLOEXEC, 0) = 3
connect(3, {sa_family=AF_FILE, path="/dev/log"}, 110) = 0
open("/dev/null", O_RDWR) = 0
open("/dev/null", O_RDWR) = 1
open("/dev/null", O_RDWR) = 2
open("/etc/mail/main.cf", O_RDONLY) = 9
open("/etc/mail/dynamicmaps.cf", O_RDONLY) = 9
socket(PF_FILE, SOCK_STREAM|SOCK_CLOEXEC|SOCK_NONBLOCK, 0) = 9
connect(9, {sa_family=AF_FILE, path="/var/run/nscd/socket"}, 110) = 0
socket(PF_FILE, SOCK_STREAM|SOCK_CLOEXEC|SOCK_NONBLOCK, 0) = 9
connect(9, {sa_family=AF_FILE, path="/var/run/nscd/socket"}, 110) = 0
socket(PF_NETLINK, SOCK_RAW, 0) = 9
open("pid/master.pid", O_RDWR) = 9
open("/var/lib/postfix/master.lock", O_RDWR) = 10
open("/etc/mail/master.cf", O_RDONLY) = 11
socket(PF_INET, SOCK_STREAM, IPPROTO_IP) = 12
socket(PF_FILE, SOCK_STREAM|SOCK_CLOEXEC|SOCK_NONBLOCK, 0) = 12
connect(12, {sa_family=AF_FILE, path="/var/run/nscd/socket"}, 110) = 0
socket(PF_INET, SOCK_STREAM, IPPROTO_IP) = 12
socket(PF_INET, SOCK_STREAM, IPPROTO_IP) = 16
socket(PF_INET, SOCK_STREAM, IPPROTO_IP) = 19
open("public/pickup", O_RDWR|O_NONBLOCK) = 22
open("public/pickup", O_WRONLY|O_NONBLOCK) = 25
socket(PF_FILE, SOCK_STREAM, 0) = 25
open("public/qmgr", O_RDWR|O_NONBLOCK) = 28
open("public/qmgr", O_WRONLY|O_NONBLOCK) = 31
socket(PF_FILE, SOCK_STREAM, 0) = 31
socket(PF_FILE, SOCK_STREAM, 0) = 34
socket(PF_FILE, SOCK_STREAM, 0) = 37
socket(PF_FILE, SOCK_STREAM, 0) = 40
socket(PF_FILE, SOCK_STREAM, 0) = 43
socket(PF_FILE, SOCK_STREAM, 0) = 46
socket(PF_FILE, SOCK_STREAM, 0) = 49
socket(PF_FILE, SOCK_STREAM, 0) = 52
socket(PF_FILE, SOCK_STREAM, 0) = 55
socket(PF_FILE, SOCK_STREAM, 0) = 58
socket(PF_FILE, SOCK_STREAM, 0) = 61
socket(PF_FILE, SOCK_STREAM, 0) = 64
socket(PF_FILE, SOCK_STREAM, 0) = 67
socket(PF_FILE, SOCK_STREAM, 0) = 70
socket(PF_FILE, SOCK_STREAM, 0) = 73
socket(PF_FILE, SOCK_STREAM, 0) = 76
socket(PF_FILE, SOCK_STREAM, 0) = 79
socket(PF_FILE, SOCK_STREAM, 0) = 82
socket(PF_FILE, SOCK_STREAM, 0) = 85
socket(PF_FILE, SOCK_STREAM, 0) = 88
socket(PF_FILE, SOCK_STREAM, 0) = 91
socket(PF_FILE, SOCK_STREAM, 0) = 94
socket(PF_FILE, SOCK_STREAM, 0) = 97
socket(PF_FILE, SOCK_STREAM, 0) = 100
socket(PF_FILE, SOCK_STREAM, 0) = 103
socket(PF_FILE, SOCK_STREAM, 0) = 106
socket(PF_FILE, SOCK_STREAM, 0) = 109
socket(PF_INET, SOCK_STREAM, IPPROTO_IP) = 112
socket(PF_INET, SOCK_STREAM, IPPROTO_IP) = 112
socket(PF_FILE, SOCK_STREAM, 0) = 115
socket(PF_FILE, SOCK_STREAM, 0) = 118
open("/etc/resolv.conf", O_RDONLY) = 121
socket(PF_FILE, SOCK_STREAM|SOCK_CLOEXEC|SOCK_NONBLOCK, 0) = 121
connect(121, {sa_family=AF_FILE, path="/var/run/nscd/socket"}, 110) = 0
socket(PF_INET, SOCK_STREAM, IPPROTO_IP) = 121
socket(PF_INET, SOCK_STREAM, IPPROTO_IP) = 121
socket(PF_FILE, SOCK_STREAM, 0) = 129
connect(129, {sa_family=AF_FILE, path="private/tlsmgr"}, 110) = 0
jak w powyższym zobaczyłem otwierany socket procesu nscd to pomyślałem,
że to coś psuje ale niestety, restart nscd również nie pomaga,
co jeszcze może być nie tak?
pozdrawiam
Więcej informacji o liście pld-users-pl