LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   postfix -- imap -- squirrelmail problem (https://www.linuxquestions.org/questions/linux-software-2/postfix-imap-squirrelmail-problem-135365/)

di11rod 01-16-2004 06:22 AM

postfix -- imap -- squirrelmail problem
 
I've got a squirrelmail install (1.4.0) that I've migrated over from a Mandrake 9.1 install to a 9.2 install.

On 9.2, I've got Courrier-imap installed and running. Can't figure out what the log is for the iMAP server. Checking /var/log/mail/errors I've got all these messages--

Jan 16 05:57:59 localhost pipe[22509]: fatal: pipe_comand: execvp /usr/bin/postfixfilter: No such file or directory

I copied that file from my old mandrake install and put it into the /usr/bin directory. When I access squirrelmail by logging in, the browser window refreshes with this message:

ERROR:
ERROR : Connection dropped by imap-server.

Can't really find any logs to check. The afformentioned log doesn't increment with each try to log in...

Any ideas? Appreciatively,

di11rod



-------------------------------------------------------------
smp Mandrake 9.2 dual 400mhz celerons
512 mb ram
60 gig HD
Radeon 7000 video card (PCI)

mcleodnine 01-16-2004 09:02 PM

Hmm. kind of a broad spectrum of possibilities here...

Are we starting imapd with inetd.conf?
Have you setup squirrelmail's config files for your particular setup? (IMAP server type might need a look)
Weird pipe command error - how old was the previous configuration and why did you copy it over?

di11rod 01-19-2004 01:29 AM

Mcleode,

Thanks for your response. I'm starting courier with this command---

/etc/rc.d/init.d/courier-imap start

Is that the right way? Also, how can I test it from a telnet to the port (143)?

Ok, for background, here's the mess I recovered from mostly--

I tried to upgrade from Mandrake 9.1 to 9.2 using the download discs. I also threw in a new video card because I was using this as a headless server with no video card. The installer was running in lo-res mode because the card was an odd nvidia model. The installer didn't recognize my original install, so it never offered 'upgrade' as an option. It installed a new version of the kernel and everything else in parallel to my existing installation. Ugh. So I had to move everything over from 9.1 to 9.2... a bunch of config files and such. The very last thing I have to sort out is this squirrelmail --- imap -- postfix connection.

Squirelmail has been configured for courier-imap.

Any log files I can look at? Your help is greatly appreciated!

Di11rod

di11rod 01-19-2004 11:20 AM

any ideas?
 
Still getting this from within Squirrelmail--

ERROR : Connection dropped by imap-server.

What do I need to check? What can I test? Any log files to examine? This is kind of at the point where I'm willing to completely reinstall everything on this machine out of frustration.



Appreciatively,

di11rod

di11rod 01-20-2004 12:13 AM

maybe here is some useful info?
 
[root@jackass xinetd.d]# tail -75 /var/log/mail/info
Jan 18 04:26:32 localhost postfix/pickup[31133]: 51DD815065: uid=0 from=<root>
Jan 18 04:26:32 localhost postfix/cleanup[14401]: 51DD815065: message-id=<20040118092632.51DD815065@austinpublicskatepark.org>
Jan 18 04:26:32 localhost postfix/nqmgr[22724]: 51DD815065: from=<root@austinpublicskatepark.org>, size=817, nrcpt=1 (queue active)
Jan 18 04:26:33 localhost postfix/local[14403]: 51DD815065: to=<postfix@austinpublicskatepark.org>, orig_to=<root>, relay=local, delay=1, status=sent ("|/usr/bin/procmail -Y -a $DOMAIN")
Jan 19 01:29:44 localhost imapd: Connection, ip=[::ffff:192.168.1.103]
Jan 19 01:29:44 localhost imapd: LOGIN, user=seth, ip=[::ffff:192.168.1.103], protocol=IMAP
Jan 19 01:29:44 localhost imapd: maildirmake: No such file or directory
Jan 19 01:29:44 localhost imapd: chown: failed to get attributes of `/home/500/Maildir': No such file or directory



That last line is the interesting one... Looks like it's using the UID as the user name for the directory... Should be /home/seth/Maildir instead. Any idea where this would be set?

Appreciatively,

di11rod

di11rod 01-20-2004 12:55 AM

more info
 
Here is the process table listing for imap. Shows arguments used to launch it... Thought maybe it would be of help to anyone who could interpret this problem and offer a suggestion.

[root@jackass seth]# ps -ef |grep imap
root 22235 1 0 Jan16 ? 00:00:00 /usr/lib/courier/couriertcpd -address=0 -stderrlogger=/usr/lib/courier/courierlogger -stderrloggername=imapd -maxprocs=40 -maxperip=4 -pid=/var/run/imapd.pid -nodnslookup -noidentlookup 143 /usr/sbin/imaplogin /usr/lib/courier/authlib/authdaemon /usr/bin/imapd Maildir


thanks,

di11rod

di11rod 01-22-2004 07:24 AM

SOLVED
 
I had copied my user directory from my previous Mandrake 9.2 install. I had spamassassin installed and had a .procmailrc and .profile file in my home directory. The .procmailrc file was instructing the procmail filter to save my mail in /home/<username>/Mail/Inbox file. Once I removed the .procmailrc and .profile files and restarted postfix, I recieved mail fine. In order to get all that stuff in the Inbox file into my 'mail' system, I did this:

cat /home/<username>/Mail/Inbox >> /var/mail/<username>

Then imap was able to request it and so forth.

Sheesh. That took like 3 days to figure out.

hope this helps someone else not spend 3 days on a similar dilemna.

di11rod


All times are GMT -5. The time now is 10:38 PM.