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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

qmail: stuck at user/pass stage 1

Status
Not open for further replies.

chbojorq

Technical User
Mar 28, 2004
2
US
Hello,

I really need help:

I have qmail set up to where I can send mail but not receive. I have it to the point where the username/password popup comes up but when I enter my user/pass, Outlook gives the error: "-ERR unable to write pipe". What can I do now, I've read/checked/configured all I know how.

-Is this a User/Maildir setup problem?

-Is this a checkpassword problem?

My pop3d run script:
Code:
#!/bin/sh 
exec /usr/local/bin/softlimit -m 5000000 \ 
   /usr/local/bin/tcpserver -v -R -H -l 0 0 112 /var/qmail/bin/qmail-popup \ 
  pop3.mydomain.com /bin/checkpassword /var/qmail/bin/qmail-pop3d Maildir 2>&1

(I am on port 112 on purpose)

Any assistance would be greatly appreciated!!!

Thanks -c
 
try switching "-m 5000000 \" to "-m 10000000 \" and try it. Often problems with abended processing in the run files are from the process running out of memory.

Surfinbox.com Business Internet Services - National Dialup, DSL, T-1 and more.
 
thedaver

I tried changing the switch as you suggested above but am still receiving the error. Any other suggections?

Thanks,
 
Go back and check the ownership of qmail folders per the Life with Qmail instructions. You may have a problem not being able to read-write from one of the queue folders or the passwd checker...

Surfinbox.com Business Internet Services - National Dialup, DSL, T-1 and more.
 
Did that. And all appears to be correct. Any other ideas?

Thanx
 
do your testing the old fashioned way.

telnet to your mail/pop server at port 110

the first prompt is the username, the second prompt is the password, then you can ask for a listing. here's an example session

'telnet mail.example.com 110'

+OK POP SERVER Greeting
user foo@example.com
+OK send your password
pass example123
+OK maildrop locked and ready
list
+OK 0 messages
.
quit
+OK POP server good-bye

I typed the items that DO NOT begin with a "+", those are server responses. I also did NOT type the line that has "." after the LIST command.

If you can do this, then POP3 is fine and you have a problem in Outlook.

Be careful that you haven't FORCED SSL for the POP3 traffic.

Please let me know what happens. DON'T post your real info in any examples.

Surfinbox.com Business Internet Services - National Dialup, DSL, T-1 and more.
 
Below is the jest to the telnet session.

[root@BATMAN root]# telnet 127.0.0.1 110
Trying 127.0.0.1...
Connected to 127.0.0.1.
Escape character is '^]'.
+OK <18055.1088430528@foo.bar.com>
user daffy@bar.com
+OK
pass donald
-ERR unable to write pipe
Connection closed by foreign host.
 
All,

Could the problem be with checkpassword? I compiled it per the instructions but cannot find the program anywhere.

Thanks,

 
your script looks for "/bin/checkpassword"
If its
1) not executable,
2) not there,
or
3) not available to the user running the script

Then you will get an array of errors. Start debugging this to eliminate it.

Surfinbox.com Business Internet Services - National Dialup, DSL, T-1 and more.
 
I don't mean to be "dumb" but I'm a newbie to Linux. Where should the mentioned Maildir directory be created?
 
Let's assume user "dude" has a home directory define in /etc/passwd as "/home/dude"

cd /home/dude
maildirmake

The maildirmake command creates a directory structure in the current folder that is required to support the Maildir format - the default mail storage format for qmail.

IF YOU ARE USING VPOPMAIL this is done for you when you create the user account. I ASSUME that you are able to figure out which of these you are doing...

Surfinbox.com Business Internet Services - National Dialup, DSL, T-1 and more.
 
I believe the problem really belongs with checkpassword. When I try make to compile the program I get the following.

[root@BATMAN checkpassword-0.90]# make
./load checkpassword prot.o unix.a byte.a `cat shadow.lib` `cat crypt.lib` `cat s.lib`
checkpassword.o(.text+0xfa): In function `main':
: undefined reference to `errno'
checkpassword.o(.text+0x243): In function `main':
: undefined reference to `errno'
checkpassword.o(.text+0x265): In function `main':
: undefined reference to `errno'
unix.a(pathexec_run.o)(.text+0xf6): In function `pathexec_run':
: undefined reference to `errno'
unix.a(pathexec_run.o)(.text+0x13a): In function `pathexec_run':
: undefined reference to `errno'
unix.a(alloc.o)(.text+0x48): more undefined references to `errno' follow
collect2: ld returned 1 exit status
make: *** [checkpassword] Error 1

Does anyone have any ideas?
 
I wish you would have said that checkpassword didn't compile properly. I've wasted a considerable amount of time on this. Seek help from the actual qmail list. Consult
Surfinbox.com Business Internet Services - National Dialup, DSL, T-1 and more.
 
I finally got the checkpassword program to compile properly. Now I am receiving the following error when telneting into port 110. Any suggestions?

[root@BATMAN sbrewer]# telnet batman.scires.com 110
Trying 10.2.1.66...
Connected to batman.scires.com.
Escape character is '^]'.
+OK <3434.1088684116@batman.scires.com>
user foo
+OK
pass bar
-ERR unable to scan $HOME/Maildir
Connection closed by foreign host.

Thanks in advance..
 
UPDATE!

Success. I have a working POP3 server now. Thanks for all your help.

 
yeah, that was the part where you needed to create the maildir. Glad its resolved. Throw me a star on the thread when you have a chance.

Surfinbox.com Business Internet Services - National Dialup, DSL, T-1 and more.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top