LinuxQuestions.org
Visit the LQ Articles and Editorials 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 08-08-2011, 10:25 AM   #1
ilrenato
LQ Newbie
 
Registered: Aug 2011
Posts: 2

Rep: Reputation: Disabled
Fetchmail delivers mail to /var/mail/fetchmail


Hi,

New here so I hope I am at the right place.

Using opensuse 11.4 and configuring that as a replacement for my old suse 9.x server.

I have fetchmail running as user.
I have a .fetchmailrc with the ordinairy stuff like poll pop3 as 'user'

As mta I have postfix.

My issue is that mail gets stored in /var/mail/fetchmail and also to 'user' (as far as I know and have checked and verified)

so /var/mail/'user' is size 0 and /var/mail/fetchmail is growing and growing and if I 'cat fetchmail' I see that most or all were delivered to my procmail.

I just do not get why it keeps it in fetchmail.

I searched the net, found one example someone had the same, he was told to add to the .fetchmailrc "poll pop3 ... "as 'user'" statement, I already have that..

Thanks for help.
 
Old 08-08-2011, 11:18 AM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 26,524
Blog Entries: 51

Rep: Reputation: 2601Reputation: 2601Reputation: 2601Reputation: 2601Reputation: 2601Reputation: 2601Reputation: 2601Reputation: 2601Reputation: 2601Reputation: 2601Reputation: 2601
Quote:
Originally Posted by ilrenato View Post
mail gets stored in /var/mail/fetchmail
Best post which instructions you followed (where?), how you run Fetchmail (command line), the contents of your .fetchmailrc (obfuscating any loginasswd and ISP data) and any log excerpts if you run fetchmail in debug mode.
 
Old 08-09-2011, 10:43 AM   #3
ilrenato
LQ Newbie
 
Registered: Aug 2011
Posts: 2

Original Poster
Rep: Reputation: Disabled
Well, ok, .fetchmailrc

postmaster user
set no bouncemail
set no spambounce
set no syslog
set daemon 300
set logfile ./fetchmaillog

poll "mail.isp" protocol POP3 user "user" there with password "password" is user here
and some more accounts..

also tried

poll "server.isp" protocol POP3
envelope x-originally-to
localdomains mydomain.tld localhost
user "remoteuser" there with password "password" is user here



here is the log file example

Aug 9 15:53:19 linux postfix/smtpd[1941]: 637542A3A93: client=localhost[::1]
Aug 9 15:53:19 linux postfix/cleanup[1945]: 637542A3A93: message-id=<201108091353.p79DrN6J003441@server.isp>
Aug 9 15:53:19 linux postfix/qmgr[31802]: 637542A3A93: from=<remoteuser@server>, size=2366, nrcpt=1 (queue active)
Aug 9 15:53:19 linux postfix/smtpd[1941]: disconnect from localhost[::1]
Aug 9 15:53:19 linux postfix/local[1946]: 637542A3A93: to=<fetchmail@localhost.mydomain>, orig_to=<fetchmail@localhost>, relay=local, delay=1.8, delays=1.7/0.01/0/0.08, dsn=2.0.0, status=sent (delivered to command: /usr/bin/procmail -Y -a $DOMAIN)
Aug 9 15:53:19 linux postfix/qmgr[31802]: 637542A3A93: removed
Aug 9 15:56:09 linux postfix/smtpd[2016]: connect from localhost[::1]
Aug 9 15:56:10 linux postfix/smtpd[2016]: AB89C2A3A93: client=localhost[::1]
Aug 9 15:56:10 linux postfix/cleanup[2018]: AB89C2A3A93: message-id=<201108091353.p79DrN6J003441@server.isp>
Aug 9 15:56:10 linux postfix/qmgr[31802]: AB89C2A3A93: from=<remoteuser@server.isp>, size=2356, nrcpt=1 (queue active)
Aug 9 15:56:10 linux postfix/smtpd[2016]: disconnect from localhost[::1]
Aug 9 15:56:20 linux postfix/local[2019]: AB89C2A3A93: to=<user@localhost.mydomain>, orig_to=<user@localhost>, relay=local, delay=11, delays=1/0.01/0/9.8, dsn=2.0.0, status=sent (delivered to command: /usr/bin/procmail -Y -a $DOMAIN)
Aug 9 15:56:20 linux postfix/qmgr[31802]: AB89C2A3A93: removed

Seems like mail first goes to fetchmail, then postfix reroutes, but mail stays in /var/mail/fetchmail too..

I can't track right now what route I followed to install the combo of fetchmail and postfix, but most is pretty well standard, just the result is not
 
Old 08-13-2011, 05:06 AM   #4
unSpawn
Moderator
 
Registered: May 2001
Posts: 26,524
Blog Entries: 51

Rep: Reputation: 2601Reputation: 2601Reputation: 2601Reputation: 2601Reputation: 2601Reputation: 2601Reputation: 2601Reputation: 2601Reputation: 2601Reputation: 2601Reputation: 2601
Quote:
Originally Posted by ilrenato View Post
Seems like mail first goes to fetchmail, then postfix reroutes, but mail stays in /var/mail/fetchmail too..
Ah, I see. So basically you've got an a local user account called "fetchmail" and its mail gets duplicated. Sounds like a procmail recipe thing to me.
 
  


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
fetchmail can't deliver to mailboxes in /var/mail turbo_acura Red Hat 1 11-10-2007 11:35 PM
Fetchmail hangs getting mail Gnarg Linux - Software 4 04-03-2006 06:51 AM
Q-Mail fetchmail Authfail emailssent Linux - Networking 0 01-13-2005 07:36 PM
Fetchmail flushing mail unclejessie77 Linux - Software 3 11-04-2003 11:53 AM
e-mail place/fetchmail NSKL Linux - General 13 11-26-2002 05:25 PM


All times are GMT -5. The time now is 01:12 AM.

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 Google+: linuxquestions
Open Source Consulting | Domain Registration