At 17:02 10/01/2005 +0000, Robert Slade wrote:
Hiya,
I have a small fetchmail setup as a backup to my mail server so I can
pop my mail if for any reason my mail server is down.
My setup works fine to mail directly addressed ie with a To: which is
local, the problem I have is that for mail that is via a mailing list or
has been Bcc'd, Fetchmail is not recognising the X-Envelope-To: or the
Envelope-To: addresses. In the 2 examples I have, fetchmail gives a
warning. In the 1st case it says there was no To: and the warning was no
recipient addresses matched etc, in the 2nd (corectly) that the actual
To: address didn't match any local one
It looks like my Fetchmail config is not looking for the X-Envelope-To
or the Envelope-To, but just looking for the To: Looking through the
docs it is not clear to me how to use the envelope option. For example
should I change the .rc file:
From:
poll mailserver localdomains local.domain
user fred password fred to * here
To:
poll mailserver localdomains local.domain
user fred password fred to * here envelope to * here
Note names changed, but mailserver is a multiuser mailbox, the Pop3
server appears to be exim and mine is qmail.
Or would the envelope to * here work anyway and the to * here not
necessary.
I have tried the change and fetchmail seems to start ok so the syntax is
probably right. Trouble is the bcc and mailing list mails don't happen
very frequently and I am not sure if the above will work.
Rob,
I use the 'aka' keyword to get fetchmail to recognize the address in a Received
Line
My mail gets popped off a demon server and they all use 'by mailstore' in the
last
received line. Your mail which of course is from a mailing list shows the last
received header as:
Received: from punt-3.mail.demon.net by mailstore
for carl(_at_)anexia(_dot_)demon(_dot_)co(_dot_)uk id 1Co33d-0007aC-8C;
Mon, 10 Jan 2005 17:10:21 +0000
So i use this in my .fetchmailrc:
poll pop3.demon.co.uk with proto POP3 aka mailstore no dns:
localdomains anexia.demon.co.uk anexia.co.uk mailgate
localhost.localdomain wsb.anexia.co.uk mailstore
user anexia there with password 'mypassword' is * here
Seems to work for me.
There's also the envelope skipping idea. Read the M questions
in the FAQ at http://catb.org/~esr/fetchmail/fetchmail-FAQ.html
Hope that helps
Carl