bernard.schoenacker | 2 Apr 2007 14:40
Picon
Favicon

Re: " lockfile syntax " [ happy end ]

Selon Udi Mottelo <uuddii <at> eng.tau.ac.il>:

>
> On Sat, 24 Mar 2007, bernard.schoenacker <at> free.fr wrote:
>
> > Selon Dallman Ross <dman <at> nomotek.com>:
> >
> >> On Sat, Mar 24, 2007 at 07:44:16AM +0100, bernard.schoenacker <at> free.fr
> wrote:
> >>>
> >>> howto adapt this example
> >>>
> >>> NOPASSWORDLOCK=/var/lib/emacs/lock/!home!rgooch!mail!filtered!no-password
> >>> BACKUPLOCK=/var/lib/emacs/lock/!home!rgooch!mail!filtered!mail-backup
> >>>
> DUPLICATELOCK=/var/lib/emacs/lock/!home!rgooch!mail!filtered!slow|duplicate
> >>> OTHERLOCK=/var/lib/emacs/lock/!home!rgooch!mail!filtered!not-sent-to-me
> >>> BOUNCELOCK=/var/lib/emacs/lock/!home!rgooch!mail!filtered!slow|bounces
> >>>
> >>
> >
>
UNKNOWNSENDERLOCK=/var/lib/emacs/lock/!home!rgooch!mail!filtered!unknown-sender
> >>> REJECTEDLOCK=/var/lib/emacs/lock/!home!rgooch!mail!filtered!rejected
> >>> HUGELOCK=/var/lib/emacs/lock/!home!rgooch!mail!filtered!slow!huge
> >>>
> LISTSPAMLOCK=/var/lib/emacs/lock/!home!rgooch!mail!filtered!slow!list-spam
> >>>
> >>>
> >>> normally syntax is style
(Continue reading)

Lemasson Sylvain | 3 Apr 2007 11:08
Picon
Favicon

Sendmail + Procmail+ cyrus: the mail are delivered to to the wrong user (root)

Hi,
I have installed cyrus IMAP server. I have set sendmail to use
procmail as the local Mailer. Procmail should delivered the mail using
cyrus. The configuration in sendmail.cf is:

/ Mlocal,         Path=/usr/bin/procmail, Flags=lsDFMAw5:/| <at> qSPfhn9:/|wA9q,
                Sender=10, Recipient=20, Argv=procmail -t -Y
CYRUSUSER=$u -m /etc/procmailrc/

The file procmailrc contains:

/ # File: procmail.global

PATH=/usr/bin:/usr/local/bin:/usr/cyrus/bin
SHELL=/bin/sh
DELIVER=/usr/local/cyrus/bin/deliver
SPAM=/dev/null
VERBOSE=on
LOGABSTRACT=yes
LOGFILE=/var/log/procmail.log
COMSAT=no

# Make a backup copy of all incoming mail (comment the next entry
# out once you're finished testing procmail integration)
#:0 ic
#| $DELIVER -e -a $CYRUSUSER -m user.$CYRUSUSER.backup

# Execute CYRUSUSER's personal rules
#INCLUDERC=/var/imap/procmail/user/procmail.$CYRUSUSER

(Continue reading)

Jake Di Toro | 3 Apr 2007 13:51

Re: Sendmail + Procmail+ cyrus: the mail are delivered to to the wrong user (root)

On Tue, Apr 03, 2007 at 11:08:28AM +0200, Lemasson Sylvain wrote:
> # All the mail that falls through to this point
> # will be delivered into the user's INBOX
> :0:$CYRUSUSER.lock
> | $DELIVER -e -a $CYRUSUSER -m user.$CYRUSUSER/
> 
> Can someone can explain me what does wrong and how to fix the issue?

I've never had luck with this command line format.  In my
/etc/procmailrc I have the following simple recpie:

:0 w
* ? /usr/bin/test ! -r $HOME/.procmailrc
| $DELIVER $LOGNAME

And then my final delivery for a submailbox such as this mailing list
is like:

:0
| $DELIVER -m $ADDON $LOGNAME

Like I said, I've never had much luck with the -a.  

--

-- 
Till Later, Jake <karrde+procmail <at> viluppo.net>
-----------------------------------------------
Direct replys are likley to be flagged as spam.
Drop the +addy if you need to reply direct.
Michael D Schleif | 3 Apr 2007 15:22

Failing recipes: ^From:

For the last several months, my recipes based on the From: header are
failing miserably ?!?!

Following is an example.

Actual header:

    From: Mr Real Estate Wizard <noreply <at> mrrealestatewizard.com>

Actual recipe (I have tried several variations):

    :0
    * ^FROM_MAILER.*mr real estate wizard
<noreply <at> mrrealestatewizard\.com>
    rei/

Actual result for this exact recipe (my line wrap):

    procmail: No match on "(^(((Resent-)?(From|Sender)|X-Envelope-From)
    :|>?From )([^>]*[^(.% <at> a-z0-9])?(Post(ma(st(er)?|n)|office)|(send)?
    Mail(er)?|daemon|mmdf|n?uucp|ops|r(esponse|oot)|(bbs\.)?smtp(error)
    ?|s(erv(ices?|er)|ystem)|A(dmin(istrator)?|MMGR))(([^).!:a-z0-9]
    [-_a-z0-9]*)?[% <at> >    ][^<)]*(\(.*\).*)?)?$([^>]|$)).*mr real estate
    wizard <noreply <at> mrrealestatewizard\.com>"

What am I missing?

--

-- 
Best Regards,

(Continue reading)

Jim Rhodes | 3 Apr 2007 16:17

Re: Failing recipes: ^From:

Try:

:0
* ^From: mr real estate wizard

... or

:0
* ^From:.*mrrealestatewizard.com

--

-- 
PGP Public Key ID: 5A9DBFE5
Bart Schaefer | 3 Apr 2007 16:54
Picon

Re: Failing recipes: ^From:

On 4/3/07, Michael D Schleif <mds <at> helices.org> wrote:
> What am I missing?

       If the regular expression contains '^FROM_MAILER' it will  be  substi-
       tuted by '(^(((Resent-)?(From|Sender)|X-Envelope-From):|>?From
       )([^>]*[^(.% <at> a-z0-9])?(Post(ma(st(er)?|n)|office)|(send)?Mail(er)?
       |daemon|mmdf|n?uucp|ops|r(esponse|oot)|(bbs\.)?smtp(error)?
       |s(erv(ices?|er)|ystem)|A(dmin(istrator)?|MMGR))(([^).!:a-z0-9][-_a-
       z0-9]*)?[% <at> >\t ][^<)]*(\(.*\).*)?)?$([^>]|$))' (a stripped down
       version of '^FROM_DAEMON'), which should catch mails coming from most
       mailer-daemons.

The mail you're trying to catch is not coming from a mailer-daemon.
Why are you using FROM_MAILER at all?

   :0
   * ^From:.*mr real estate wizard <noreply <at> mrrealestatewizard\.com>
   rei/

Although really

   :0
   * ^From:.* <at> mrrealestatewizard\.com
   rei/

is probably enough.
Google Kreme | 3 Apr 2007 17:16
Picon

Re: Failing recipes: ^From:

On 3-Apr-2007, at 07:22, Michael D Schleif wrote:
>     procmail: No match on "(^(((Resent-)?(From|Sender)|X-Envelope- 
> From)
>     :|>?From )([^>]*[^(.% <at> a-z0-9])?(Post(ma(st(er)?|n)|office)|(send)?
>     Mail(er)?|daemon|mmdf|n?uucp|ops|r(esponse|oot)|(bbs\.)?smtp 
> (error)
>     ?|s(erv(ices?|er)|ystem)|A(dmin(istrator)?|MMGR))(([^).!:a-z0-9]
>     [-_a-z0-9]*)?[% <at> >    ][^<)]*(\(.*\).*)?)?$([^>]|$)).*mr real  
> estate
>     wizard <noreply <at> mrrealestatewizard\.com>"
>
>
> What am I missing?

Your header doesn't match this expression.

FROM_MAILER is supposed to be for matching daemon bounces

from the Man procmailrc page:
        If the regular expression contains `^FROM_MAILER' it will be  
substitut-
        ed by `(^(((Resent-)?(From|Sender)|X-Envelope-From):|>?From
        )([^>]*[^(.% <at> a-z0-9])?(Post(ma(st(er)?|n)|office)|(send)?Mail 
(er)?
        |daemon|mmdf|n?uucp|ops|r(esponse|oot)|(bbs\.)?smtp(error)?|s 
(erv(ices?
        |er)|ystem)|A(dmin(istrator)?|MMGR))(([^).!:a-z0-9][-_a-z0-9] 
*)?[% <at> >\t
        ][^<)]*(\(.*\).*)?)?$([^>]|$))' (a stripped down version of
        `^FROM_DAEMON'), which should catch mails coming from most  
(Continue reading)

N.J. Mann | 3 Apr 2007 17:00

Re: Failing recipes: ^From:

On Tuesday,  3 April, 2007 at 08:22:04 -0500, Michael D Schleif wrote:
> For the last several months, my recipes based on the From: header are
> failing miserably ?!?!
> 
> Following is an example.
> 
> Actual header:
> 
>     From: Mr Real Estate Wizard <noreply <at> mrrealestatewizard.com>
> 
> 
> Actual recipe (I have tried several variations):
> 
>     :0
>     * ^FROM_MAILER.*mr real estate wizard
> <noreply <at> mrrealestatewizard\.com>
>     rei/
> 
> 
> Actual result for this exact recipe (my line wrap):
> 
>     procmail: No match on "(^(((Resent-)?(From|Sender)|X-Envelope-From)
>     :|>?From )([^>]*[^(.% <at> a-z0-9])?(Post(ma(st(er)?|n)|office)|(send)?
>     Mail(er)?|daemon|mmdf|n?uucp|ops|r(esponse|oot)|(bbs\.)?smtp(error)
>     ?|s(erv(ices?|er)|ystem)|A(dmin(istrator)?|MMGR))(([^).!:a-z0-9]
>     [-_a-z0-9]*)?[% <at> >    ][^<)]*(\(.*\).*)?)?$([^>]|$)).*mr real estate
>     wizard <noreply <at> mrrealestatewizard\.com>"
> 
> 
> What am I missing?
(Continue reading)

N.J. Mann | 3 Apr 2007 17:03

Re: Failing recipes: ^From:

On Tuesday,  3 April, 2007 at 16:00:11 +0100, N.J. Mann wrote:
> On Tuesday,  3 April, 2007 at 08:22:04 -0500, Michael D Schleif wrote:
[...]
>   :0
>   * From:.*mr\ real\ estate
>   rei/

That should have been:

  :0
  * ^From:.*mr\ real\ estate
  rei/

Cheers,
       Nick.
--

-- 
Please do not CC me on replies, I read the list and don't need the dupes.
Michael D Schleif | 3 Apr 2007 17:49

Re: Failing recipes: ^From:

* Bart Schaefer <barton.schaefer <at> gmail.com> [2007:04:03:07:54:51-0700] scribed:
> On 4/3/07, Michael D Schleif <mds <at> helices.org> wrote:
> > What am I missing?
> 
>        If the regular expression contains '^FROM_MAILER' it will  be  substi-
>        tuted by '(^(((Resent-)?(From|Sender)|X-Envelope-From):|>?From
>        )([^>]*[^(.% <at> a-z0-9])?(Post(ma(st(er)?|n)|office)|(send)?Mail(er)?
>        |daemon|mmdf|n?uucp|ops|r(esponse|oot)|(bbs\.)?smtp(error)?
>        |s(erv(ices?|er)|ystem)|A(dmin(istrator)?|MMGR))(([^).!:a-z0-9][-_a-
>        z0-9]*)?[% <at> >\t ][^<)]*(\(.*\).*)?)?$([^>]|$))' (a stripped down
>        version of '^FROM_DAEMON'), which should catch mails coming from most
>        mailer-daemons.
> 
> The mail you're trying to catch is not coming from a mailer-daemon.
> Why are you using FROM_MAILER at all?

Yes, I know.  In fact, this is where I started:

    :0
    * ^from:.*mr real estate wizard <noreply <at> mrrealestatewizard\.com>
    rei/

    procmail: No match on "^from:.*mr real estate wizard <noreply <at> mrrealestatewizard\.com>"

NOTE: This is just one (1) of dozens of ^from: recipes that began
failing late last year.

OK, EUREKA !?!?

I found that several (maybe, ALL?) of these have double quotation (")
(Continue reading)


Gmane