LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices

Reply
 
LinkBack Search this Thread
Old 06-01-2007, 01:02 AM   #1
prashantbhushan
LQ Newbie
 
Registered: Jul 2006
Posts: 17

Rep: Reputation: 0
getmail


hello,
i am using getmail-4.7.3 for fetching mails from mail server to my internal server. I want to configure multiple users in one .rc file.
I done as following but it only fetches for last user in the list.

test.rc

[options]
verbose = 1
delete = true

[retriever]
type = SimplePOP3Retriever
server = xxx.xxx.xxx.xxx
port = 110
username = test@abc.com
password = test

[destination]
type = Maildir
user = vpopmail
path = /home/vpopmail/domains/abc.com/test/Maildir/


[options]
verbose = 1
delete = true

[retriever]
type = SimplePOP3Retriever
server = xxx.xxx.xxx.xxx
port = 110
username = test1@abc.com
password = test1

[destination]
type = Maildir
user = vpopmail
path = /home/vpopmail/domains/abc.com/test1/Maildir/

but it is fetching mail for test2 only.

Thanks.
 
Old 06-01-2007, 01:22 AM   #2
Worksman
Member
 
Registered: Sep 2004
Location: Romania
Distribution: Ubuntu, Debian, Arch Linux, Gentoo, Slackware
Posts: 171
Blog Entries: 1

Rep: Reputation: 31
I think this might help you: http://pyropus.ca/software/getmail/configuration.html
It's easy to understand.
 
Old 06-01-2007, 04:27 AM   #3
prashantbhushan
LQ Newbie
 
Registered: Jul 2006
Posts: 17

Original Poster
Rep: Reputation: 0
hello,
I can configure for single mail account, but how to add all mail users in a single file.


Thanks.

Quote:
Originally Posted by Worksman
I think this might help you: http://pyropus.ca/software/getmail/configuration.html
It's easy to understand.
 
Old 06-01-2007, 06:23 AM   #4
Worksman
Member
 
Registered: Sep 2004
Location: Romania
Distribution: Ubuntu, Debian, Arch Linux, Gentoo, Slackware
Posts: 171
Blog Entries: 1

Rep: Reputation: 31
Quote:
Originally Posted by prashantbhushan
hello,
I can configure for single mail account, but how to add all mail users in a single file.


Thanks.
OK, you're basically asking for someone else to read the manual for you.
I'm too busy to do that. If someone else would write a config for you it could be the same as yours because you didn't provide enough information (logs, errors). The link I posted should have helped you enough. Could you first try to read it and then come back and tell us what went wrong or what didn't work + logs and other output?
 
Old 06-01-2007, 06:27 AM   #5
Worksman
Member
 
Registered: Sep 2004
Location: Romania
Distribution: Ubuntu, Debian, Arch Linux, Gentoo, Slackware
Posts: 171
Blog Entries: 1

Rep: Reputation: 31
It just occured to me that getmail might actually need to be started separately for each account. So if it does not work they way you're doing it now, then maybe you have to write different configs/rc-files and start getmail for each config telling it where it is located and its name.
 
Old 06-02-2007, 07:28 AM   #6
prashantbhushan
LQ Newbie
 
Registered: Jul 2006
Posts: 17

Original Poster
Rep: Reputation: 0
I have read that documentation before you and configured the same. I think u have not read properly my question. First read this and then
try to post ur reply.

Thanks.

Quote:
Originally Posted by Worksman
OK, you're basically asking for someone els
e to read the manual for you.
I'm too busy to do that. If someone else would write a config for you it could be the same as yours because you didn't provide enough information (logs, errors). The link I posted should have helped you enough. Could you first try to read it and then come back and tell us what went wrong or what didn't work + logs and other output?
 
Old 06-02-2007, 07:31 AM   #7
prashantbhushan
LQ Newbie
 
Registered: Jul 2006
Posts: 17

Original Poster
Rep: Reputation: 0
I am currently using different scripts for individual accounts and its working fine. If i merge all them into single file, then only mails for last account which is in the file are getting fetched.

Thanks.


Quote:
Originally Posted by Worksman
It just occured to me that getmail might actually need to be started separately for each account. So if it does not work they way you're doing it now, then maybe you have to write different configs/rc-files and start getmail for each config telling it where it is located and its name.
 
Old 06-02-2007, 07:56 AM   #8
Worksman
Member
 
Registered: Sep 2004
Location: Romania
Distribution: Ubuntu, Debian, Arch Linux, Gentoo, Slackware
Posts: 171
Blog Entries: 1

Rep: Reputation: 31
Quote:
Originally Posted by prashantbhushan
I am currently using different scripts for individual accounts and its working fine. If i merge all them into single file, then only mails for last account which is in the file are getting fetched.

Thanks.
What's wrong with that then? Write a script that calls all other scritps then.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Can I do this with Getmail? FreeDoughnut Linux - Software 0 03-25-2007 04:22 PM
Getmail exvor Linux - Software 3 03-31-2005 09:28 PM
fetchmail and getmail mikz Linux - General 1 03-21-2005 12:48 AM
fetchmail v. getmail gypsy_rabbi Linux - Software 0 01-26-2005 04:58 PM
using getmail linksocc Linux - Software 0 11-21-2003 12:19 AM


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

Main Menu
 
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
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration