Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

fetchmail returning error "Unexpected Response from Popserver"

Status
Not open for further replies.

chipnrut

IS-IT--Management
Feb 1, 2002
14
US
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(&quot;/bin/checklocalpwd&quot;, [&quot;/bin/checklocalpwd&quot;, &quot;/var/qmail/bin/qmail-pop3d&quot;, &quot;Maildir&quot;], [/* 37 vars */]) = 0
uname({sys=&quot;Linux&quot;, node=&quot;mail.xxx.com&quot;, ...}) = 0
brk(0) = 0x804a9c8
old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40017000
open(&quot;/etc/ld.so.preload&quot;, O_RDONLY) = -1 ENOENT (No such file or directory)
open(&quot;/etc/ld.so.cache&quot;, 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(&quot;/lib/libcrypt.so.1&quot;, O_RDONLY) = 4
read(4, &quot;\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0p\17\0\000&quot;..., 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(&quot;/lib/i686/libc.so.6&quot;, O_RDONLY) = 4
read(4, &quot;\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0p\307\1&quot;..., 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, &quot;foo\bar\0<5258.1038018005&quot;..., 513) = 53
read(3, &quot;&quot;, 460) = 0
close(3) = 0
brk(0) = 0x804a9c8
brk(0x804ab48) = 0x804ab48
brk(0x804b000) = 0x804b000
open(&quot;/etc/poppasswd&quot;, 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, &quot;root:!none!:root:/root\nbin:!none&quot;..., 4096) = 4096
close(3) = 0
munmap(0x40018000, 4096) = 0
socket(PF_UNIX, SOCK_STREAM, 0) = 3
connect(3, {sin_family=AF_UNIX, path=&quot;/var/run/.nscd_socket&quot;}, 110) = -1 ENOENT (No such file or directory)
close(3) = 0
open(&quot;/etc/nsswitch.conf&quot;, 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, &quot;#\n# /etc/nsswitch.conf\n#\n# An ex&quot;..., 4096) = 1750
brk(0x804c000) = 0x804c000
read(3, &quot;&quot;, 4096) = 0
close(3) = 0
munmap(0x40018000, 4096) = 0
open(&quot;/etc/ld.so.cache&quot;, 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(&quot;/lib/libnss_files.so.2&quot;, O_RDONLY) = 3
read(3, &quot;\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\200 \0&quot;..., 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(&quot;/etc/passwd&quot;, 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, &quot;root:x:0:0:root:/root:/bin/bash\n&quot;..., 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=&quot;&quot;
192.168.2.:allow,RELAYCLIENT=&quot;&quot;
127.:allow,RELAYCLIENT=&quot;&quot;
: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
&quot;I love penquins&quot;
 
Figured it out myself... cockpit error.

Apparently it was the firewall I had setup. As I was trying to move my qmail service on to a new box, I tried to make the boxes prety much identical ...including the ipchains. :( Of course the new box had a different IP address so the old box's IP chains did not allow for pop3 connection. All is well now and I hope to have this blasted server up tonight!!

Thought I would pass the answer on in case anyone else was stupidly looking in all the wrong places. :)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top