LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 05-06-2008, 03:01 AM   #1
ssilayaraja
Member
 
Registered: Aug 2003
Location: chennai
Posts: 115

Rep: Reputation: 15
fetchmail retrival problem


i have configured fetchmail for 4 users on centos 5 box to retrive mail from our remote mail server when i give the fetchmail -v it is retriving messages but iam getting the following error

procmail:counldn't change dir to /home/saravanan/mail

this is my .fetchmail rc file
vim /home/saravanan/.fetchmailrc

poll mail.example.com with proto pop3
user saravananpp@example.com there with password saru123 is saravanan here
mda "/usr/bin/procmail -d %T"

this my .procmailrc file

vim /home/saravanan/.procmailrc

SHELL=/bin/sh
PATH=/usr/bin:/bin:/usr/local/bin:.

DEFAULT=/var/spool/mail/saravanan

MAILDIR=$HOME/mail
LOGFILE=$HOME/.procmaillog

:0fw
| /usr/bin/spamassassin
:0:

* ^X-Spam-Status: Yes
/home/saravanan/mail/.spam/

:0fw
| /usr/local/bin/clamassassin

* ^X-Virus-Status: Yes
/home/saravanan/mail/.virus
~


unfortunatly fetcmail is working fine for one user only

what is the reason

Last edited by ssilayaraja; 05-06-2008 at 03:02 AM.
 
Old 05-06-2008, 03:19 AM   #2
megerdin
Member
 
Registered: Jul 2007
Location: London
Distribution: FC11,FC10,FC7,FC4,Centos 5.1,Ubuntu,Mandrake Linux,puppy.LinuxMint.Opensuse
Posts: 181

Rep: Reputation: 31
check the mail log.
What s the error message appered.?
 
Old 05-06-2008, 03:35 AM   #3
billymayday
LQ Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
What are the permissions of /home/saravanan/mail and what user are you running fetchmail as? What groups is that user a member of?
 
Old 05-06-2008, 04:20 AM   #4
ssilayaraja
Member
 
Registered: Aug 2003
Location: chennai
Posts: 115

Original Poster
Rep: Reputation: 15
thsi is the file permission

-rwx--x--- 1 saravanan saravanan 143 May 6 11:34 .fetchmailrc

-rwxr-xr-x 1 saravanan saravanan 307 May 6 11:54 .procmailrc
 
Old 05-06-2008, 05:11 AM   #5
billymayday
LQ Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
That wasn't what I asked
 
Old 05-06-2008, 06:10 AM   #6
ssilayaraja
Member
 
Registered: Aug 2003
Location: chennai
Posts: 115

Original Poster
Rep: Reputation: 15
thank u for ur reply there is no mail foder under /home/saravanan i think procmail wiil create mail folder under /home/saravanan also it will create .spam floder under /home/saravanan/mail

why i am telling this only one user in this machine is having as following
tree /home/joshua/ -a
/home/joshua/

|-- mail
| |-- .imap
| | `-- INBOX
| | |-- dovecot.index
| | |-- dovecot.index.cache
| | `-- dovecot.index.log
| `-- .spam
| |-- cur
| |-- new
| | |-- 1209971791.4960_0.server2.avlx.com
| | |-- 1210056267.19906_1.server2
| | `-- 1210056274.19909_1.server2
| `-- tmp
`-- mbox

8 directories, 22 files


if i told wrongly dont mistaken me and kindly guide me

Last edited by ssilayaraja; 05-06-2008 at 06:17 AM.
 
Old 05-06-2008, 06:50 AM   #7
billymayday
LQ Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
Which user is running fetchmail, or is each user running it for themselves. If only one user, is that the user that things works for?
 
Old 05-06-2008, 07:29 AM   #8
ssilayaraja
Member
 
Registered: Aug 2003
Location: chennai
Posts: 115

Original Poster
Rep: Reputation: 15
ihave to configure fro more than 50 users for testing purpose i configured for 4 user each user running it for themselves.
 
Old 05-06-2008, 07:43 AM   #9
billymayday
LQ Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
Are you getting any messages in any of your logs when it fails? Not sure which to check. Send a message and look at the timestamp on your logs (with ls -l)
 
Old 05-06-2008, 08:19 AM   #10
ssilayaraja
Member
 
Registered: Aug 2003
Location: chennai
Posts: 115

Original Poster
Rep: Reputation: 15
no i didn't get any log

this is procmail log
tail -f /home/ilayaraja/.procmaillog
Folder: **Bounced** 0
procmail: Lock failure on "/home/ilayaraja/mail/.spam/.lock"
procmail: Unable to treat as directory "/home/ilayaraja/mail/.spam"
procmail: Error while writing to "/home/ilayaraja/mail/.spam"
procmail: Skipped "* ^X-Virus-Status: Yes"
procmail: Skipped "/home/joshua/mail/.virus"
procmail: Lock failure on "/var/spool/mail/ilayaraja.lock"
 
Old 05-06-2008, 03:19 PM   #11
billymayday
LQ Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
Does the dirtectory /home/ilayaraja/mail/ exist? If so, what does

ls -la /home/ilayaraja/mail/

show?
 
Old 05-06-2008, 11:58 PM   #12
ssilayaraja
Member
 
Registered: Aug 2003
Location: chennai
Posts: 115

Original Poster
Rep: Reputation: 15
/home/ilayaraja/mail directory is not exsist
 
Old 05-06-2008, 11:59 PM   #13
billymayday
LQ Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
Then I'd try creating it as user ilayaraja. you may need to creat .spam as well, but try that after.

Edit - note you could add mail in /etc/skel to have these created when you add new users

Last edited by billymayday; 05-07-2008 at 12:01 AM.
 
Old 05-07-2008, 01:35 AM   #14
ssilayaraja
Member
 
Registered: Aug 2003
Location: chennai
Posts: 115

Original Poster
Rep: Reputation: 15
thank for ur co-opreation
i create mail folder manualy now spam mails goes to .spam floder

thanks
 
Old 05-07-2008, 02:01 AM   #15
billymayday
LQ Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
Great - look into skel for automatic creation


Rgds (and thanks for letting us know it worked - not enough folks bother)
 
  


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
Problem with fetchmail vedang Linux - Server 2 02-21-2008 08:29 PM
Fetchmail problem johnnyv Linux - Software 2 05-23-2006 08:10 PM
fetchmail problem ash_great Linux - Software 0 07-01-2005 07:08 AM
fetchmail problem kelper Linux - Software 0 05-29-2004 10:58 AM
Problem with fetchmail shaggystyle Linux - Networking 3 03-25-2004 05:11 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 05:04 PM.

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