[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Smail/Sendmail Question



Hi,
>>"mfrattola" == mfrattola  <mfrattola@mail.enjoy.it> writes:

mfrattola> Maybe I'm wrong, but doesn't this rewrite 'From' for every
mfrattola> message, and not only for those 'going out' of his LAN?
mfrattola> Also, doesn't confDELIVERY_MODE=queue queue all messages
mfrattola> and wait for runq to make the delivery?

	Umm, I think not. let me see. 
______________________________________________________________________
>From root  Sun Mar  8 02:19:33 1998
Received: (from root@localhost)
        by tiamat.datasync.com (8.8.8/8.8.8/Debian/GNU) id CAA09080
        for root; Sun, 8 Mar 1998 02:16:07 -0600
Date: Sun, 8 Mar 1998 02:16:07 -0600
From: root <root>
Message-Id: <199803080816.CAA09080@tiamat.datasync.com>
To: root
Subject: mirror update of Debian
X-Filter: mailagent [version 3.0 PL58] for srivasta@tiamat.datasync.com
______________________________________________________________________

	See? No rewrite for local mail.

	As to the other question, yes, the confDELIVERY_MODE=queue
 queues  all messages. My bad.

	The solution is to make all mailers except the local one
 expensive. 

----------------------------------------------------------------------
__> egrep ^M /etc/sendmail.cf
Mlocal,		P=/usr/sbin/sensible-mda, F=lsDFMAw5:/|@qh90, S=10/30, R=20/40,
Mprog,		P=/bin/sh, F=lsDFMoqu9, S=10/30, R=20/40, D=$z:/,
Msmtp,		P=[IPC], F=emDFMuX, S=11/31, R=21, E=\r\n, L=990,
Mesmtp,		P=[IPC], F=emDFMuXa, S=11/31, R=21, E=\r\n, L=990,
Msmtp8,		P=[IPC], F=emDFMuX8, S=11/31, R=21, E=\r\n, L=990,
Mrelay,		P=[IPC], F=emDFMuXa8, S=11/31, R=61, E=\r\n, L=2040,
----------------------------------------------------------------------
	Notice the flag (F) e? it is not there for local or prog
 mailers, but is there for all smtp or esmtp mailers, and hence the
 non-local mail should wait for the queue run, but the local mail is
 delivered immediately.

	This is untried; but it should work.

	manoj
-- 
 In general, if you think something isn't in Perl, try it out, because
 it usually is.  :-) --Larry Wall in
 <1991Jul31.174523.9447@netlabs.com>
Manoj Srivastava  <srivasta@acm.org> <http://www.datasync.com/%7Esrivasta/>
Key C7261095 fingerprint = CB D9 F4 12 68 07 E4 05  CC 2D 27 12 1D F5 E8 6E


--
E-mail the word "unsubscribe" to debian-user-request@lists.debian.org
TO UNSUBSCRIBE FROM THIS MAILING LIST. Trouble?  E-mail to listmaster@debian.org .


Reply to: