From: Andrew Longland-M. <an...@lo...> - 2006-06-29 13:47:13
|
On Thu, 2006-06-29 at 11:07 +0200, Matthias Andree wrote: > Andrew Longland-Meech <an...@lo...> writes: > > > Hello list members, > > > > I hope someone can help me - I can't be the only person to have ever run > > into this problem. I've read the FAQ, but that doesn't seem to describe > > my situation and I've tried everything I can think of. > > > > Here's my setup: > > > > fetchmail version: 6.3.4 > > Kernel: 2.6.16-1.2080.13.rdt.rhfc5.ccrma > > ISP: Freenetname.co.uk > > > > My ISP provides forwarding from my own domain, and each and every email > > I receive has a proper Envelope-to; header. > > > > I want to have mail for (mypartner)@(mydomain).me.uk delivered to > > localuser (mypartner) and everything else delivered to localuser (me). > > > > Here's my .fetchmailrc file: > > > > set postmaster "(me)" > > set bouncemail > > set no spambounce > > set properties "" > > #set daemon 900 > > poll mail.freenetname.co.uk with proto POP3 envelope "Envelope-to" > > user "(username)@freenetname.co.uk" with password "(*******)" > > to "(mypartner)@(mydomain).me.uk"="(mypartner)" > > "(username)@freenetname.co.uk"="(me)" > > "(myname)@(mydomain).me.uk"="(me)" > > here > > options keep fetchall > > > > Now, I think this is setup correctly, following the example in the man > > page for a multi-drop setup, and indeed fetchmail seems to be using the > > Envelope-to address according to the output of 'fetchmail -v -v' but it > > simply isn't doing what it's supposed to and matching the server names > > to the local names! Everything still gets delivered to (me) and contains > > a header of the form - > > > > X-Fetchmail-Warning: recipient address (Envelope-to address) didn't > > match any local name > > > > Does anyone have any suggestions? > > Well, fetchmail doesn't support full addresses in user mappings yet, > thus you'll need to rewrite your configuration a bit, hoping that > (mypartner) is different from (username) and that > (mypartner) is also different from (myname). > > fetchmail doesn't seem to recognize the recipient addresses either since > the MX servers for these are most likely not the same as > mail.freenetname.co.uk. > > Please add between the poll and user lines these three: > > poll mail.freenetname.co.uk > aka "(mydomain).me.uk" > aka "freenetname.co.uk" > proto POP3 > options UIDL > envelope "Envelope-To" > user "(username)@freenetname.co.uk" > password "(*******)" > is "(mypartner)"="(mypartner)" > "(username)"="(me)" > "(myname)"="(me)" > here > options keep > > Remarks: > 1. fetchall and keep together is usually wrong > 2. UIDL is needed to make "keep" setups reliable > Matthias, Thank you so much. It works! I didn't understand the bit in the manual about 'aka', but having now re-read it, it sort of makes sense. I only used keep and fetchall together so that I'd always got some fetchable messages on the server whilst I was trying to get this to work. Do I still need 'uidl' if I don't use 'keep'? Thanks again. Andrew |