To start with... I would be extemely grateful for any help you can give me.
I am bringing online a new mail server. I have downloaded and installed qmail-1.03, daemontools-0.76, ucspi-tcp-0.88, checkpassword-0.81, checklocalpw-1.0, dot-forward-0.71, and fastforward-0.51 as the instructions at Life With Qmail told me to do. I have the server running and sending and recieving qmail but am unable to get qmail from various workstations using evolution, sylpheed or Microsoft Outlook (shudder).
I believe the problem lies in the fetchmail portion but am not intelligent enought to interpret the signals.
The error from the clients is as follows: (obtained using strace)
Error while 'Fetching Mail':
Unexpected response from POP server: uname({sys="Linux", node="mail.xxx.com",...}) = 0
When I try to telnet to port 110 and use the checkpassword, I get this error:
[root@mail-ser local]# telnet 127.0.0.1 110
Trying 127.0.0.1...
Connected to 127.0.0.1.
Escape character is '^]'.
+OK <5258.1038018005@mail.xxx.com>
user foo
+OK
pass bar
execve("/bin/checklocalpwd", ["/bin/checklocalpwd", "/var/qmail/bin/qmail-pop3d", "Maildir"], [/* 37 vars */]) = 0
uname({sys="Linux", node="mail.xxx.com", ...}) = 0
brk(0) = 0x804a9c8
old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40017000
open("/etc/ld.so.preload", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/etc/ld.so.cache", O_RDONLY) = 4
fstat64(4, {st_mode=S_IFREG|0644, st_size=36452, ...}) = 0
old_mmap(NULL, 36452, PROT_READ, MAP_PRIVATE, 4, 0) = 0x40018000
close(4) = 0
open("/lib/libcrypt.so.1", O_RDONLY) = 4
read(4, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0p\17\0\000"..., 1024) = 1024
fstat64(4, {st_mode=S_IFREG|0755, st_size=85171, ...}) = 0
old_mmap(NULL, 183900, PROT_READ|PROT_EXEC, MAP_PRIVATE, 4, 0) = 0x40021000
mprotect(0x40026000, 163420, PROT_NONE) = 0
old_mmap(0x40026000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 4, 0x4000) = 0x40026000
old_mmap(0x40027000, 159324, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x40027000
close(4) = 0
open("/lib/i686/libc.so.6", O_RDONLY) = 4
read(4, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0p\307\1"..., 1024) = 1024
fstat64(4, {st_mode=S_IFREG|0755, st_size=5792553, ...}) = 0
old_mmap(NULL, 1293384, PROT_READ|PROT_EXEC, MAP_PRIVATE, 4, 0) = 0x4004e000
mprotect(0x40181000, 35912, PROT_NONE) = 0
old_mmap(0x40181000, 20480, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 4, 0x132000) = 0x40181000
old_mmap(0x40186000, 15432, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x40186000
close(4) = 0
munmap(0x40018000, 36452) = 0
read(3, "foo\bar\0<5258.1038018005"..., 513) = 53
read(3, "", 460) = 0
close(3) = 0
brk(0) = 0x804a9c8
brk(0x804ab48) = 0x804ab48
brk(0x804b000) = 0x804b000
open("/etc/poppasswd", O_RDONLY) = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=4210, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40018000
read(3, "root:!none!:root:/root\nbin:!none"..., 4096) = 4096
close(3) = 0
munmap(0x40018000, 4096) = 0
socket(PF_UNIX, SOCK_STREAM, 0) = 3
connect(3, {sin_family=AF_UNIX, path="/var/run/.nscd_socket"}, 110) = -1 ENOENT (No such file or directory)
close(3) = 0
open("/etc/nsswitch.conf", O_RDONLY) = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=1750, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40018000
read(3, "#\n# /etc/nsswitch.conf\n#\n# An ex"..., 4096) = 1750
brk(0x804c000) = 0x804c000
read(3, "", 4096) = 0
close(3) = 0
munmap(0x40018000, 4096) = 0
open("/etc/ld.so.cache", O_RDONLY) = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=36452, ...}) = 0
old_mmap(NULL, 36452, PROT_READ, MAP_PRIVATE, 3, 0) = 0x40018000
close(3) = 0
open("/lib/libnss_files.so.2", O_RDONLY) = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\200 \0"..., 1024) = 1024
fstat64(3, {st_mode=S_IFREG|0755, st_size=262364, ...}) = 0
old_mmap(NULL, 42600, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0x4018a000
mprotect(0x40194000, 1640, PROT_NONE) = 0
old_mmap(0x40194000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 0x9000) = 0x40194000
close(3) = 0
munmap(0x40018000, 36452) = 0
open("/etc/passwd", O_RDONLY) = 3
fcntl64(0x3, 0x1, 0, 0x1) = 0
fcntl64(0x3, 0x2, 0x1, 0x1) = 0
fstat64(3, {st_mode=S_IFREG|0644, st_size=5619, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40018000
read(3, "root:x:0:0:root:/root:/bin/bash\n"..., 4096) = 4096
close(3) = 0
munmap(0x40018000, 4096) = 0
setgid32(0x1f6) = -1 EPERM (Operation not permitted)
_exit(1) = ?
Connection closed by foreign host.
My firewall (ipchains) looks like this, where 66.66.66.66 is my mail server ip address and 11.11.11.11. is the gateway that allows my subnet access to the mail server.
Chain input (policy ACCEPT):
target prot opt source destination ports
ACCEPT tcp ------ 11.11.11.11 66.66.66.66 * -> 1948
ACCEPT tcp ------ 0.0.0.0/0 66.66.66.66 113 -> *
ACCEPT udp ------ 0.0.0.0/0 66.66.66.66 53 -> *
ACCEPT tcp ------ 11.11.11.11 66.66.66.66 * -> 23
ACCEPT tcp ------ 0.0.0.0/0 66.66.66.66 53 -> *
ACCEPT tcp ------ 0.0.0.0/0 66.66.66.66 * -> 110
ACCEPT tcp ------ 0.0.0.0/0 66.66.66.66 * -> 25
ACCEPT tcp ------ 152.2.253.100 66.66.66.66 37 -> *
DENY all ----l- 0.0.0.0/0 66.66.66.66 n/a
The tcprules files look like this:
tcp.pop3
66.66.66.:allow
192.168.2.:allow
127.:allow
:deny
tcp.smtp
66.66.66.:allow,RELAYCLIENT=""
192.168.2.:allow,RELAYCLIENT=""
127.:allow,RELAYCLIENT=""
:deny
Running netstat gives this:
netstat -an |grep 110
tcp 0 0 0.0.0.0:110 0.0.0.0:* LISTEN
If anyone could help me I would appreciate it very much. Thank you.
chipnrut
"I love penquins"
I am bringing online a new mail server. I have downloaded and installed qmail-1.03, daemontools-0.76, ucspi-tcp-0.88, checkpassword-0.81, checklocalpw-1.0, dot-forward-0.71, and fastforward-0.51 as the instructions at Life With Qmail told me to do. I have the server running and sending and recieving qmail but am unable to get qmail from various workstations using evolution, sylpheed or Microsoft Outlook (shudder).
I believe the problem lies in the fetchmail portion but am not intelligent enought to interpret the signals.
The error from the clients is as follows: (obtained using strace)
Error while 'Fetching Mail':
Unexpected response from POP server: uname({sys="Linux", node="mail.xxx.com",...}) = 0
When I try to telnet to port 110 and use the checkpassword, I get this error:
[root@mail-ser local]# telnet 127.0.0.1 110
Trying 127.0.0.1...
Connected to 127.0.0.1.
Escape character is '^]'.
+OK <5258.1038018005@mail.xxx.com>
user foo
+OK
pass bar
execve("/bin/checklocalpwd", ["/bin/checklocalpwd", "/var/qmail/bin/qmail-pop3d", "Maildir"], [/* 37 vars */]) = 0
uname({sys="Linux", node="mail.xxx.com", ...}) = 0
brk(0) = 0x804a9c8
old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40017000
open("/etc/ld.so.preload", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/etc/ld.so.cache", O_RDONLY) = 4
fstat64(4, {st_mode=S_IFREG|0644, st_size=36452, ...}) = 0
old_mmap(NULL, 36452, PROT_READ, MAP_PRIVATE, 4, 0) = 0x40018000
close(4) = 0
open("/lib/libcrypt.so.1", O_RDONLY) = 4
read(4, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0p\17\0\000"..., 1024) = 1024
fstat64(4, {st_mode=S_IFREG|0755, st_size=85171, ...}) = 0
old_mmap(NULL, 183900, PROT_READ|PROT_EXEC, MAP_PRIVATE, 4, 0) = 0x40021000
mprotect(0x40026000, 163420, PROT_NONE) = 0
old_mmap(0x40026000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 4, 0x4000) = 0x40026000
old_mmap(0x40027000, 159324, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x40027000
close(4) = 0
open("/lib/i686/libc.so.6", O_RDONLY) = 4
read(4, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0p\307\1"..., 1024) = 1024
fstat64(4, {st_mode=S_IFREG|0755, st_size=5792553, ...}) = 0
old_mmap(NULL, 1293384, PROT_READ|PROT_EXEC, MAP_PRIVATE, 4, 0) = 0x4004e000
mprotect(0x40181000, 35912, PROT_NONE) = 0
old_mmap(0x40181000, 20480, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 4, 0x132000) = 0x40181000
old_mmap(0x40186000, 15432, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x40186000
close(4) = 0
munmap(0x40018000, 36452) = 0
read(3, "foo\bar\0<5258.1038018005"..., 513) = 53
read(3, "", 460) = 0
close(3) = 0
brk(0) = 0x804a9c8
brk(0x804ab48) = 0x804ab48
brk(0x804b000) = 0x804b000
open("/etc/poppasswd", O_RDONLY) = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=4210, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40018000
read(3, "root:!none!:root:/root\nbin:!none"..., 4096) = 4096
close(3) = 0
munmap(0x40018000, 4096) = 0
socket(PF_UNIX, SOCK_STREAM, 0) = 3
connect(3, {sin_family=AF_UNIX, path="/var/run/.nscd_socket"}, 110) = -1 ENOENT (No such file or directory)
close(3) = 0
open("/etc/nsswitch.conf", O_RDONLY) = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=1750, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40018000
read(3, "#\n# /etc/nsswitch.conf\n#\n# An ex"..., 4096) = 1750
brk(0x804c000) = 0x804c000
read(3, "", 4096) = 0
close(3) = 0
munmap(0x40018000, 4096) = 0
open("/etc/ld.so.cache", O_RDONLY) = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=36452, ...}) = 0
old_mmap(NULL, 36452, PROT_READ, MAP_PRIVATE, 3, 0) = 0x40018000
close(3) = 0
open("/lib/libnss_files.so.2", O_RDONLY) = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\200 \0"..., 1024) = 1024
fstat64(3, {st_mode=S_IFREG|0755, st_size=262364, ...}) = 0
old_mmap(NULL, 42600, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0x4018a000
mprotect(0x40194000, 1640, PROT_NONE) = 0
old_mmap(0x40194000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 0x9000) = 0x40194000
close(3) = 0
munmap(0x40018000, 36452) = 0
open("/etc/passwd", O_RDONLY) = 3
fcntl64(0x3, 0x1, 0, 0x1) = 0
fcntl64(0x3, 0x2, 0x1, 0x1) = 0
fstat64(3, {st_mode=S_IFREG|0644, st_size=5619, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40018000
read(3, "root:x:0:0:root:/root:/bin/bash\n"..., 4096) = 4096
close(3) = 0
munmap(0x40018000, 4096) = 0
setgid32(0x1f6) = -1 EPERM (Operation not permitted)
_exit(1) = ?
Connection closed by foreign host.
My firewall (ipchains) looks like this, where 66.66.66.66 is my mail server ip address and 11.11.11.11. is the gateway that allows my subnet access to the mail server.
Chain input (policy ACCEPT):
target prot opt source destination ports
ACCEPT tcp ------ 11.11.11.11 66.66.66.66 * -> 1948
ACCEPT tcp ------ 0.0.0.0/0 66.66.66.66 113 -> *
ACCEPT udp ------ 0.0.0.0/0 66.66.66.66 53 -> *
ACCEPT tcp ------ 11.11.11.11 66.66.66.66 * -> 23
ACCEPT tcp ------ 0.0.0.0/0 66.66.66.66 53 -> *
ACCEPT tcp ------ 0.0.0.0/0 66.66.66.66 * -> 110
ACCEPT tcp ------ 0.0.0.0/0 66.66.66.66 * -> 25
ACCEPT tcp ------ 152.2.253.100 66.66.66.66 37 -> *
DENY all ----l- 0.0.0.0/0 66.66.66.66 n/a
The tcprules files look like this:
tcp.pop3
66.66.66.:allow
192.168.2.:allow
127.:allow
:deny
tcp.smtp
66.66.66.:allow,RELAYCLIENT=""
192.168.2.:allow,RELAYCLIENT=""
127.:allow,RELAYCLIENT=""
:deny
Running netstat gives this:
netstat -an |grep 110
tcp 0 0 0.0.0.0:110 0.0.0.0:* LISTEN
If anyone could help me I would appreciate it very much. Thank you.
chipnrut
"I love penquins"