fetchmail-friends
[Top] [All Lists]

[fetchmail] Fetchmail send to two addresses

2003-05-21 01:39:34
Hi,

I have one pop3 mailbox, say support(_at_)mydomain(_dot_)com, located on 
an ISP server, say pop.myisp.com, and I want to setup fetchmail in 
order to retrieve mail from this account, and fortward it to other 
accounts, say dest1(_at_)domain1(_dot_)com and dest2(_at_)domain2(_dot_)com 
using 
ISP smtp, say mail.myisp.com. I have no control on pop,myisp.com 
and mail.myisp.com

Here is the .fetchmailrc:

===========
set postmaster "postmaster"
set bouncemail
set no spambounce
set properties ""
poll pop.myisp.com with proto POP3
       user "support(_at_)mydomain(_dot_)com" there with password 'XXXXXX' 
to 'dest1(_at_)domain1(_dot_)com' 'dest2(_at_)domain2(_dot_)com' here
    smtphost  mail.myisp.com
===========

What happens is that, if I specify in .fetchmailrc only one address 
(dest1 or dest2), fetchmail does what I want, i.e. takes mail from 
support(_at_)mydomain(_dot_)com and forwards to the specified user.

If I specify both, fetchmail does not forward anything and, running it 
with -v option, says:

===========
fetchmail: unrecognized POP3 command
fetchmail: nameserver failure while looking for `mydomain.com' 
during poll of pop.myisp.com.
===========

The operation detail is:

===========
fetchmail: 6.2.2 querying pop.myisp.com (protocol POP3) at Tue, 20 
May 2003 11:17:23 +0200 (CEST): poll started
fetchmail: POP3< +OK POP3 PROXY server ready (7.0.000) 
<D376AD7A081485549BE0D2C7B808D68C603A5C57(_at_)myisp(_dot_)com

fetchmail: POP3> CAPA
fetchmail: POP3< +OK Capability list follows
fetchmail: POP3< TOP
fetchmail: POP3< RESP-CODES
fetchmail: POP3< USER
fetchmail: POP3<  DIGEST-MD5
fetchmail: POP3< PIPELINING
fetchmail: POP3< UIDL
fetchmail: POP3< .
fetchmail: POP3> USER support(_at_)mydomain(_dot_)com
fetchmail: POP3< +OK Password required
fetchmail: POP3> PASS 
fetchmail: POP3< +OK 1 messages
fetchmail: POP3> STAT
fetchmail: POP3< +OK 1 988
fetchmail: POP3> LAST
fetchmail: POP3< -ERR unrecognized POP3 command
fetchmail: POP3> UIDL
fetchmail: POP3< +OK
fetchmail: POP3< 1 24
fetchmail: POP3< .
1 message for support(_at_)mydomain(_dot_)com at pop.myisp.com (988 
octets).
fetchmail: POP3> LIST
fetchmail: POP3< +OK
fetchmail: POP3< 1 988
fetchmail: POP3< .
fetchmail: POP3> TOP 1 99999999
fetchmail: POP3< +OK
reading message support(_at_)mydomain(_dot_)com@pop.myisp.com:1 of 1 
(988 octets)

 not flushed
fetchmail: POP3> QUIT
fetchmail: POP3< +OK POP3 server closing connection
fetchmail: 6.2.2 querying pop.myisp.com (protocol POP3) at Tue, 20 
May 2003 11:17:52 +0200 (CEST): poll completed
fetchmail: normal termination, status 0
===========

What's wrong?

TIA!!!!
Andrea

ICQ:5459894
Registered Linux User #24583


<Prev in Thread] Current Thread [Next in Thread>