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

email headers



>>>>> "Ross" == Ross Henderson <ros.h [at] virgin.net> writes:

    Ross> procmail as local delivery agent (procmail -ptoY -f)

and

    Ross>  mda 'procmail -ptoY -f'

'-f' takes an argument, which overrides the envelope sender.  I don't
understand why you'd want to do this.  I don't know what it does if
you don't provide it; apparently it doesn't generate the envelope line
(the one that starts with "From " at the top).  Take that '-f' out.
Or you could use '-f -' to get the time stamp on the existing one
updated.

I don't understand why you're using '-p' ("preserve old environment");
I'd take that out too.  The only reason to use this that I can think
of would be to create special .procmailrc that branches based on the
environment at fetchmail invocation; dangerous.

BTW, the fetchmail man page recommends "/usr/bin/procmail  -d %T"
(which is what I use in my smail configuration, too).  Where'd the
'-ptoY -f' stuff come from?

In fact, fetchmail(1) says:

       -m <command>, --mda <command>
              (Keyword:  mda)  You can force mail to be passed to
              an MDA directly (rather than forwarded to port  25)
              with  the  -mda  or  -m option.  Be aware that this
              disables some valuable  resource-exhaustion  checks
              and error handling provided by SMTP listeners; it's
              not a good idea unless running an SMTP listener  is
              impossible.   If  fetchmail  is running as root, it
              sets its userid to that of the  target  user  while
              delivering mail through an MDA.  Some possible MDAs
              are   "/usr/sbin/sendmail   -oem   -f    %F    %T",
              "/usr/bin/deliver"  and  "/usr/bin/procmail  -d %T"
              (but the latter is usually redundant as  it's  what
              SMTP listeners usually forward to).  Local delivery
              addresses will be inserted  into  the  MDA  command
              wherever  you  place  a %T; the mail message's From
              address will be inserted where you place an %F.  Do
              not  use  an MDA invocation like "sendmail -oem -t"
              that dispatches on the contents  of  To/Cc/Bcc,  it
              will  create mail loops and bring the just wrath of
              many postmasters down upon your head.

Ie, since you've got sendmail, you should use it.

-- 
University of Tsukuba                Tennodai 1-1-1 Tsukuba 305-8573 JAPAN
Institute of Policy and Planning Sciences       Tel/fax: +81 (298) 53-5091
_________________  _________________  _________________  _________________
What are those straight lines for?  "XEmacs rules."
---------------------------------------------------------------------
Sheffield Linux User's Group - http://www.sheflug.co.uk
To unsubscribe from this list send mail to
- <sheflug-request [at] vuw.ac.nz> - with the word 
 "unsubscribe" in the body of the message. 

  GNU the choice of a complete generation.