suzana | 21 Oct 2001 17:09
Picon

help with mail attachment

hello all!
I'm quite new to procmail.....I'm still using sendmail as my local
mailer ,and I've been thinking about replacing it with procmail (i've
used procmail on user -side before)...my question is:

can somebody help me with a recipe that can block out every attachment
(.exe,.pdf,dll) except .doc (since my users might need that)...or maybe
somebody can point me to the right direction? Just a simple recipe that
would block all of the attachments except a selected few. The email
virus attacks have been vicious and I'm new in this.Any hints or
documentations or examples are really welcomed. Thanks!

-suzana-
suzana | 21 Oct 2001 20:29
Picon

confused newbie! help!

hi.....
a very newbie question..have read the FAQ and all but still confused
about this...

well, i want to implement procmail as my local mailer in my sun solaris
5.7 machine...the thing is, I've used procmail before but as an
unpriveleged user...that is, i have .procmailrc in my home
directory...but now I want to set up a global procmailrc file, where i
can put filtering recipes and everything and everybody can use it
instead of the individual .procmailrc files...how do i got about setting
this procmailrc up? I mean, where do i have to set it up? I read the
documentation and it hinted that I have to put it in /etc/procmailrc,
but is this true in sunOS case?Is the format of the global procmailrc
file the same as the individual .procmailrc file?...

please give me some pointers, or at least a documentation...i'd be
thoroughly grateful! Thanks!

-suzana-
suzana | 24 Oct 2001 18:51
Picon

pm-jamime-kill.rc didnt work...(my fault,most probably!;)

hi all....
i've downloaded the pm-doc from jari and unzip in my linux redhat 7.1
(i'm going to test it here before using it in sunOS)...i've set up my
/etc/procmailrc like so (thanks Martin!):

DROPPRIVS=YES
VERBOSE=on
LOGABSTRACT=all
LOGFILE=/var/log/procmail/$LOGNAME.log
PATH="/etc/procmail:/usr/bin:/usr/local/bin:/usr/sbin:$PATH"
SHELL=/bin/sh
PMSRC=/etc/procmail
SECURITY_NOTIFY="postmaster, root"
##SECURITY_NOTIFY_VERBOSE="postmaster"
##SECURITY_QUARANTINE=/var/spool/mail/quarantine
SECURITY_QUARANTINE=/var/log/procmail/quarantine
SECURITY_NOTIFY_SENDER=YES
#Possibly infected by viruses
#Replace `mail' with your mail directory (Pine uses mail, Elm uses Mail)

MAILDIR=$HOME/mail
#Directory for storing procmail log and rc files
PMDIR=$HOME/.procmail
myCustomMimeType = "application/ms"     # must be all lowercase
:0
*$ $myCustomMimeType
{
JA_MIME_TYPE = $myCustomMimeType
}
myCustomMimeType1 = "application/octet-stream"     # must be all
(Continue reading)

suzana | 26 Oct 2001 13:19
Picon

eudora attachment problem:help!

hello all...
finally I've set up my pm-jamime-kill.rc recipe and my global rc file
seems to work fine, filtering unwanted attachments...but when I send
something (an attachment) from eudora, i found that that procmailrc
didnt filter this, even though this is the same file that I sent from
netscape mail...I checked the log and found something like this:

nawk:cant open file RE==============8737859
source line number 9
Procmail: program failure (2) of nawk

but I dont know what does this mean, and if this is the cause it's not
filtering eudora attachment. Anybody got a hint on this?

and another thing, i tried using the variable
LOGFILE=/var/log/procmail/$LOGNAME in my procmailrc so that i can gather
all the users logs into one directory...but i found that  procmail didnt
create this logs when filtering emails, even though mails got filtered!
When I changed it to LOGFILE=$HOME/log, it works and procmail writes the
logs..but I dont want the logs to be separated in each users home
directory.How do i go about doing this??

thanks!

-suzana-
suzana | 27 Oct 2001 10:16
Picon

Re: eudora attachment problem:help!

Thanks for the helpful replies!
The log permission problem only exist in my sunOS 5.7 machine...I also have the
recipe in a RH7.1 machine and the log works fine there. Anyway, I've changed
the procmail dir to 755, like advised, but it didnt work! was it just me or
what?:) Anyway, then I changed the path to another partition,
/mnt1/$LOGNAME.log and set its perms to 755, and this works. Does this mean
that something in /var prevented the logs from being written?
anyway, thanks! and I've fixed the nawk problem by compiling a new gawk binary,
so the eaudora attachments got filtered now. Only thing is, when it did
filtered the eaudora mail, it also appended some other gibberish too to the
mail , and some of the plain text got lost. But the attachments didnt get
through, thankfully. Is this normal?

(sorry for the idiotic questions, I'm still a student)

-suzana-
suzana | 27 Oct 2001 12:29
Picon

Outlook attachments: matched but didnt do anything about it?

hello everybody...
me again..this time I'm having problem filtering Microsoft Outlook
attachments...for example, application/x-msdownload..and I've modified
my pm-jamime-kill.rc to be like so:

#   If linebuf is too small, then AWK scripts can't be called
JA_MIME_KILL_LINEBUF = ${JA_MIME_KILL_LINEBUF:-524280}

JA_MIME_KILL_RE     = ${JA_MIME_KILL_RE:-"\
name=.*(pcx|x-msdownload|X-MSDOWNLOAD|x-vcard|X-VCARD|PCX)|charset=|This
is.*MIME"}

JA_MIME_KILL2_RE    = ${JA_MIME_KILL2_RE:-"\
Content-Type: +(text/html|application/x-msdownload|x-vcard)"}

i though this should have matched and filtered the attachment, but it
didnt! But when I checked the log file, it did say it matched, but it
seemed to do nothing about this and the attachment still came through.
Can somebody gimme a hint on where have I gone wrong or what should I
added in my procmailrc or jamime-kill recipe?Thanks!
suzana | 27 Oct 2001 12:41
Picon

Outlook attachments : recipe matched but didnt filter!


hello everybody...
me again..this time I'm having problem filtering Microsoft Outlook
attachments...for example, application/x-msdownload..and I've modified
my pm-jamime-kill.rc to be like so:

#   If linebuf is too small, then AWK scripts can't be called
JA_MIME_KILL_LINEBUF = ${JA_MIME_KILL_LINEBUF:-524280}

JA_MIME_KILL_RE     = ${JA_MIME_KILL_RE:-"\
name=.*(pcx|x-msdownload|X-MSDOWNLOAD|x-vcard|X-VCARD|PCX)|charset=|This

is.*MIME"}

JA_MIME_KILL2_RE    = ${JA_MIME_KILL2_RE:-"\
Content-Type: +(text/html|application/x-msdownload|x-vcard)"}

i though this should have matched and filtered the attachment, but it
didnt! But when I checked the log file, it did say it matched, but it
seemed to do nothing about this and the attachment still came through.
Can somebody gimme a hint on where have I gone wrong or what should I
added in my procmailrc or jamime-kill recipe?Thanks!
suzana | 27 Oct 2001 13:45
Picon

OutLook attachement: (my mail keeps getting truncated..?)

ok I meant to say that I modified my procmailrc to be like so:

#   If linebuf is too small, then AWK scripts can't be called
JA_MIME_KILL_LINEBUF = ${JA_MIME_KILL_LINEBUF:-524280}

JA_MIME_KILL_RE     = ${JA_MIME_KILL_RE:-"\
name=.*(pcx|x-msdownload|X-MSDOWNLOAD|x-vcard|X-VCARD|PCX)|charset=|This
is.*MIME"}

JA_MIME_KILL2_RE    = ${JA_MIME_KILL2_RE:-"\
Content-Type: +(text/html|application/x-msdownload|x-vcard)"}

but somehow my message get truncated or something..anyway, this didnt
work...outlook attachment didnt get filtered!Can somebody gimme some
pointers?? Thanks!
suzana | 27 Oct 2001 17:50
Picon

strange problem...with Outlook

hello all...
why do my previous message got cut off?strange...
anyway, I've got this problem filtering Outlook attachments with my
sunOS 5.7....see, I've modified my pm-jamime-kill.rc like so:

JA_MIME_KILL_LINEBUF = ${JA_MIME_KILL_LINEBUF:-524280}

JA_MIME_KILL_RE     = ${JA_MIME_KILL_RE:-"\
name=.*(pcx|x-msdownload|X-MSDOWNLOAD|x-vcard|X-VCARD|PCX)|charset=|This
is.*MIME"}

JA_MIME_KILL2_RE    = ${JA_MIME_KILL2_RE:-"\
Content-Type: +(text/html|application/x-msdownload|x-vcard)"}

at first this filtered the x-msdownload attachments, but after i added
more:

JA_MIME_KILL2_RE    = ${JA_MIME_KILL2_RE:-"\
Content-Type:
+(text/html|application/x-msdownload|application/octet-stream|x-vcard)"}

...both the newly added attachments didnt get filtered! Why is this?This
is a snippet of /etc/procmailrc:

:0 B
* Content-Type:.*application/x-msdownload
{
JA_MIME_TYPE = "application/x-msdownload"
}
:0 B
(Continue reading)

suzana | 27 Oct 2001 18:03
Picon

sorry!

hello all...
why do my previous message got cut off?strange...
anyway, I've got this problem filtering Outlook attachments with my
sunOS 5.7....see, I've modified my pm-jamime-kill.rc like so:

JA_MIME_KILL_LINEBUF = ${JA_MIME_KILL_LINEBUF:-524280}

JA_MIME_KILL_RE     = ${JA_MIME_KILL_RE:-"\
name=.*(pcx|x-msdownload|X-MSDOWNLOAD|x-vcard|X-VCARD|PCX)|charset=|This

is.*MIME"}

JA_MIME_KILL2_RE    = ${JA_MIME_KILL2_RE:-"\
Content-Type: +(text/html|application/x-msdownload|x-vcard)"}

at first this filtered the x-msdownload attachments, but after i added
more:

JA_MIME_KILL2_RE    = ${JA_MIME_KILL2_RE:-"
Content-Type:
+(text/html|application/x-msdownload|application/octet-stream|x-vcard)"}

(i know i should have put \  at the end, but my email kept getting
truncated so i dont put it here :)...both the newly added attachments
didnt get filtered! Why is this?This
is a snippet of /etc/procmailrc:

:0 B
* Content-Type:.*application/x-msdownload
{
(Continue reading)


Gmane