LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 07-18-2006, 10:45 PM   #1
lmcilwain
Member
 
Registered: Dec 2003
Location: Maryland
Distribution: Fedora, Ubuntu, Centos, FreeBSD
Posts: 390

Rep: Reputation: 31
Fetchmail Complaining


Hello all,

I'm having an issue that I need to try and have fixed. Fetchmail on my machine is complaining that it can't read my .procmailrc file in my home directory that is used for mail filtering.

What I am getting in my fetchmail log is:
procmail: Suspicious rcfile "/home/lmcilwain/.procmailrc"
procmail: Couldn't read "/home/lmcilwain/.procmailrc"

Nothing has changed with this file in months and all of a sudden it just stopped working.
Here are the permissions on my .procmailrc file:

-rw-r--r-- 1 lmcilwai lmcilwai 1484 18 Jul 23:34 .procmailrc

Can anyone help me figure out what in the world is going on with this?
 
Old 07-18-2006, 11:03 PM   #2
gilead
Senior Member
 
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,141

Rep: Reputation: 168Reputation: 168
According to man procmail:
Code:
Suspicious rcfile "x"  The  owner  of the rcfile was not the recipient or root, the file was
                       world  writable,  or  the  directory  that  contained  it  was  world
                       writable,  or this was the default rcfile ($HOME/.procmailrc) and ei-
                       ther it was group writable or the directory  that  contained  it  was
                       group writable (the rcfile was not used).
Alternatively, you have lmcilwain as the home directory name but you have lmcilwai as the user:group - is there a typo?

Do any of those possibilities fit your setup?
 
Old 07-18-2006, 11:19 PM   #3
lmcilwain
Member
 
Registered: Dec 2003
Location: Maryland
Distribution: Fedora, Ubuntu, Centos, FreeBSD
Posts: 390

Original Poster
Rep: Reputation: 31
No its not a typo that was what I cut and pasted right fromt he terminal.. My username is definitly not lmcilwai.

But how can I fix this. This user doesn't exist anywhere so I can't figure out a user ID that correspond to it to change the ownership.
 
Old 07-18-2006, 11:21 PM   #4
Matir
LQ Guru
 
Registered: Nov 2004
Location: San Jose, CA
Distribution: Debian, Arch
Posts: 8,507

Rep: Reputation: 128Reputation: 128
What are the permissions on /home/lmcilwain?
 
Old 07-18-2006, 11:22 PM   #5
lmcilwain
Member
 
Registered: Dec 2003
Location: Maryland
Distribution: Fedora, Ubuntu, Centos, FreeBSD
Posts: 390

Original Poster
Rep: Reputation: 31
The permissions I have for my home directory is as follows:

drwxrwxrwx 77 lmcilwai lmcilwai 2618 19 Jul 00:10 lmcilwain
 
Old 07-18-2006, 11:25 PM   #6
Matir
LQ Guru
 
Registered: Nov 2004
Location: San Jose, CA
Distribution: Debian, Arch
Posts: 8,507

Rep: Reputation: 128Reputation: 128
Because the directory is group/world-writable, it will not use the .procmailrc file for fear that someone else could have placed a malicious .procmailrc file there to obtain copies of your email. Try removing group and world write permissions.
 
Old 07-18-2006, 11:28 PM   #7
gilead
Senior Member
 
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,141

Rep: Reputation: 168Reputation: 168
Edit: Hopefully Matir's suggestions fixes the problem before you get to trying this...

On my system, I can create a user:group of lmcilwain:lmcilwain and the ownership displays correctly (doesn't truncate the last 'n'). Are the other files in that directory owned the same way? If so, does running the following as root work?
Code:
chown -Rc lmcilwain:lmcilwain /home/lmcilwain
If not, you should be able to type the following to get the uid:gid for the lmcilwain user:
Code:
id lmcilwain
If it returned (for example):
Code:
uid=1014(lmcilwain) gid=118(lmcilwain) groups=118(lmcilwain)
Then you could run:
Code:
chown -Rc 1014:118 /home/lmcilwain

Last edited by gilead; 07-18-2006 at 11:30 PM.
 
Old 07-18-2006, 11:29 PM   #8
Matir
LQ Guru
 
Registered: Nov 2004
Location: San Jose, CA
Distribution: Debian, Arch
Posts: 8,507

Rep: Reputation: 128Reputation: 128
Quote:
Originally Posted by gilead
On my system, I can create a user:group of lmcilwain:lmcilwain and the ownership displays correctly (doesn't truncate the last 'n'). Are the other files in that directory owned the same way? If so, does running the following as root work?
Code:
chown -Rc lmcilwain:lmcilwain /home/lmcilwain
If not, you should be able to type the following to get the uid:gid for the lmcilwain user:
Code:
id lmcilwain
If it returned (for example):
Code:
uid=1014(lmcilwain) gid=118(lmcilwain) groups=118(lmcilwain)
Then you could run:
Code:
chown -Rc 1014:118 /home/lmcilwain

Many setups truncate usernames to 8 characters (the original UNIX max username length). Others replace usernames > 8 chars with the numeric UID. I doubt it's mis-owned.
 
Old 07-18-2006, 11:36 PM   #9
lmcilwain
Member
 
Registered: Dec 2003
Location: Maryland
Distribution: Fedora, Ubuntu, Centos, FreeBSD
Posts: 390

Original Poster
Rep: Reputation: 31
Well it seems that the issue was that my user directory was set to world writeable. I didn't put two and two together...

I was working on trying to share a folder via smb on my system and I must have done something screwy. I went back to what I was doing and noticed that mistake (wierd). So I sent the permission as close to what I remember as possible and then checked my fetchmail and procmail logs and low and behold it is filtering again.

Procmail Log:
procmail: Assigning "LASTFOLDER=/var/mail/lmcilwain"
procmail: Opening "/var/mail/lmcilwain"
procmail: Acquiring kernel-lock
procmail: [6580] Wed Jul 19 00:30:58 2006
procmail: Notified comsat: "procmail.log@19***:/var/mail/lmcilwain"
From lmcilwain Wed Jul 19 00:30:56 2006
Subject: test
Folder: /var/mail/lmcilwain

Fetchmail Log:
procmail: [6580] Wed Jul 19 00:30:56 2006
procmail: Assigning "LOGNAME=procmail.log"
procmail: Assigning "LOGFILE=procmail.log"
procmail: Opening "procmail.log"


I do however want to fix the way my UID and GID ownership is displaying but I'm tempted to leave it as is if its working for me...

Thanks for the help guys, I really appreciate it.
 
Old 07-18-2006, 11:37 PM   #10
Matir
LQ Guru
 
Registered: Nov 2004
Location: San Jose, CA
Distribution: Debian, Arch
Posts: 8,507

Rep: Reputation: 128Reputation: 128
Your owner and group are correct, it is just truncating to keep the columns in ls -l neatly lined up.
 
Old 07-18-2006, 11:41 PM   #11
lmcilwain
Member
 
Registered: Dec 2003
Location: Maryland
Distribution: Fedora, Ubuntu, Centos, FreeBSD
Posts: 390

Original Poster
Rep: Reputation: 31
OK, then I feel much better leaving it as it is. (Slowly but surely learning)
 
Old 07-18-2006, 11:49 PM   #12
Matir
LQ Guru
 
Registered: Nov 2004
Location: San Jose, CA
Distribution: Debian, Arch
Posts: 8,507

Rep: Reputation: 128Reputation: 128
Quote:
Originally Posted by lmcilwain
(Slowly but surely learning)
That's what we're here for. I'm glad we were able to help you with this.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
TC: Why is knoppix complaining? eantoranz Linux - Networking 1 05-31-2005 10:28 AM
Why is JBoss complaining? eantoranz Programming 0 04-26-2005 09:56 AM
QT complaining wmeler Linux - Software 0 05-13-2004 08:03 PM
g++ typecast complaining too much! The_Nerd Programming 12 05-11-2004 06:52 PM
a reccomendation for those complaining about 9.1 being slow Araxis777 Mandriva 5 09-24-2003 06:49 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 10:07 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration