Istvan Bereti | 1 Feb 2001 13:54

.procmailrc not running

Hi,

I'm using postfix and postfix starts automatically the procmail.
My problem is that the etc/procmailrc is executed but the $HOME/.procmailrc
in the home directory is not executed. Any Idea?
I have a mail spool. Shall I create a mail directory in the users home
directory or it should work also this way?

BR,
Steve
João Paulo Andrade | 1 Feb 2001 15:18
Picon

Error in procmail

I put this in a .procmailrc file
               :0
               * > 3000000
               ! test <at> domain
to forward e-mail larger than 3Mb.
And in the server this error occurs:
SYSERR(joaopaulo): mime8to7:multipart
nesting boundary too deep.
What's the problem?

How can I delete all mails from the domain microsoft.com? ?

:0h
* ^From.*microsoft
delete_this_email

???????????????

 > ³³°°°°³³°°°°³³ªªªª°°§§³²¹¹²³§§°°°°°°ªªªª°³³°°°°³³°°°°³³<
 >       João Paulo G. de Andrade                  <
 >       joaopaulo <at> unimetro.com.br                 <
 >       Setor de Informática                      <
 >       Unimed Metropolitana de Salvador         <
 >
³³°°°°³³°°°°³³ªªªª°°§§³²¹¹²³§§°°°°°°ªªªª°³³°°°°³³°°°°³³ <
matt | 1 Feb 2001 15:33
Picon

Re: .procmailrc not running

> I'm using postfix and postfix starts automatically the procmail.
> My problem is that the etc/procmailrc is executed but the $HOME/.procmailrc
> in the home directory is not executed. Any Idea?

How does postfix start procmail?  Since it's running as a
priveledged (or mail) user, it needs to pass procmail the user name,
e.g.

% procmail -d username
Colin J. Raven | 1 Feb 2001 15:42

Re: Error in procmail

On Thu, 1 Feb 2001, [iso-8859-1] João Paulo Andrade wrote:
<snippage>
> How can I delete all mails from the domain microsoft.com? ?
> 
> :0h
> * ^From.*microsoft
> delete_this_email
> 
Well, thanks to the esteemed folks on this list, the following has
apparently always worked for me: (changed to reflect the "microsoft"
domain for purposes of clarity and relevance)

:0:microsoft.lock
* ^From: .* <at> *\.microsoft.com
/home/users/cjraven/mail/crapper

which, once verified to work reliably, then becomes:

:0
* ^From: .* <at> *\.microsoft.com
/dev/null

Regards,
Colin
--
Colin J. Raven
  9:32am  up 55 days, 46 min,  1 user,  load average: 0.10, 0.09, 0.08
Collin Park | 1 Feb 2001 17:52
Picon

Re: External Account Listing?

Robert Hough wrote:
> Is it possible to set up a recipe that reads from a flat file, various
> email accounts you have, and then matches against that?
> 

Yes.

    :0 hWc
    | formail -xto: -xcc: | sed -e 's/^/,/' -e 's/$/,/' | \
        grep -if /list/of/my/aliases

    :0a
    { 
      #stuff to do if "To:" or "cc:" matched any of my aliases
    }

where /list/of/my/aliases contains stuff like this: 

  [^-._a-z0-9]rch <at> solveinteractive\.com[^-.a-z0-9]
  [^-._a-z0-9]rh29 <at> yahoo\.com[^-.a-z0-9]

  (Don't indent it!  I only indented it to set it off from the text.
   I just made up the rh29 one for illustration...)

You don't want mail for zorch <at> solveinteractive.comml-consultants.org
for example.  

But if you think stuff like that is sufficiently rare, then you can
put just your email addresses into /list/of/my/aliases, and in the
procmail recipe use:
(Continue reading)

Danny Howard | 1 Feb 2001 01:44

Re: help: complex pipe does nothing!

On Wed, Jan 31, 2001 at 10:40:16AM -0600, Matthew W. Roberts wrote:
> > I have a script ...
> 
> <snip>
> 
> > It has been working fine forever, on our Linux box, running procmail v3.13.1.
> > Now I am trying to retire that box in favor of a FreeBSD machine, running
> > procmail v3.15.  Unfortunately, as far as I can tell, everything spawns off
> > just fine, no errors, but no mail ever enters the MTA.
> 
> If you're using tcsh/csh as a login shell put the following at the
> top of your .procmailrc:
> 
> SHELL=/bin/sh

That worked.  THANKS!

ObFactlet: FreeBSD's system shell is /bin/csh.

-danny
Takateru Ushiroda | 1 Feb 2001 17:35
Favicon

blocking certain attachments

I'd like to setup procmail to block file attachments with certain
extensions like .vbs, .shs, etc.  How would I do this.  I've checked out
some man pages and online faqs, but haven't seen anything regarding
this.

Basically looking for help on what to put in the /etc/procmailrc file so
that these files are blocked for all users.  There aren't any developers
on this machine, so it doesn't inconvenience anyone.

thanks very much in advance.
email | 1 Feb 2001 18:02

procmail error log..

i want to use procmail to filter when a new message come.. it send me a icq message.. 
then i try send it to my icqnum <at> pager.icq.com 

but i found that my qmail log ..have some error log 

MAILFROM=`/usr/bin/formail -xFrom:` 
:0 c 
|(/usr/bin/formail -X "" \ 
-I "To: 123456 <at> pager.icq.com" -X "To:" \ 
-I "Cc: " -X "Cc:" \ 
-I "Bcc: " -X "Bcc:" \ 
-I "From: abc <at> abc.com" -X "From:"; \ 
echo "Email from:$MAILFROM "; \ 
echo " " ) | $MAILMAIL 

and the qmail log.. is that 

 <at> 400000003a77ed5f35833224 delivery 15: success: 
procmail:_Error_while_writing_to_"(/usr/bin/formail_-X_""_\/_-I_"To:_123456 <at>  
pager.icq.com"_-X_"To:"_\/______-I_"Cc:_"__-X_"Cc:"_\/______-I_"Bcc:_"__-X_" 
Bcc:"_\/_-I_"From:_abc <at> abc.com"_-X_"From:";_\/_echo_"Email_from:$MAI 
LFROM_";_\/______echo_"_"_)_|_$MAILMAIL_"/did_0+0+1/did_0+0+1/ 

so any idea??? 

Nick 

--

-- 
_______________________________________________
Get your free email from http://www.mcmug.org/webmail.html
(Continue reading)

Robert Hough | 1 Feb 2001 19:35

Re: External Account Listing?

On Thu, Feb 01, 2001 at 08:52:44AM -0800, Collin Park wrote:
> Well, the above should be a starting point.
> The other thing you could do is...
> 
>     :0
>     * ! ^TO_rch <at> solveinteractive\.com\>
>     * ! ^TO_rh29 <at> yahoo\.com\>

I'll give both methods a run this weekend, and report back on what I've found. If I make
any changes, that I think work well I'll be sure to send those along as well.

> All of the above is UNTESTED but ...

Heh, story of my life... :)

--

-- 
Robert Hough (rch <at> solveinteractive.com)
Forrest Aldrich | 1 Feb 2001 20:25

Recipe not working

I just began using procmail recently, and am utterly puzzled about why this 
recipe isn't working.  The first part, SystemLogs is the part that does not 
work.  But the others, identical in formula, do.   Pointers would be 
appreciated.  Thanks.....

_F

PATH=/usr/sbin:/usr/bin:/bin:/usr/local/bin:.
MAILDIR=$HOME/Mail      # You'd better make sure it exists
# DEFAULT=$MAILDIR/mbox
                         # We don't use a global lockfile here now.
                         # Instead we use local lockfiles everywhere.
                         # This allows mail to arrive in all mailboxes
                         # concurrently, or allows you to read one mailbox
                         # while mail arrives in another.

# Why doesn't this work?  I've tried variants of this, and still nothing.
#
# System Logs
:0
* ^Subject:.*system.*check
* ^Subject:.*security.* output
* ^Subject:.*run.*output
SystemLogs

#
# Change MAILDIR to the "Lists" subdirectory
#
MAILDIR=$HOME/Mail/Lists

(Continue reading)


Gmane