Software :: Procmail - Filtering Out Emails With Attachments

Apr 11, 2011

I am trying to filter out attachment emails using procmail. I have tried this:
Code:
#Config:
SHELL=/bin/sh
PATH=/bin:/usr/bin:/usr/bin
MAILDIR="/var/mail/root"
LOGFILE=/var/log/procmail.log
LOGABSTRACT=ALL
VERBOSE=ON
:0
*^Content-Transfer-Encoding: base64$ {
| echo $LASTFOLDER }
[/code]

As you can probably guess, this line "Content-Transfer-Encoding: base64" appears when emails come with attachments, but the result of this filter is:
Code:
procmail: No match on "^Content-Transfer-Encoding: base64"
procmail: Skipped "| echo $LASTFOLDER"
procmail: Assigning "echo"
procmail: Skipped "| $LASTFOLDER"
procmail: Assigning "LASTFOLDER=/var/mail/root/msg.OFT"
procmail: Opening "/var/mail/root/msg.OFT"
procmail: Acquiring kernel-lock
procmail: Notified comsat: "root@0:/var/mail/root/msg.OFT"
From root Mon Apr 11 01:23:37 2011
Subject:
Folder: /var/mail/root/msg.OFT 26051

The result showed as if there was no match, futhermore, the bash code that I am trying to run:
echo "$LASTFOLDER" seemed not to be ran as bash? And does anyone know how I can test my procmail filter on some testing platform sandbox so I don't have to send a bunch of emails everytime I change the file and waste time and disk space testing new filters?

View 7 Replies


ADVERTISEMENT

Ubuntu :: Attachments Don't Download And Pictures Don't Appear In Emails

Jul 20, 2010

when I first started with tbird version 3.0.5, under that version everything worked fine and attachments etc. downloaded, but tbird was automatically upgraded to 3.1 since then attachments don't download and pictures don't appear in emails.What do I need to do to correct this?

View 2 Replies View Related

General :: Postfix And Emails With Large Attachments

Mar 29, 2011

Running Postfix 2.6.1 on Slackware 13.0.I noticed that if I send an email with a large attachment(namely more than 500 KB) from another computer using this postfix server as an smtp server, it takes up to an hour to send it.It's almost like postfix is configured to send large emails later with a lower priority.The client computer and postfix server are within a GIGABIT LAN so upload 500 KB isn't an issue.

View 1 Replies View Related

Ubuntu Servers :: Procmail Delivering New Emails Into New Separate Folders?

Dec 15, 2010

Ever since I set up procmail filtering, all new emails are delivered into a new folder (e.g. msg.XxX) and skip the inbox.

I tried to set LASTFOLDER=INBOX in procmailrc but to no avail.

My procmailrc file is:
PATH=/usr/bin:/usr/local/bin
LOGFILE=/var/log/procmail.log
MAILDIR=$HOME/mail

[Code]....

How do I make procmail deliver to the inbox and not create a new folder for every new email?

BTW, the filter I have setup fails to pipe to script.cgi

View 3 Replies View Related

Ubuntu :: MUTT - Which Key To Refresh The Emails - Emails Are Got By IMAP ?

May 29, 2010

How to refresh and reload the list of email into MUTT ? Which key?

Additional: how to go to folder SENT of gmail ? and configureation eventually?

View 1 Replies View Related

Programming :: Procmail Piping To A PHP Script

Aug 6, 2010

I have my .procmailrc file set up to pipe mail to a simple php script I've written. The only thing the script does at this point is echo back a "hello" message. However, procmail does not execute the script properly.

View 1 Replies View Related

General :: Procmail: Forwarding Just Does Not Work?

Mar 13, 2011

I've spent pretty much the whole night trying to figure out how I can achieve the following: If a certain Keyword, say [key], is in the subject line, then the email is forwarded to a list of people.

My recipe (now) looks like this:

Code:
:0
* ^Subject: .*[key].*
! my-email@gmail.com
The (verbose) procmail logfile gives me this:

[Code]....

Is my recipe wrong in any way? I pretty much copied it from available ones.
It's a university server, so I'm no admin, just a user. How can I figure out whether some setting that the admin made prevents procmail from calling sendmail or whatever?

View 3 Replies View Related

Server :: Communigate Pro With Procmail Integration?

Feb 4, 2010

I want to know if I can you communigate Pro with procmail integration?

I have read and seen that, CommuniGate Pro has some nice features so I want to use it.

Or is there a way I can do email filtering in CommuniGate with out procmail?

View 1 Replies View Related

Server :: How To Setup Zimbra With Procmail

Mar 3, 2011

Have any one been able to setup zimbra with procmail? Procmail as the filter for zimbra I mean.

View 1 Replies View Related

General :: Procmail Executing Perl Script

Jan 13, 2011

I have procmail parsing the subject line of incoming e-mail and depositing individual files in a folder that match the procmail recipe.I want to have that recipe spawn a perl script to parse the file to pull out specific information. I've googled this and found many examples but none of them work.When it finds a matching inbound message it logs it correctly in the charge.log file, writes the message in charges/new/xxx but skips the /home/rowan/billing.pl script.

View 2 Replies View Related

Server :: MailBox Quota With Sendmail & Procmail

Dec 13, 2009

I am using sendmail-8.13 & procmail as an MDA. Now as our mail users are increasing I need to put up mailbox quota limit for every user. I have gone through the search engine but could not found any effective help to configure mailbox quota with sendmail & procmail.

View 7 Replies View Related

Server :: Configure Procmail For Sendmail But Its Not Working?

May 12, 2010

I'm trying to configure procmail for sendmail but its not working. I added these 2 lines to sendmail.mc:

define(`PROCMAIL_MAILER_PATH',`/usr/bin/procmail')dnl
FEATURE(local_procmail)dnl

So my question is, where do I put .procmailrc? An examples I found on the net has the procmailrc in the users mail directory, but there are no user mail directories on the sendmail server. It is used purely to relay mail to the Exchange server.

View 1 Replies View Related

Server :: Integrate Procmail With Qmail Using Webmin?

Feb 17, 2010

How to integrate procmail with qmail using the webmin?

View 7 Replies View Related

CentOS 5 Server :: Procmail + Sendmail Configuration On 5.2?

Aug 5, 2009

I have been trying to get procmail working on CentOS 5.2. I don't need anything fancy, just an auto reply for a "noreply@" account. Looking at the sendmail configuration, it appears procmail is the MDA. I have looked at many different tutorials and how-tos, but most are old, and/or the locations/paths and setups are markedly different from the defaults on my system. Can anyone recommend a good CentOS-based tutorial on Procmail w/ recipes? (I have an RHEL book and it's no help either.) Thank you for your time and consideration.

View 1 Replies View Related

CentOS 5 :: Procmail As Mail Delivery Agent?

Aug 12, 2009

Recently we are receiving lots of spam email specially ( Viagra). I want to use spamassassen to filter the spams so I need to configure procmail as local mail delivery agent.At the moment I am using prosfix for mail delivery agent and our server is Centos 5. I did google it but couldn't find a good instruction.

View 3 Replies View Related

CentOS 5 Server :: Procmail: Piping To A Php Script?

Aug 6, 2010

I have my .procmailrc file set up to pipe mail to a simple php script I've written. The only thing the script does at this point is echo back a "hello" message. However, procmail does not execute the script properly.

Here's my script (/home/webs/site.com/scripts/echo.php):

#!/usr/local/bin/php
<?php
echo "hi.";
?>

View 3 Replies View Related

CentOS 5 :: Setup Spamassassin With Postfix And Procmail?

Nov 17, 2010

I have Centos 5.5 and using Postfix, procmail and Dovecot for sending and receiving emails. I have spamassassin installed too but not configured. I am getting lots of spams. I googled a lot to find if there is any configuration but I couldn't find.how to setup spamassassin to filter emails for spams.

View 1 Replies View Related

OpenSUSE :: Thunderbird 3 And Saving Attachments

Feb 22, 2010

at my work we have upgraded suse to 11.2, thus we also got an upgrade of thunderbird 2 to 3.
When I now save attachments to our network disks it writes them as user=rw (600), and no longer as 644. I do not want to do chmod for every attachment.When creating a file by csh or bash terminal or downloading a file by firefox it does write the file as 644, which is good.
Can someone please give me a suggestion of how I can solve this problem? Is there something I have to change in the prefs.js file?

View 4 Replies View Related

OpenSUSE :: Kmail Read-only Attachments

Jul 3, 2010

Is there a setting to make the default in Kmail to save the attachments (or when dragging them into a folder) so they are NOT set to read-only?

View 4 Replies View Related

Ubuntu :: Cannot Send Attachments In G2ipmsg

Nov 29, 2010

how to send attachments in G2Ipmsg.

View 1 Replies View Related

Red Hat / Fedora :: Sympa Sending Attachments

Aug 5, 2010

I have set up a Sympa list serv server and everything is working fine for the most part. One issue that I am running into is sending files over ~580 KB in size (just a normal .txt file) are not going through. I am getting the following error. Impossible to distribute your message for list 'list-name' because of an internal server error.I have verified that my "Maximum message size (max_size)" setting in Sympa is get to 5 MB so that shouldn't be the problem. If I try sending the same .txt file after taking out a few lines, and the file size is ~530 KB, then it works just fine. Nothing is really jumping out at me in the logs either.

View 1 Replies View Related

General :: CentOS 5.3 - How To Block Attachments

Jul 7, 2011

I have centos 5.3 installed with squid server. I want to block attachment in yahoo, google, etc.

View 1 Replies View Related

Security :: How To Block Attachments To Gmail

May 7, 2010

I was wondering how to block attachments to gmail. I am running squid 2.7 stab9 with dansguardian 2.10, users authenticated from LDAP. I have configured the POST restrictions in Dansguardian which does block all attachments to hotmail/yahoo etc etc but attachments to gmail continue to upload.

View 1 Replies View Related

Software :: Thunderbird Uploading Attachments

Apr 13, 2011

I have Internet access with Verizon Wireless and have a limit of 5 gigs per month but Mozilla Thunderbird 3.1.8 is wasting my data whenever I send large attachments. For example, when I send an attachment to somebody, Thunderbird will upload it okay but when it is finished uploading it, the message in the window then says "copying to the Sent folder" but it does not simply "copy" it, instead, it uploads the attachment all over again to the Sent folder. So the attachment was uploaded twice, once to the recipient and once to my sent folder.I am running Linux Mint 9 Isadora.Is there a way to stop this behavior?

View 2 Replies View Related

General :: Running Procmail On Rented Server Space

Feb 26, 2010

I am trying to set up mutt with fetchmail and procmail on server space that's not mine. I have access to /home/myusername but not to /var/spool/myusername. Everything seems to work well, but I have no idea where fetchmail (or procmail) is dropping off my mail.

View 3 Replies View Related

Server :: Procmail Decision Based On Content Of Attachment

Nov 30, 2010

Is it possible to have procmail make a decision based on the content of a attachment? My situation is the following, I dailty receive a email from a server on which a backup job of a Progress database is run. This job e-mails the results of the backup in an attachment, based on the result I would like to change the header of the message stating that the backup finished successfully or not.

View 2 Replies View Related

Server :: Procmail Verify Email Address Is Valid?

Feb 10, 2011

We use procmail to reformat and filter email messages sent from many lead capture websites where the clients enter their reply email address manually.When we receive the message at our application we send a welcome email, and receive back the Undeliverable Email message where the clients entries are invalid, but I would like to be able to kill messages with undeliverable email addresses on our mail server before they are delivered to our application.I have found discussions on filtering masqueraded addresses, but since the IP of the sending system is not related to the entered client's email address, this does not appear to help. I would think that it should be able to query the email server to identify if the address is valid.

View 1 Replies View Related

Slackware :: 13.1 Sendmail-procmail MAILDIR For Dovecot Server?

Jan 3, 2011

Built an MTA/LDA Slackware Server and seperate MDA (Dovecot 2.2) Slackware Server. Used the slackwiki Sendmail TLS SMTP-AUTH guide for the MTA/LDA Server.

http://www.slackwiki.org/index.php?t...TH&redirect=no
The ../cf/cf/sendmail-slackware-tls-sasl.mc config file has Procmail sorting as:
FEATURE(`local_procmail',`',`procmail -t -Y -a $h -d $u')dnl

I don't understand the arguments ($), but know the -Y forces mbox. The /var/mail directory is hardlinked to where ever the spool directory is. I want the Dovecot MDA server to use NFS or UNFS to grab user's mail from the MTA/LDA Server. Problem is the hardlink. Can't nfs share a hardlinked directory.

Is there a way to change the MTA sendmail mc config file above to have LDA promail send to /home/mail, so I can nfs that directory? And preferably in MAILDIR format? BTW: I can't find any procmailrc config file on this Slackware Server. I should have all the settings in my /etc/mail/sendmail.cf config.

View 6 Replies View Related

Ubuntu :: How To Use Procmail To Put Email In Specific User's Folders?

May 13, 2010

Here is what I want to do: have procmail get my mail from all of the different mail servers, and then put them in my inbox folder (I'm able to do all of this), but also have my emails sorted by domain into subfolders.So for example, procmail downloads my email, puts it into the gmail folder which is a subfolder of my inbox folder.I know how to get all of my email into the inbox folder - but not into a specific subfolder.

View 1 Replies View Related

CentOS 5 Server :: Get Cyrus 2.3.7 IMAP Working With Procmail 3.22

Jun 9, 2009

I'm new to CentOS, having always used Slackware in the past. I'm trying to get Cyrus 2.3.7 IMAP working with Procmail 3.22, and having a slight issue. My current setup in sendmail.mc is as follows:

[code]...

View 1 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved