Simanta Handique forced the electrons to say:
> Hello,
> 
> I have mail system configured at the office sendmail and  fetchmail. Most of
> my mails come in  perfectly. But mails from the list and a couple of mails
> fowarded from my  mail.com account come to the postmaster instead of my
> mail-id at the office. The message source from one of these mails is given
> below. Can anyone help me out with this?

The attached mail says that sendmail at localhost received the mail for
postmaster. Now, why did fetchmail deliver the mail to postmaster is
your problem.

Let us take a tour of the headers.

> Received: from localhost (IDENT:[EMAIL PROTECTED] [127.0.0.1]) by
> ho.csasia.com (8.9.3/8.9.3) with ESMTP id NAA02342 for
> <postmaster@localhost>; Mon, 31 Jan 2000 13:12:19 +0530

Fetchmail delivers the mail here to sendmail on localhost; the mail is
meant for postmaster.

> Received: from www.csasia.com by localhost with POP3 (fetchmail-5.1.0) for
> postmaster@localhost (multi-drop); Mon, 31 Jan 2000 13:12:19 +0530 (IST)

Fetchmail retrives mail from your POP3 server, www.csasia.com - the mail
is meant for postmaster@localhost. It also says that postmaster@localhost
is a multidrop mailbox.

Are you running fetchmail as postmaster?

> Received: (from bin@localhost) by ngenie.com (8.9.3/8.9.3) id VAA21391 for
> mail-cs; Sun, 30 Jan 2000 21:01:16 -0800
> Received: from www.aunet.org (aunet.org [216.103.113.202]) by ngenie.com
> (8.9.3/8.9.3) with ESMTP id VAA21064 for <[EMAIL PROTECTED]>; Sun, 30 Jan 2000
> 21:00:53 -0800

The mail reaches your mailbox - csasia.com is your MX host and that is
where your mails are stored, in the mailbox [EMAIL PROTECTED]

> X-Fetchmail-Warning: recipient address
> [EMAIL PROTECTED] didn't match any local name

So, now we have traced the problem. Fetchmail on your
desktop PC is running in multidrop mode, and it cannot resolve
[EMAIL PROTECTED] to any address on the local
machine.

>From the fetchmail man page:

<SNIP>
       begin  to  see  this  when  a  message  comes  in  that is
       addressed only to a mailing list you do not have  declared
       as  a  local  name.  Each such message will feature an `X-
       Fetchmail-Warning'  header  which  is  generated   because
       fetchmail  cannot find a valid local name in the recipient
       addresses.  Such messages default (as was described above)
       to being sent to the local user running fetchmail, but the
       program has no way to know that that's actually the  right
       thing.

<SNIP>
       If you absolutely must use  multidrop  for  this  purpose,
       make  sure  your  mailserver  writes  an  envelope-address
       header that fetchmail can see.  Otherwise  you  will  lose
       mail and it will come back to haunt you.

Solutions:

1. If you absolutely want to run fetchmail as multidrop, on your POP server,
put a .procmail entry for yourself:

Edit ~/.procmailrc, and then put the following recipe in it:

:0:
* (^TO|^Old-To.*|^Reply-To:.*)linux-india-digest
  | formail -I "X-Envelop-To: [EMAIL PROTECTED]" >> /var/spool/mail/yourname

2. Or, disable multidrops locally. Use separate fetchmailrcs for different
people on the local machine.

Read the fetchmail man page completely for more details.

Binand

-- 
#include <stdio.h>                                   | Binand Raj S.
char *p = "#include <stdio.h>%cchar *p = %c%s%c;     | This is a self-
int main(){printf(p,10,34,p,34,10);return 0;}%c";    | printing program.
int main(){printf(p,10,34,p,34,10);return 0;}        | Try it!!

--------------------------------------------------------------------
The Linux India Mailing List Archives are now available.  Please search
the archive at http://lists.linux-india.org/ before posting your question
to avoid repetition and save bandwidth.

Reply via email to