Linux-admin Development Archive on lore.kernel.org
 help / color / mirror / Atom feed
* Re: sendmail problem
@ 2003-11-27 13:37 Sarvesh Singhal
  2003-11-27 15:11 ` Glynn Clements
  0 siblings, 1 reply; 2+ messages in thread
From: Sarvesh Singhal @ 2003-11-27 13:37 UTC (permalink / raw)
  To: linux-admin

 Hi all,
 
 last many days I am looking at ways to backup all out going mail in a
 particaular direct./mail id/...
 
 is there any way out?
 
 With Regards,
 Sarvesh Singhal 


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: sendmail problem
  2003-11-27 13:37 sendmail problem Sarvesh Singhal
@ 2003-11-27 15:11 ` Glynn Clements
  0 siblings, 0 replies; 2+ messages in thread
From: Glynn Clements @ 2003-11-27 15:11 UTC (permalink / raw)
  To: Sarvesh Singhal; +Cc: linux-admin


Sarvesh Singhal wrote:

>  last many days I am looking at ways to backup all out going mail in a
>  particaular direct./mail id/...
>  
>  is there any way out?

You can log *all* traffic into a single file by using the -X switch,
e.g.

	sendmail -bd -q15m -X /var/log/sendmail.dump

From there, you can extract individual messages with a script. Note
that this will only log mail which is sent through the daemon. That
will be sufficient for a dedicated mail server, but not for a system
on which users have shell accounts.

Anything other than that is messy. The sendmail FAQ's contribution to
this topic is limited to the following:

[from http://www.sendmail.org/faq/section4.html#4.20 ]

	Subject: Q4.20 -- How can I automatically copy messages based on
	sender or recipient addresses?
	
	Date: June 30, 2000 
	Updated: February 27, 2001 
	Updated: June 5, 2001 
	Updated: February 13, 2003 
	
	It would require custom programming. You could either write a mail
	filter using the new Milter API in sendmail 8.10 and later (see
	libmilter/README) or you could look at some of these other unsupported
	hints:
	
	      o Axel Reinhold's logall.c module 
	      o Message-Id: <33AA593A.4B701C3F@syntegra.nl> 
	      o the procmailrc man page 
	
	Note that no such feature has been added to sendmail. When asked about
	this one of the sendmail developers said it was "because we still
	believe a bit in privacy."

-- 
Glynn Clements <glynn.clements@virgin.net>

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2003-11-27 15:11 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-11-27 13:37 sendmail problem Sarvesh Singhal
2003-11-27 15:11 ` Glynn Clements

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox