PDA

View Full Version : Fetchmail Error


XTCHost
2008-08-19, 07:00 AM CDT
I have set up fetchmail & postfix on F9 - I set up a test yahoo account but get an error when I try to collect mail

[user@localhost ~]$ fetchmail --daemon 0 -v
fetchmail: 6.3.8 querying pop.mail.yahoo.co.uk (protocol POP3) at Tue 19 Aug 2008 01:47:13 PM BST: poll started
Trying to connect to 217.12.10.100/110...connected.
fetchmail: POP3< +OK hello from popgate 2.40 on pop006.mail.ukl.yahoo.com
fetchmail: POP3> CAPA
fetchmail: POP3< +OK CAPA list follows
fetchmail: POP3< EXPIRE NEVER
fetchmail: POP3< IMPLEMENTATION popgate 2.40
fetchmail: POP3< PIPELINING
fetchmail: POP3< RESP-CODES
fetchmail: POP3< TOP
fetchmail: POP3< UIDL
fetchmail: POP3< USER
fetchmail: POP3< .
fetchmail: pop.mail.yahoo.co.uk: opportunistic upgrade to TLS failed, trying to continue.
fetchmail: POP3> USER mail_bot
fetchmail: POP3< +OK password required.
fetchmail: POP3> PASS *
fetchmail: POP3< +OK maildrop ready, 5 messages (74282 octets) (103676)
fetchmail: POP3> STAT
fetchmail: POP3< +OK 5 74282
fetchmail: POP3> LAST
fetchmail: POP3< +OK 4
5 messages (4 seen) for mail_bot at pop.mail.yahoo.co.uk (74282 octets).
skipping message mail_bot@pop1.mail.vip.ukl.yahoo.com:1 not flushed
skipping message mail_bot@pop1.mail.vip.ukl.yahoo.com:2 not flushed
skipping message mail_bot@pop1.mail.vip.ukl.yahoo.com:3 not flushed
skipping message mail_bot@pop1.mail.vip.ukl.yahoo.com:4 not flushed
fetchmail: POP3> LIST 5
fetchmail: POP3< +OK 5 1849
fetchmail: POP3> RETR 5
fetchmail: POP3< +OK 1849 octets
reading message mail_bot@pop1.mail.vip.ukl.yahoo.com:5 of 5 (1849 octets)
Trying to connect to 127.0.0.1/25...connected.
fetchmail: SMTP< 220 localhost.localdomain ESMTP Postfix
fetchmail: SMTP> EHLO localhost.localdomain
fetchmail: SMTP< 250-localhost.localdomain
fetchmail: SMTP< 250-PIPELINING
fetchmail: SMTP< 250-SIZE 10240000
fetchmail: SMTP< 250-VRFY
fetchmail: SMTP< 250-ETRN
fetchmail: SMTP< 250-ENHANCEDSTATUSCODES
fetchmail: SMTP< 250-8BITMIME
fetchmail: SMTP< 250 DSN
fetchmail: SMTP> MAIL FROM:<sender@yahoo.co.uk> SIZE=1849
fetchmail: SMTP< 250 2.1.0 Ok
fetchmail: SMTP> RCPT TO:<user@localhost>
fetchmail: SMTP< 550 5.1.1 <user@localhost>: Recipient address rejected: User unknown in local recipient table
fetchmail: SMTP error: 550 5.1.1 <user@localhost>: Recipient address rejected: User unknown in local recipient table
fetchmail: SMTP listener doesn't like recipient address `user@localhost'
Trying to connect to 127.0.0.1/25...connected.
fetchmail: SMTP< 220 localhost.localdomain ESMTP Postfix
fetchmail: SMTP> HELO localhost.localdomain
fetchmail: SMTP< 250 localhost.localdomain
fetchmail: SMTP> MAIL FROM:<>
fetchmail: SMTP< 250 2.1.0 Ok
fetchmail: SMTP> RCPT TO:<sender@yahoo.co.uk>
fetchmail: SMTP< 250 2.1.5 Ok
fetchmail: SMTP> DATA
fetchmail: SMTP< 354 End data with <CR><LF>.<CR><LF>
fetchmail: SMTP: (bounce-message body)
fetchmail: SMTP>. (EOM)
fetchmail: SMTP< 250 2.0.0 Ok: queued as 2D3AB15F67
fetchmail: SMTP> QUIT
fetchmail: SMTP< 221 2.0.0 Bye
fetchmail: SMTP> RCPT TO:<user@localhost>
fetchmail: SMTP< 550 5.1.1 <user@localhost>: Recipient address rejected: User unknown in local recipient table
fetchmail: can't even send to user!
fetchmail: SMTP> RSET
fetchmail: SMTP< 250 2.0.0 Ok
not flushed
fetchmail: POP3> QUIT
fetchmail: POP3< +OK server signing off.
fetchmail: SMTP> QUIT
fetchmail: SMTP< 221 2.0.0 Bye
fetchmail: 6.3.8 querying pop.mail.yahoo.co.uk (protocol POP3) at Tue 19 Aug 2008 01:47:43 PM BST: poll completed
fetchmail: normal termination, status 0
[user@localhost ~]$

I keep trying different settings but am getting something wrong

tobiasoed
2008-08-19, 11:17 AM CDT
It would help if you pasted your fetchmailrc. The problem is

fetchmail: SMTP< 550 5.1.1 <user@localhost>: Recipient address rejected: User unknown in local recipient table
fetchmail: SMTP error: 550 5.1.1 <user@localhost>: Recipient address rejected: User unknown in local recipient table
fetchmail: SMTP listener doesn't like recipient address `user@localhost'

So fetchmail is trying to hand the message to postfix with destination user@localhost, who doesn't exist. You need something like "is xtchost@localhost here" in the config
Tobias

XTCHost
2008-08-19, 11:32 AM CDT
Sorry forgot to paste fetchmailrc, thought it may be a problem in postfix

fetchmailrc settings are
#
set daemon 300
poll pop.mail.yahoo.co.uk with proto POP3
user 'AAAA' with password 'xxxxxx' is 'DDDD' here
options keep
#

DDDD being the local account on my system