The procmail tag has no wiki summary.
0
votes
1answer
21 views
Procmail to delete mail from senders
I'm looking to delete all mail addressed from "root@", where the address could originate from any domain. Am I right in thinking the line below would achieve this? [using sendmail]
:0
* ^From.root*
...
0
votes
0answers
15 views
autofs generates a loop when if one server of the nfs servers goes down
I have a mail server with postfix, dovecot, procmail, this mailserver mounts the homes because it needs to read the procmail and forwards of each user.
To mount the accounts I'm using autofs but the ...
1
vote
2answers
79 views
Configuring Postfix, Spamassassin and Procmail to put spam in a dedicated folder
I'm not sure if SF is the good place for that, so sorry if it's not the case.
I'm administrating a Debian server for our company's emails and I'm trying to have the emails flagged as spam by ...
1
vote
1answer
36 views
How to use procmail to get a message into a variable
I'm trying to get changes logged by our RANCID install to be logged and sent to an internal comms broadcasting system we have. I can talk to this directly via netcat, for example this will work:
echo ...
0
votes
1answer
65 views
procmail recipe to forward email is rejected by recipient
This is the first time using procmail and I've got the following recipe,
SENDMAIL=/opt/zimbra/postfix/sbin/sendmail
SHELL=/bin/sh
PATH=$HOME/bin:/usr/bin:/bin:.
MAILDIR=/opt/zimbra/procmail/
...
1
vote
1answer
124 views
Zimbra outgoing email forwarding/ redirecting from internal to external domain
How can I automatically forward outgoing emails to a different domain?
As an example, a user sends an email to 1234564@fax.mydomain.com and I want the exact email forwarded outside mydomain.com to ...
0
votes
2answers
254 views
how to configure postfix to send local mail to another local server?
I have a pair of mail servers that are comprised mainly of Postfix, Procmail and Cyrus-IMAP and they both work fine. The IMAP servers are configured in a simple master/replica pair. All 'normal' mail ...
0
votes
4answers
133 views
Stopping incoming spam with sendmail [duplicate]
I am having an issue due to a "smart" sysadmin that made some choices while I was away for two months: Spam.
I manage probably close to 10,000 web/mail sites. He decided to allow all mail to ...
0
votes
1answer
90 views
How to enable maildir in Dovecot deliver with Sendmail local_procmail
There is documentation around on how to make /usr/local/bin/procmail work with delivering to a maildir.
However, it is my understanding that it is also possible to avoid procmail altogether, and have ...
1
vote
1answer
87 views
procmail recipe to filter email to multiple folders
Currently my procmail recipes are as below:
FROM_=`formail -c -x"From "| awk '{ print $1 }'`
SUBJ_=`formail -c -x"Subject:" | sed -e 's/^[ ]*//g' -e 's/[ ]*$//g'`
:0
*^Subject:.*(60)
{
:0 ...
0
votes
1answer
62 views
Dynamic procmail filters
i need procmail to place incoming mail into specific folder depending on some set of rules. I know how i can accomplish this, but i need to write static set of rules in a specific file. What i really ...
1
vote
1answer
98 views
procmail to deliver mail to 2 maildir locations
Now I am having Postifx --> procmailrc---> maildire---> dovecot and I need to have another maildir in another folder inside /root as a backup at the same time having /$home/maildir ?
First and ...
0
votes
1answer
93 views
Store and forward mail but change FROM header in forwarded mail
I need a procmail recipe which stores the mail and forwards it to another address.
The following works fine:
:0c
! addressto@forward.to
But..now I need to change the From: header in the mails that ...
-1
votes
1answer
112 views
Procmail Postfix issue
Our server is using CENTOS uses postfix:
Nov 1 11:31:52 webserver postfix/smtpd[30424]: 822A91872F: client=unknown[5.133.168.42], sasl_method=PLAIN, sasl_username=ashley@website.co.uk
Nov 1 ...
1
vote
1answer
67 views
What's the meaning of suffixes that procmail assigns to mail filenames?
I am running a Postfix server and I would like to know the meaning of suffixes that mail filenames have. For instance:
1338839258.Vfe02I2a6f0M572204.example.com:2,S
...
1
vote
1answer
104 views
Mutt integration with procmail
I use following procmailrc with fetchmail:
PATH=/bin:/usr/bin:/usr/local/bin
VERBOSE=off
LOGFILE=$HOME/.procmaillog
DEFAULT=$HOME/mail/
MAILDIR=$HOME/mail/
# Recipes below this comment:
:0:
* ...
1
vote
1answer
210 views
How can I configure procmail to pass an email to a script if (and only if) it's from a whitelisted sender?
I want to pass emails from specific senders to a shell script via procmail.
Here's my original starter script:
LOGFILE=/home/foouser/procmail-log
VERBOSE=yes
MAILDIR=/var/spool/mail/foouser
...
0
votes
1answer
112 views
prevent procmail from adding Return-path
I'm storing and forwarding (to google apps) emails using the following procmail recipe:
# set vars
USERNAME=local_username
LOCALPART=realemaillocalpart
:0
# Avoid email loops
* ! ^X-Loop: ...
0
votes
0answers
78 views
match and export subject line and from header with procmail
I would like to use procmail or a combination of procmail and formail to take an email message and match a specific keyword in the Subject: line/header, and if matched, export the contents of the ...
0
votes
3answers
55 views
Perform an exact match on the email address in From: header using procmail
I have found a lot of examples for procmail to match on the From: header with wilcards, but I'd like to do an exact match, in order to prevent From:.*jgordon@example.com matching both ...
2
votes
2answers
259 views
How to create default subfolders using procmail with Maildir (and postfix) that work with MUA's?
I have a procmail setup and want to have a Spam folder that works with MUA's.
I found this tutorial http://www.cyberciti.biz/faq/how-do-i-move-spam-mail-to-spam-folder/ but it doesn't work as ...
0
votes
3answers
287 views
Use procmail to deliver to stdout and a second server
I would like a Postfix server to deliver each message to a certain transport as well as relay to a second server. In master.cf, I have the following transport:
zarafa unix - n n - 10 pipe
flags= ...
0
votes
1answer
367 views
filter body of incoming email in procmail
I've encountered some problem when configuring my linux machine.
We are configuring fetchmail and procmail in order to receive the email from the external mail server.The problem start when we want ...
1
vote
1answer
122 views
Procmail variable to command
Maybe stupid question, but I can't find it anywhere. I have a variable in procmail (eg $SUBJECT) and I need to push it to some shell command. Something like:
# in /etc/procmailrc
...
1
vote
1answer
72 views
Procmail recipes to accept numbers in subject
I want to ask regarding the procmail recipes.
Here is my recipe so far:
:0
* ^X-Loop: myemail@gmail\.com
/dev/null
:0
* ^Subject:.*(mytext)
# * ^Subject:.*(phonenumber)
...
0
votes
1answer
120 views
Passing at-sign character to procmail in virtusertable
The FAQ tip at http://www.sendmail.org/faq/section3#3.29 seems to rely on the fact that the following entry in virtusertable:
@domain.com user+%1
will cause $1 in the .procmailrc config, e.g.:
...
1
vote
2answers
856 views
Postfix + procmail - delivery fails because “can't create user output file” - on CentOS 6.2
I verified that my postfix installation / relaying setup worked. Now I am having trouble with procmail. I have it wired to postfix with the following command:
mailbox_command = /usr/bin/procmail -f ...
0
votes
1answer
339 views
spamassassin via procmail: .procmailrc moves spam messages, but /etc/procmailrc doesn't
I am trying this example to set up spamassassin via procmail globally. It successfully adds the X-Spam headers, but it does not move messages to the spam mboxes.
However, using this example locally, ...
0
votes
1answer
69 views
Taking mail header order in consideration when filtering
My incoming mail server is checking SPF and adds a line in the headers accordingly. However sometimes previous servers are adding similar headers so there is multiple Received-SPF headers.
...
0
votes
1answer
239 views
why does forwarding to an external email address with procmail not work?
I am using the following recipe in my .procmailrc file to forward a copy of all email messages to another account:
:0 c
! somebodyelse
This works fine. But if I try to use forward to an external ...
2
votes
2answers
631 views
fetchmail/sendmail/procmail alternative
is there a program out there that can download mail from an imap account to a local machine for local reading with a program like mutt? I'm finding the whole fetchmail/sendmail/procmail pipeline setup ...
1
vote
1answer
92 views
controlling what user sendmail runs scripts in aliases
Suppose I have a line like this in my /etc/aliases:
foo-bar: "|/etc/smrsh/some_script"
some_script is being run as user mail, but I need it to be running as user nobody.
I'm using procmail as ...
0
votes
2answers
364 views
Creating a global procmailrc file that forwards to an Exchange server
I need to forward all messages received on one server to another server (Exchange box). I know how to forward for an individual, but I am unable to forward for all addresses to their respective ...
0
votes
1answer
125 views
Assistance needed with a global procmailrc file [duplicate]
Possible Duplicate:
Assistance needed with a global procmailrc file
Creating a global procmailrc file that forwards to an Exchange server
++++++++++++++++++++++++++++++++++++++++
Please ...
1
vote
2answers
703 views
Postfix - don't generate “unknown user” bounces if message is Spam
We receive a a lot of spam addressed to (random) non-existing users. This causes postfix to generate "unknown user" bounces to the fake sender.
As a workaround I use a catch-all to redirect any mail ...
0
votes
1answer
315 views
procmail deliver to cyrus imap
i am downloading mail using fetchmail and delivering it to local unix account, the users .procmailrc file stores the mail in Maildir format and also delivers it to cyrus imap
...
0
votes
2answers
90 views
Easiest way to call script for incoming email
On a Ubuntu server, what's the easiest way to run a script (e.g. Python) when an email is received?
Email filters would be good, but not necessary.
0
votes
1answer
293 views
Centos Directadmin Dovecot Exim, Forward Email From a Different Email Address
I am trying to set up a Facebook group so anyone can send email to a specific address and this gets forwarded to our groups address and so is posted in the group.
However unfortunately if you just ...
0
votes
1answer
214 views
procmail dovecot, mail client see change only when quit and reopen
I have a filter in .procmailrc to organize mail in a folder. But I use dovecot as LDA, and it doesn't update until I quit the client. I read that I need to proceed mail through deliver as explain here ...
0
votes
1answer
195 views
Skip Spamassassin for internal mail
SpanAssassin has flagging internal mail between our users as spam, rather than adding our IPs or domains to SpamAssassin's whitelists I thought it would be best to skip SA and ClamAV all together for ...
3
votes
2answers
251 views
Setting up procmail to ignore auto-responders and bounces
I'm using procmail to receive email messages and then forward them on to a script for handling. Sometimes this will even mean generating an email (for example, forwarding the message to another user, ...
0
votes
4answers
551 views
Lightest weight MTA to forward all mail to script
I need to forward *@domain.com to a script.
I know the EXIM way and the PROCMAIL way.
Is there a lighter way? Any experiences? Which one is the fastest if I JUST WANT it to delivery emails to ...
0
votes
2answers
118 views
Linux mail server setup, failed delivery notices absent
I can't seem to find a configure setting in mail.cf where I can get failed delivery notices to be sent to the sender of the failed mail. Currently there is no indication of weather a mail has actually ...
1
vote
1answer
136 views
procmail issue - splitting delivery of one address based on destination domain
I use procmail to handle some serverside mail processing. I am trying to setup one email address on a server that support multiple domains (in the example below, domain.net and domain.com). I want ...
0
votes
2answers
158 views
Filtering semi-solicited spam
While traditional UCE (get rich quick, enlarge your body parts, Nigerian barristers) are handled adequately, I'm still receiving a lot of not quite unsolicited spam. This is typically from commercial ...
2
votes
2answers
894 views
Change allowed mail size quota
The email server on my ubuntu machine can only receive mails up to 10 megabytes in size.
I would like to change that value, but I'm so blind I can't figure out where to change it.
Could not be ...
1
vote
2answers
448 views
procmail don't execute php script
I have setup a kannel SMS gateway on my FreeBSD 7.2 - the service works great.
I'm now trying to setup a email2sms feature. For this i have created a system user called kannel and all mails are ...
0
votes
1answer
871 views
Procmail lock failures and errors while writing
I'm setting up a mail server on an embedded linux system.
When sending mail to a local user I get the following error from procmail:
procmail: Lock failure on "/home/mail/ktos/.mailspool.lock"
...
4
votes
2answers
946 views
Setting up Procmail Filtering for Spam on Postfix/Courier+MySQL Virtual Users
I've been searching for a resource on how to do this but not having much luck.
I am running a working MTA/MUA that is based on Postfix and Courier with MySQL as a backend for virtual users. I based ...
0
votes
2answers
123 views
Organize Email by Date Using procmail
I would like to organize all incoming email into the following directory structure based on the date of the email:
ROOT --+-- YYYYMMDD --+-- HH --+-- mm --+-- YYYYMMDD-HHmmSS-000001
| ...
