[Subject Prev][Subject Next][Thread Prev][Thread Next][Subject Index][Thread Index]

Re: sendmail problems.....



According to Ghins Mathai:
> 
> Mrs N P Salaria wrote:
> 
> > <<snip>>
> > Hello,
> > You will have to modify the .fetchmailrc, for the envelope information
> > usually fetchmail assumes the envelope info as X-envelope-To , this
> > envelope info is stripped and the mail is delivered to the right person
> > but when it carries a mailing list address the X-envelope header carries
> > info of the mailing list address and the mail goes to root/postmaster
> > instead of to the right user whose userid is usually in the second
> > envelope
> 
> Even I am facing the same problem. Could you please tell me one thing ? How do
> I look at the mail along with its envelope and all other information. I tried
> something like
> 
> fetchmail --mda cat -p pop3 ....
> 
> It fetches the mail from the server and pipes it to cat. The issue out here is
> I want them to be sent to the  sendmail daemon as well.  How can I do this ?
> 
> >
> > In your case where you are using fetchmail in mullti drop mode ,
> 
> What exactly is a multidrop ? Could not understand much from the man pages.
> Please tell me more.
> 
> 
> >
> > the isp usually adds one more envelope with the right username and
> > a string prefix , is is this envelope that is to be used and use the
> > string qvirtual to strip that part of the envelope inof and get the
> > actual user id .
> > So please go through the headers of the mail that you have recd
> > and modigy .fetchmailrc with the envelope info
> > in my .fetchmailrc I have added
> > envelope 1 "Delivered-To:"
> > qvirtual teraltd+teraltd.com-X-
> >
> > so when fetchmail pulls mail , it looks for the second Delivered to envelope
> > and strips the string teraltd+teraltd.com-X- and this gives the right user
> > name in case of mailing lists
> > Please read man fetchmail for full details
> > Hope this helps
> > nps
> >
Hello ,
I am just attaching one mail header please go through it in detail
you will see no of received and delivered to headers ..
Normally when one sends mail say you have an account on bom2 at vsnl 
and you use pop to pull that mail the mail is directly addrressed to 
user@bom2, 
but in case you are pulling the mail for a no of users from one 
internet server for an entire domain then it is in multi drop mode
There is an inbetween server which receives all the mail for an entire 
domain, then there is an ulltimate server which pulls all these 
mail and redistributes them to individual users .. that is multidrop.

I will give our example we have our mail server as teraltd.com
which is suppose to receive mail for all users@xxxxxxxxxxx
All Unix mail servers use sendmail( 90 %) , they are suppose to 
receive mails for the accounts that exist and reject the others 
but in case of multi drop they are suppose to receive all the mails
for a particular domain , so rejection does not come . 
We then pull all the mails and redistribute here, which again if we 
have senddmail at our end it does it automatically. 
In Linux once mail comes in it automatically gets distributed to all the 
users mailboxes , whichever accounts are existing and for unknown users 
a copy goes to root. so if you use sendmail you need not use procmail
and configure for each individual.
This mail server which comes in between adds its own headers , we have
to configure fetchmail to accordingly recognise the right header and 
pull the mail accordingly.
I am attaching one such header ... 


>From majordom@xxxxxxxxx  Tue Jul  6 11:39:30 1999
Return-Path: <majordom@xxxxxxxxx>
Received: from localhost (root@localhost [127.0.0.1])
	by teraltd.com (8.8.7/8.8.7) with ESMTP id LAA11784
	for <nps@localhost>; Tue, 6 Jul 1999 11:39:28 +0530
Received: from mail.teleport.com
	by localhost with POP3 (fetchmail-4.7.3)
	for nps@localhost (multi-drop); Tue, 06 Jul 1999 06:09:29 +0000 (UTC)
Received: by mail1 (mbox eraltd)
 (with Cubic Circle's cucipop (v1.31 1998/05/13) Mon Jul  5 23:03:17 1999)
X-From_: majordom@xxxxxxxxx Tue Jul 06 05:02:14 1999
Delivered-To: teraltd@xxxxxxxxxxxx
Received: (qmail 1498 invoked by uid 63273); 6 Jul 1999 05:02:13 -0000
Delivered-To: teraltd+teraltd.com-X-nps@xxxxxxxxxxx
Received: (qmail 1487 invoked from network); 6 Jul 1999 05:02:12 -0000
Received: from aunet.org (HELO www.aunet.org) (216.103.113.202)
  by smtp7.teleport.com with SMTP; 6 Jul 1999 05:02:12 -0000
Received: from majordom by www.aunet.org with local (Exim 2.05 #1 (Debian))
	id 111MtV-0003Mz-00; Mon, 5 Jul 1999 21:31:45 -0700
Received: from sgi.sgi.com (sgi.com) [192.48.153.1] 
	by www.aunet.org with esmtp (Exim 2.05 #1 (Debian))
	id 111MtV-0003Mr-00; Mon, 5 Jul 1999 21:31:45 -0700
Received: from nodin.corp.sgi.com ([192.26.51.193]) 
	by sgi.com (980327.SGI.8.8.8-aspam/980304.SGI-aspam:
       SGI does not authorize the use of its proprietary
       systems or networks for unsolicited or bulk email
       from the Internet.) 
	via ESMTP id VAA07625
	for <@external-mail-relay.sgi.com:linux-india@xxxxxxxxx>; Mon, 5 Jul 1999 21:31:40 -0700 (PDT)
	mail_from (raju@xxxxxxxxxxxxxxxxxxxxxxxxx)
Received: from sgindia.newdelhi.sgi.com (newdelhi.sgi.com [134.14.90.2]) by nodin.corp.sgi.com (980427.SGI.8.8.8/980728.SGI.AUTOCF) via ESMTP id VAA53312 for <@relay.sgi.com:linux-india@xxxxxxxxx>; Mon, 5 Jul 1999 21:31:36 -0700 (PDT)
Received: from bhairavi.newdelhi.sgi.com (bhairavi.newdelhi.sgi.com [134.14.90.52]) by sgindia.newdelhi.sgi.com (980427.SGI.8.8.8/970903.SGI.AUTOCF) via ESMTP id JAA35495 for <linux-india@xxxxxxxxx>; Tue, 6 Jul 1999 09:58:26 +0530 (IST)
Received: (from raju@localhost)
	by bhairavi.newdelhi.sgi.com (8.9.3/8.9.3) id JAA13889;
	Tue, 6 Jul 1999 09:42:27 +0530 (IST)
Date: Tue, 6 Jul 1999 09:42:27 +0530 (IST)
Message-Id: <199907060412.JAA13889@xxxxxxxxxxxxxxxxxxxxxxxxx>
From: Raj Mathur <raju@xxxxxxx>
To: linux-india@xxxxxxxxx
Subject: Re: Is Linux C2 Compliant ?
In-Reply-To: <7C8D1D72111CD311A3BE0090277B326A37E8EF@xxxxxxxxxxxxxxxxxxxx>
References: <7C8D1D72111CD311A3BE0090277B326A37E8EF@xxxxxxxxxxxxxxxxxxxx>
X-Mailer: VM 6.31 under 20.2 XEmacs Lucid
Mime-Version: 1.0 (generated by tm-edit 7.106)
Content-Type: text/plain; charset=US-ASCII
Precedence: bulk
Reply-To: linux-india@xxxxxxxxx
X-Url: http://www.linux-india.org
Sender: Majordomo <majordom@xxxxxxxxx>
Status: O


Here to original TO carries the name linux-india@xxxxxxxxx, but I want the 
mail to be sent to nps , see the delivered to headers 
One Delivered to has teraltd@xxxxxxxxxxxx
and the second Delivered to has 
Delivered-To: teraltd+teraltd.com-X-nps@xxxxxxxxxxx
it is this nps I am interested in to deliver to nps
Now all the mails which come will contain the real user in the 
second delivered to envelope 
so 
this is my .fetchmailrc

set daemon 0
poll mail.teleport.com with protocol POP3:
no dns, aka teraltd.com
envelope 1 "Delivered-To:" 
qvirtual teraltd+teraltd.com-X-
user teraltd is * here 
password xxxxxxx
#flush

PS this is multi drop when all mails for teraltd.com go to 
teleportserver as they are hosting our internet maiil server and then we pull 
and distribute tto individual users 
Hope this helps 
nps 
- -- 
_____________________________________________
   N P Salaria      |  nps@xxxxxxxxxxx
  Tera Informatics  |  Tel: (022)-8280251
  Bombay, India     |  Res: (022)-5770472
- ----------------------------------------------

- --------------------------------------------------------------------
For more information on Linux in India visit http://www.linux-india.org/
Please do not post HTML email to this mailing list.  HTML mails will be
thoroughly ignored and derisively sniggered at in private.

------------------------------

End of Linux India Digest V1 #94
********************************

--------------------------------------------------------------------
To unsubscribe send an email to majordomo@xxxxxxxxx with the word
'unsubscribe linux-india-digest' (without the quotes) in the body
of the email.