Query about missing envelope sender in quarantined mail

Jim Holland mailscanner at mango.zw
Thu May 25 11:04:40 IST 2006


Hi all

I am using:

	MailScanner-4.52.2-1
	sendmail-8.13.6
	Red Hat Linux release 7.1 (Seawolf)
	Kernel 2.4.20-28.7 on an i586

I have configured the following lines in MailScanner.conf to ensure that 
envelope From headers are recorded:

	Add Envelope From Header = yes
	Envelope From Header = X-%org-name%-MailScanner-From:
	Quarantine Whole Message = yes
	Quarantine Whole Messages As Queue Files = no

and this works fine for mail that has been accepted for delivery.  
However such mail in fact retains the envelope sender in any case so the
above is rather redundant.  My query is how to do the same for quarantined
mail, which always has a header like this:

	Return-Path: <.g>
	Received: from . . .
	From: . . .
	Subject: . . .

instead of the usual:

	From user at domain Thu May 25 11:49:49 2006
	Received: from . . .
	From: . . .
	Subject: . . .

There is no "From " line at the start of the header in quarantined mail,
and there is no MailScanner-From line to indicate the envelope sender
either.  The only way to find out who sent the message is to look up the
message in the maillog file, which is rather tedious.  Why does the first
line of the header have the "From "  line replaced by Return-Path with
nothing useful in it?  Can that behaviour be changed?

Regards

Jim Holland
System Administrator
MANGO - Zimbabwe's non-profit e-mail service



More information about the MailScanner mailing list