Re: "From " header

Nethub Online - Ming <[email protected]> Mon, 29 Jun 2015 06:19:38 +0000 (UTC)
Newsgroups gmane.mail.maildrop
Message-ID <[email protected]>
Sam Varshavchik <mrsam <at> courier-mta.com> writes:

> 
> Nethub Online - Ming writes:
> 
> > Hi,
> >
> > After enabling maildrop, I found that it will add a "From " header to the
> > first line of email, like this:
> >
> > >From root <at> helloworld.com Fri Jun 26 06:27:19 2015
> >
> > How to remove it or not adding it?
> 
> maildrop adds the From header when writing mail to mbox files. That's the  
> format of mbox files.
> 
> Switch to maildirs.
> 
> 
> 
> ------------------------------------------------------------------------------
> Monitor 25 network devices or servers for free with OpManager!
> OpManager is web-based network management software that monitors 
> network devices and physical & virtual servers, alerts via email & sms 
> for fault. Monitor 25 devices for free with no restriction. Download now
> http://ad.doubleclick.net/ddm/clk/292181274;119417398;o
> 
> _______________________________________________
> Courier-maildrop mailing list
> Courier-maildrop <at> lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/courier-maildrop
> 

Thanks Sam,

I am sorry that would you let me know how to do it? Actually I thought
maildrop would auto detect by checking the destination is a file or
directory. Below is my maildrop simple config for testing and the related
home directory structure.




# cat /etc/maildroprc
SHELL="/bin/sh"
import EXT
import HOST
VPOPMAILDIR="/home/vpopmail"
VHOME=`$VPOPMAILDIR/bin/vuserinfo -d $EXT@$HOST`
HOME=$VHOME
DEFAULT=$VHOME/Maildir

exception {
	to "$VHOME/Maildir"
}

# ls -al /home/vpopmail/domains/vo.demo360.net/test
total 16
drwx------ 3 vpopmail vchkpw 4096 May 15 15:44 .
drwx------ 4 vpopmail vchkpw 4096 May 15 15:44 ..
drwx------ 5 vpopmail vchkpw 4096 May 15 15:44 Maildir
-rw------- 1 vpopmail vchkpw   14 Jun 29 10:35 lastauth

# ls -al /home/vpopmail/domains/vo.demo360.net/test/Maildir/
total 20
drwx------ 5 vpopmail vchkpw 4096 May 15 15:44 .
drwx------ 3 vpopmail vchkpw 4096 May 15 15:44 ..
drwx------ 2 vpopmail vchkpw 4096 May 15 15:44 cur
drwx------ 2 vpopmail vchkpw 4096 Jun 29 12:02 new
drwx------ 2 vpopmail vchkpw 4096 Jun 29 12:02 tmp


------------------------------------------------------------------------------
Monitor 25 network devices or servers for free with OpManager!
OpManager is web-based network management software that monitors 
network devices and physical & virtual servers, alerts via email & sms 
for fault. Monitor 25 devices for free with no restriction. Download now
http://ad.doubleclick.net/ddm/clk/292181274;119417398;o