Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
fetchmail - procmail - help!
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
Terminal Insanity
n00b
n00b


Joined: 20 Aug 2003
Posts: 51

PostPosted: Thu Mar 11, 2004 9:43 am    Post subject: fetchmail - procmail - help! Reply with quote

I'm trying to retreve email from my isp's pop3 server.

.fetchmailrc
Code:
poll mail.some-site.net protocol pop3 username "me@some-site.net" password "blarp"


when i run fetchmail:
Code:
fetchmail: Server CommonName mismatch: localhost.localdomain != mail.some-site.net
fetchmail: Server CommonName mismatch: localhost.localdomain != mail.some-site.net
fetchmail: Server CommonName mismatch: localhost.localdomain != mail.some-site.net
1 message for me@some-site.net at mail.some-site.net (1301 octets).
reading message me@some-site.net@mail.some-site.net:1 of 1 (1301 octets) .fetchmail: SMTP connect to localhost failed
fetchmail: SMTP transaction error while fetching from mail.some-siite.net
fetchmail: Query status=10 (SMTP)


Now, i do not have, or want to have, a SMTP server running localy. Why should i? fetchmail has retreved the email, why can it not simply write it to disk and be done with it? why does it NEED to send it to a SMTP server?
Back to top
View user's profile Send private message
adaptr
Watchman
Watchman


Joined: 06 Oct 2002
Posts: 6730
Location: Rotterdam, Netherlands

PostPosted: Thu Mar 11, 2004 9:57 am    Post subject: Reply with quote

It doesn't need to - you have to tell it what to do!
Where do you tell it what local user to deliver this mail to ?
By default, yes, it does try to forward the mail to a local SMTP server.
Maybe you could try to change this...

man fetchmail I'd say.
_________________
>>> emerge (3 of 7) mcse/70-293 to /
Essential tools: gentoolkit eix profuse screen
Back to top
View user's profile Send private message
Terminal Insanity
n00b
n00b


Joined: 20 Aug 2003
Posts: 51

PostPosted: Thu Mar 11, 2004 4:45 pm    Post subject: Reply with quote

fetchmail is executed like this:
Code:
fetchmail -akv -m "/usr/bin/procmail -d %T"


my .procmailrc file:
Code:
MAILDIR=$HOME/mail
LOGABSTRACT=no
VERBOSE=off
FORMAIL=/usr/bin/formail
NL="
"
:0
* .*
default



so that should specify what user to deliver the mail to :o
Ive got a new problem...

Code:
fetchmail: POP3< +OK Mailbox open, 1 messages
fetchmail: selecting or re-polling default folder
fetchmail: POP3> STAT
fetchmail: POP3< +OK 1 1294
1 message for me@some-site.net at mail.some-site.net (1294 octets).
fetchmail: POP3> LIST
fetchmail: POP3< +OK Mailbox scan listing follows
fetchmail: POP3< 1 1294
fetchmail: POP3< .
fetchmail: POP3> RETR 1
fetchmail: POP3< +OK 1294 octets
reading message ti@some-site.net@mail.some-site.net:1 of 1 (1294 octets)
About to rewrite Return-Path: <terminal@some-site.net>
Rewritten version is Return-Path: <terminal@somte-site.net>

About to rewrite From: Terminal Insanity <terminal@some-site.net>
Rewritten version is From: Terminal Insanity <terminal@some-site.net>

About to rewrite To: me@some-site.net
Rewritten version is To: me@some-site.net

fetchmail: about to deliver with: /usr/bin/procmail -d 'terminal'
#** not flushed
fetchmail: POP3> QUIT
fetchmail: POP3< +OK Sayonara
fetchmail: 6.2.3 querying mail.some-site.net (protocol POP3) at Thu Mar 11 11:24:18 2004: poll completed
fetchmail: not swapping UID lists, no UIDs seen this query
fetchmail: Deleting fetchids file.
fetchmail: normal termination, status 0
fetchmail: Deleting fetchids file.


everything seems to have gone fine, but ~/mail is empty, so is /var/mail/terminal

(and sorry for being a bit bitchy in my previous post, it was 3am and i just wanted it to work lol :(
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum