Re: MUA Filters vs Procmail filters[was] RE: Mailing list procmailrecipe

From: Alexander Dalloz (alexander.dalloz_at_uni-bielefeld.de)
Date: 04/10/04

  • Next message: John McBride: "Re: Fedora core 1 live cd?"
    Date: Sat, 10 Apr 2004 18:05:10 +0200
    To: For users of Fedora Core releases <fedora-list@redhat.com>
    
    
    
    

    Am Sa, den 10.04.2004 schrieb Jay Daniels um 17:34:

    > > Remember that if sendmail is setup to include procmail magic in
    > > .procmailrc and tinkering with .forward is not needed.
    > >
    > > On FC1 it is common to see procmail as a local resource for sendmail:
    > > $ grep procmail /etc/mail/*mc
    > > /etc/mail/sendmail.mc:define(`PROCMAIL_MAILER_PATH',`/usr/bin/procmail')dnl
    > > /etc/mail/sendmail.mc:FEATURE(local_procmail,`',`procmail -t -Y -a $h -d $u')dnl/etc/mail/sendmail.mc:MAILER(procmail)dnl
    >
    > If I understand correctly, then I can delete ~/.forward?
    >
    > In the grep I get the same as you on the *mc files.
    >
    > This is great, I can then setup a system wide .procmailrc and create
    > .procmail/rc.* for all users?

    > jay

    Jay,

    of course. I mailed that circumstance in a more descriptive way too on
    Thursday:

    "The procmail call in the .forward file is only necessary if the MTA
    does
    not call procmail directly as the LDA. I.e. on a mail system running
    sendmail it is totally unnecessary to call procmail a second time
    because by standard sendmail uses procmail as the LDA/MDA (local
    delivery agent / mail delivery agent). Although sendmail can use
    different LDAs like maildrop or let cyrus imapd do the job."

    In other words: Sendmail only acts as MTA (Mail Transfer Agent) and gets
    the mail by foreign senders and passes the incoming mail to the LDA/MDA
    configured in sendmail.mc. Sendmail does not care for mail storage,
    that's the LDA job.

    So kick away the user's .forward file for passing the mails through
    procmail. Use a global /etc/procmailrc for global filtering (if you wish
    that) and use user specific ~/.procmailrc files for user specific
    filtering / sorting. That's default and you do not need to change
    anything to get it working.

    Alexander

    -- 
    Alexander Dalloz | Enger, Germany | GPG key 1024D/ED695653 1999-07-13
    Fedora GNU/Linux Core 1 (Yarrow) on Athlon CPU kernel 2.4.22-1.2174.nptl
    Sirendipity 17:59:37 up 22 days, 1:41, load average: 1.07, 1.08, 1.08 
                       [ Γνωθι σ'αυτον - gnothi seauton ]
                 my life is a planetarium - and you are the stars
    
    

    
    

    -- 
    fedora-list mailing list
    fedora-list@redhat.com
    To unsubscribe: http://www.redhat.com/mailman/listinfo/fedora-list
    


  • Next message: John McBride: "Re: Fedora core 1 live cd?"

    Relevant Pages

    • Re: Mail loops back to me (MX problem?)
      ... ]> We need to know how you have sendmail set up. ... ]I don't think I have one, at least haven't I configured any procmail. ... One of the entries in sendmail.cf is the user delivery agent. ... Probably not in the hosts file. ...
      (comp.os.linux.setup)
    • Re: Problem with Skunkware procmail 3.1.5 & 5.0.7 MP5
      ... for programs you want to allow sendmail to run. ... It appears to be in configured format followed by the old format. ... And I still need suggestions on how to prevent procmail from hosing my ... the next thing to do is get Spamassassin 3.1.4 to work. ...
      (comp.unix.sco.misc)
    • Re: need help about sendmail
      ... Copying all mail to Archive *The following is probably made obsolete by ... sendmail to archive copies of outgoing mail". ... The Sendmail FAQ does offer three suggestions for doing this, ... In the FAQ, and in the newsgroup, it is also suggested that Procmail can ...
      (RedHat)
    • Re: need help about sendmail
      ... One of the most common questions on comp.mail.sendmail is "How do I get ... sendmail to archive copies of outgoing mail". ... In the FAQ, and in the newsgroup, it is also suggested that Procmail can do ...
      (RedHat)
    • Re: Sendmail relay and procmail
      ... all mails i piped to procmail on the way to the recipent. ... Im on openbsd4.1beta running sendmail 8.14.0 ... Now its time for procmail. ... it fails, then it tries to send a bounce and it fails too, then it tries ...
      (comp.mail.sendmail)