Marc Guyard | 23 Jun 14:55 2014

to and cc send message to specified address and all address in the email

Hi,

I've working since many days on MailDrop and i have a problem with the to and cc.
In my configuration, i've this :

if ($SUBJECT =~ /.*\[Ticket#[0-9]+\].*$/ && ! /^X-Loop: mon <at> email.com$/:h)
{
        log "* Match OTRS Subject"
        log "* Add AntiLoop Header ==> X-Loop"
        xfilter "reformail -A 'X-Loop: mon <at> email.com'"
        log "* Send email to OTRS mailbox"
        to "!otrs <at> test.local otrs-mailbackup <at> test.local"
}

In my case, mails who match this rule are send to otrs <at> test.local and otrs-mailbackup <at> test.local but also to all address in to and cc of the original email.

How can i specify to foward the email only to addresses specified and not to this and original to/cc ?

Thanks by advance for your help

Marc GUYARD
------------------------------------------------------------------------------
HPCC Systems Open Source Big Data Platform from LexisNexis Risk Solutions
Find What Matters Most in Your Big Data with HPCC Systems
Open Source. Fast. Scalable. Simple. Ideal for Dirty Data.
Leverages Graph Analysis for Fast Processing & Easy Data Exploration
http://p.sf.net/sfu/hpccsystems
_______________________________________________
Courier-maildrop mailing list
Courier-maildrop <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/courier-maildrop
Davide Davini | 23 Jun 09:48 2014
Picon

Body flag doesn't look into attachments in 2.7

On: FreeBSD gino.bramieri.com 8.4-RELEASE-p12 FreeBSD 8.4-RELEASE-p12
#14: Thu Jun 19 15:45:31 CEST 2014

Mail drop port version: maildrop-2.7.1_1

Since [yesterday] I upgraded to 2.7[1] my scripts that use :b flag don't
seem to look into the attachment anymore. Curses.

Example:
if (/pippo/:b && /^To:.*gino <at> bramieri.com/)
{
	<do stuff>
}

It works fine when "pippo" is in the, let's say, main body of the email
but it fails miserably when "pippo" is in the attachment part of the
body. It was working like a charm until the upgrade.

Did something that I do not know of change? Is it a bug? Workarounds?

Any advice is welcome.

Ciao,
Daivde

[1] from 2.6, if I recall correctly.

------------------------------------------------------------------------------
HPCC Systems Open Source Big Data Platform from LexisNexis Risk Solutions
Find What Matters Most in Your Big Data with HPCC Systems
Open Source. Fast. Scalable. Simple. Ideal for Dirty Data.
Leverages Graph Analysis for Fast Processing & Easy Data Exploration
http://p.sf.net/sfu/hpccsystems
Sam Varshavchik | 22 Jun 16:01 2014

Courier and maildrop build 20140622, new release of the Courier Unicode Library

Download: http://www.courier-mta.org/download.html

• Adds a -T replydraft option to mailbot, to read the text of the  
autoresponse from a maildir folder.

Other changes, since the last release:

• The new courier-unicode package needs to be downloaded and installed first,
before building the remaining packages.

• Fixes garbled search log entries in maildrop's log file.

• Applied fix for Debian bug 564601 to the standalone maildrop package.

• Miscellaneous fixes to build scripts.

• New rate limiting filter, perlfilter-ratelimit.pl

• RELAYCLIENT and TCPREMOTEIP get written into control files, and available
to custom mail filters.

• The Fedora RPM package updated to use systemd macros.

• IMAP and POP3 servers log logins when running in proxy mode.

------------------------------------------------------------------------------
HPCC Systems Open Source Big Data Platform from LexisNexis Risk Solutions
Find What Matters Most in Your Big Data with HPCC Systems
Open Source. Fast. Scalable. Simple. Ideal for Dirty Data.
Leverages Graph Analysis for Fast Processing & Easy Data Exploration
http://p.sf.net/sfu/hpccsystems
_______________________________________________
Courier-maildrop mailing list
Courier-maildrop <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/courier-maildrop
Guido | 8 Jun 01:07 2014
Picon

test

test

------------------------------------------------------------------------------
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and their 
applications. Written by three acclaimed leaders in the field, 
this first edition is now available. Download your free book today!
http://p.sf.net/sfu/NeoTech
_______________________________________________
Courier-maildrop mailing list
Courier-maildrop <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/courier-maildrop
Guido | 27 May 14:19 2014
Picon

Maildrop - quotawarn

Good day!

First of all sorry for my english...

Implemented warning maildrop quota exceeded for this work
correctly except for one detail .

The drawback is that sending mail notice is sent only
time .... I mean for example if the mailbox has been exceeded by more 
than 80 % ,
as I have configured , sends e- mail notification when exceeded ,
up there all right ...

The problem is that if that box again exceed the limit. not
sends the notice to the mailbox again.

I noticed that when a mailbox exceeds the limit a file is created
called " quotawarn " in the folder for the mailbox exceeded
(/ home / vmail / domain / mailbox / quotawarn ); and if I delete that file
immediately the notice is sent , so that seems to come out there the
topic ....

I noticed in the documentation and understand that should function as
says here [1 ] , meaning that the warning limit is exceeded resend
after 24 hrs , but this , as I said , does not work.

Any idea ? thanks

[1] http://www.courier-mta.org/maildrop.html

------------------------------------------------------------------------------
The best possible search technologies are now affordable for all companies.
Download your FREE open source Enterprise Search Engine today!
Our experts will assist you in its installation for $59/mo, no commitment.
Test it for FREE on our Cloud platform anytime!
http://pubads.g.doubleclick.net/gampad/clk?id=145328191&iu=/4140/ostg.clktrk
Nerijus Baliunas | 16 Jan 00:12 2014
Picon
Picon

.mailfilter file stopped working with 2.7.1

Hello,

My .mailfilter file works with 2.6.0-2.fc19, but does not with 2.7.1-1.fc19 Fedora package.
More info at https://bugzilla.redhat.com/show_bug.cgi?id=1053313.
I suspect it happens because the message has MIME unencoded Subject,
and with mixed encodings. Is it true?

Regards,
Nerijus

------------------------------------------------------------------------------
CenturyLink Cloud: The Leader in Enterprise Cloud Services.
Learn Why More Businesses Are Choosing CenturyLink Cloud For
Critical Workloads, Development Environments & Everything In Between.
Get a Quote or Start a Free Trial Today. 
http://pubads.g.doubleclick.net/gampad/clk?id=119420431&iu=/4140/ostg.clktrk
Sam Varshavchik | 6 Jan 13:00 2014

Re: [SPAM] Some messages fail delivery in postfix -> maildrop -> crm114 chain

glen martin writes:

> Here is my ~/.mailfilter:
>
>    <snip>
>    MAILDIR="$HOME/.maildir"
>    DEFAULT="$MAILDIR"
>
>    logfile "maildropfilter.log"
>    log "=========="
>
>    xfilter "/usr/bin/crm114 -u $HOME/.crm114/ $HOME/.crm114/mailfilter.crm"
>
>    log "----------"
>
>    if (/^X-CRM114-Status: SPAM/)
>            to "$MAILDIR/.0_checkspam._R_spam"
>
>    </snip>
>
> The immediate symptom is that the some messages sit spooled forever (until  
> they expire, I suppose).  mailq gives me a whole bunch of items that look  
> like this:
>
>    <snip>
>    51EE7520BA     1981 Sat Jan  4 11:27:34  MAILER-DAEMON
>    (temporary failure. Command output: /usr/bin/maildrop: Unable to filter
>    message.)

This usually indicates that the external command invoked via xfilter has  
terminated with a non-zero exit code, indicating an error.

------------------------------------------------------------------------------
Rapidly troubleshoot problems before they affect your business. Most IT 
organizations don't have a clear picture of how application performance 
affects their revenue. With AppDynamics, you get 100% visibility into your 
Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro!
http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk
_______________________________________________
Courier-maildrop mailing list
Courier-maildrop <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/courier-maildrop
Larry Stone | 5 Dec 17:36 2013

Sending a new email with maildrop/mailbot

I'm in the process of moving from procmail to maildrop*

Anyway, one of the things I do is scan certain emails for a particular 
string and if found, extract that line and sent it to my phone's text 
message email address. A suitably munged procmail recipe to do this is:

WRGPTPAGE=8472759575 <at> txt.att.net
:0BHc :
* ^From:.*REDACTED.*
* ^Subject:.*key subject
* .*key text.*
{
  	MSGTEXT=`formail -I "" | grep -i "keytext"`
  	:0
  	| (formail -brt  -I 'From: REDACTED <at> example.com' \
  	-I 'Subject: Example' -I "To: myphone <at> example.com" ; \
  	echo $MSGTEXT) | /usr/sbin/sendmail -t

}

So far, for the Maildrop equivalent, I've come up with using mailbot 
(from reading the man page, it appears reformail is not the tool for 
this) is:
if (/^From:.*REDACTED/ && \
      /^Subject:.*key subject/ && \
      /.*key text/:b && \
{
      `grep -i "key text" > .tmpmailfilter`
      cc "|/usr/local/bin/mailbot -t .tmpmailfilter \
        -A 'From: REDACTED <at> example.com' \
        -N -s "Key" /usr/sbin/sendmail -f '' myphone <at> example.com"
      `rm .tmpmailfilter`
}

This works so my only concern is that it is not optimal. Is there a way to 
avoid using the temporary file by using a variable like in the procmail 
recipe? Also, I tried setting the destination with -fmyphone <at> example.com 
but if IIRC, correctly, that caused it to go to the original sender as 
well.

Thanks in advance for any comments or suggestions.

* Why the move? Unfortunately, the latest Mac OS X (10.9) has become more 
strict in strcpy error checking and procmail built under 10.9 will error 
on more complex recipes - currently using the procmail built under 10.8 
but figure with no procmail development work in over 10 years, I may be 
living on borrowed time).

-- Larry Stone
    lstone19 <at> stonejongleux.com

------------------------------------------------------------------------------
Sponsored by Intel(R) XDK 
Develop, test and display web and hybrid apps with a single code base.
Download it for free now!
http://pubads.g.doubleclick.net/gampad/clk?id=111408631&iu=/4140/ostg.clktrk
Sam Varshavchik | 29 Nov 01:15 2013

New releases of Courier, Courier-IMAP, SqWebMail and maildrop packages

Download: http://www.courier-mta.org/download.php

Changes:

• Fixes several compiler warning about unchecked error handling. Analysis of  
affected code did not find any readily explitable attack vector; so this  
gets fixed as a preventative measure.

• Add TLS1.1 and TLS1.2 OpenSSL modules.

• A number of changes to the SSL configuration settings. A stock  
installation should come up using DH parameters by default. This is done by  
removing the TLS_DHCERTFILE setting, and replacing it with a TLS_DHPARAMS  
setting that loads a file containing DH parameters only (TLS_DHCERTFILE's  
ancillary functionality is merged into TLS_CERTFILE).

• The default startup script runs a new mkdhparams script, which creates the  
DH parameter file if it does not exist. The RPM package installs a monthly  
cron job that creates a new DH parameter file.

------------------------------------------------------------------------------
Rapidly troubleshoot problems before they affect your business. Most IT 
organizations don't have a clear picture of how application performance 
affects their revenue. With AppDynamics, you get 100% visibility into your 
Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro!
http://pubads.g.doubleclick.net/gampad/clk?id=84349351&iu=/4140/ostg.clktrk
_______________________________________________
Courier-sqwebmail mailing list
Courier-sqwebmail <at> lists.sourceforge.net
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-sqwebmail
mls | 9 Nov 14:51 2013

maildrop authdaemon: s_connect() failed

Hi,

I am using maildrop since years as MDA to deliver mail from postfix. 
Recently I decided to use it in a getmail environment to do mail filtering 
of mail that is retrieved from a provider via getmail. On my first attempts 
maildrop exited with the error "ERR: authdaemon: s_connect() failed: No such 
file or directory" because the courier-authdaemon package was not install. 
After installation it worked smoothly.

I am wondering why maildrop did not complain before when it was started from 
postfix as MDA about missing authdaemon.

Thanks & regards,

mls

------------------------------------------------------------------------------
November Webinars for C, C++, Fortran Developers
Accelerate application performance with scalable programming models. Explore
techniques for threading, error checking, porting, and tuning. Get the most 
from the latest Intel processors and coprocessors. See abstracts and register
http://pubads.g.doubleclick.net/gampad/clk?id=60136231&iu=/4140/ostg.clktrk
miro | 31 Oct 20:19 2013
Picon

My standalone maildrop configuration files

At long last I learned the last trick that I was badly lacking, and without which the configuration had some
serious flaws.

Such as those that I asked for help here:
http://article.gmane.org/gmane.mail.getmail.user/4958

I like maildrop and wish to contribute my configuration to the public.

Pls. find my configuration either on:

http://www.croatiafidelis.hr/gnu/maildrop/

or I'll try and send them to this courier mailing list as signed attachments.

Miroslav Rovis
Zagreb, Croatia
#
# This is configuration file for standalone maildrop:
# ~/.mailfilter
#
# based on:
# http://www.wonkity.com/~wblock/docs/html/maildrop.html
# and the missing trick found on:
# http://www.debian.org/doc/manuals/debian-reference/ch06.en.html#_maildrop_configuration
# (the ...test -d ...  if ( $RETURNCODE == 1 ) ... if clause trick)
#
# No warranties of any kind, but freely use as template
# You certainly cannot simply reuse this, but replace with your data (email etc.)
#
# You can cite me, Miroslav Rovis, and www.CroatiaFidelis.hr as source if you wish.
#
# Feedback welcome, but I am lazy at replying to emails sometimes. I prefer public
# correspondence, such as on respective mail-lists.
# See my previous attempts at .mailfilter script
# here: http://www.dovecot.org/list/dovecot/2013-October/092842.html
# as well as here: http://marc.info/?l=mutt-users&m=138178696024182&w=2
# for more info (and to avoid mistakes like mine)

TYPE="maildir"

logfile "$HOME/.mailfilter.log"

ECHO="/bin/echo"
MAIL="/usr/bin/mail"
MAILDIRMAKE="/usr/bin/maildirmake"
REFORMAIL="/usr/bin/reformail"

MBOX=($TYPE =~ /mbox/)
MAILDIR=($TYPE =~ /maildir/)

# use mbox by default
DEFAULT="$HOME/mail"
FOLDERS="$DEFAULT/"

if ( $MAILDIR )
{
    DEFAULT="$HOME/Maildir"
    FOLDERS="$DEFAULT/."
 if ( $DEFAULT )
 {
`test -d $DEFAULT`
if ( $RETURNCODE == 1 )
  {
    `${MAILDIRMAKE} "$DEFAULT"`
    if ( $RETURNCODE == 0 )
    {
        # notify the user when new folders are created
        NEWFOLDERMSG="${FOLDERS} folder created"
        `${ECHO} "$NEWFOLDERMSG" | ${MAIL} -s "$NEWFOLDERMSG" $LOGNAME`
    }
  }
 }
}

xfilter "reformail -c -U'Received: from'" 

# filter out duplicate messages
`${REFORMAIL} -D 131072 $HOME/.duplicate.cache`
if ( $RETURNCODE == 0 )
{
    log "File: (duplicate)     ($SIZE)\n"
    exit
}

if ( /^(To|Cc|Envelope-To|Delivered-To):.*(miro\.rovis <at> croatiafidelis\.hr)/ ) 
{
    MYFOLDERDOT="$MATCH2"
    MYFOLDER=`echo $MYFOLDERDOT|sed 's/\.//g'`
    F2MKlevel1="$MYFOLDER"
include .maildirmake.incL1

# handle mailing list messages automatically
if ( /^List-Id:.*<([0-9A-Za-z_\.\-]+)/ )
 {
    LISTNAMEDOT="$MATCH1"
    LISTNAME=`echo $LISTNAMEDOT|sed 's/\.//g'`
    F2MKlevel2="$LISTNAME"
include .maildirmake.incL2
    to ${FOLDERS}$MYFOLDER.$F2MKlevel2
 }
if ( /^(To|Cc):.*postfix-users <at> postfix\.org/ )
 {
    LISTNAMEDOT="postfix-users <at> postfix.org"
    LISTNAME=`echo $LISTNAMEDOT|sed 's/\.//g'`
    F2MKlevel2="$LISTNAME"
include .maildirmake.incL2
    to ${FOLDERS}$MYFOLDER.$F2MKlevel2
 }
if ( /^(To|From):.*support <at> plus\.hr/ )
 {
    LISTNAMEDOT="support <at> plus.hr"
    LISTNAME=`echo $LISTNAMEDOT|sed 's/\.//g'`
    F2MKlevel2="$LISTNAME"
include .maildirmake.incL2
   to ${FOLDERS}$MYFOLDER.$F2MKlevel2
 }
if ( /^(To|From|Cc):.* <at> mutt.org/ )
 {
    LISTNAMEDOT=" <at> mutt.org"
    LISTNAME=`echo $LISTNAMEDOT|sed 's/\.//g'`
    F2MKlevel2="$LISTNAME"
include .maildirmake.incL2
    to ${FOLDERS}$MYFOLDER.$F2MKlevel2
 }
    to ${FOLDERS}$F2MKlevel1
}

if ( /^(To|Cc|Envelope-To|Delivered-To):.*(m.rovis <at> inet\.hr)/ )
{
    MYFOLDERDOT="$MATCH2"
    MYFOLDER=`echo $MYFOLDERDOT|sed 's/\.//g'`
    F2MKlevel1="$MYFOLDER"
include .maildirmake.incL1

 if (/^Return-Path:.* <at> (facebookmail\.com)/)
 {
    MY2FOLDERDOT="$MATCH1"
    MY2FOLDER=`echo $MY2FOLDERDOT|sed 's/\.//g'`
    F2MKlevel2="$MY2FOLDER"
include .maildirmake.incL2

# handle Facebook groups/lists messages automatically
if ( /^List-Id:.*<([0-9A-Za-z_\-]+)\.+/ )
   {
    LIST2NAME="$MATCH1"
    F2MKlevel3="$LIST2NAME"
include .maildirmake.incL3
    to ${FOLDERS}${MYFOLDER}.${MY2FOLDER}.$F2MKlevel3
   }
  to ${FOLDERS}${MYFOLDER}.$F2MKlevel2
 }

 if ( /^(To|From):.*(childrenofmedugorje <at> gmail\.com)/ )
 {
    MY2FOLDERDOT="$MATCH2"
    MY2FOLDER=`echo $MY2FOLDERDOT|sed 's/\.//g'`
    F2MKlevel2="$MY2FOLDER"
include .maildirmake.incL2
  to ${FOLDERS}${MYFOLDER}.$F2MKlevel2
 }
 if ( /^(To|From):.*(djeca.medjugorja <at> gmail.com)/ )
 {
    MY2FOLDERDOT="$MATCH2"
    MY2FOLDER=`echo $MY2FOLDERDOT|sed 's/\.//g'`
    F2MKlevel2="$MY2FOLDER"
include .maildirmake.incL2
  to ${FOLDERS}${MYFOLDER}.$F2MKlevel2
 }
 if ( /^(To|From):.*(unavox <at> cometacom.it)/ )
 {
    MY2FOLDERDOT="$MATCH2"
    MY2FOLDER=`echo $MY2FOLDERDOT|sed 's/\.//g'`
    F2MKlevel2="$MY2FOLDER"
include .maildirmake.incL2
  to ${FOLDERS}${MYFOLDER}.$F2MKlevel2
 }
if ( /^From:\s*EWTN\s*<(wings <at> ewtn.com)>/ )
 {
    MY2FOLDERDOT="$MATCH1"
    MY2FOLDER=`echo $MY2FOLDERDOT|sed 's/\.//g'`
    F2MKlevel2="$MY2FOLDER"
include .maildirmake.incL2
  to ${FOLDERS}${MYFOLDER}.$F2MKlevel2
 }

# handle mailing list messages automatically
if ( /^List-Id:.*<([0-9A-Za-z_\.\-]+)/ )
 {
    LISTNAMEDOT="$MATCH1"
    LISTNAME=`echo $LISTNAMEDOT|sed 's/\.//g'`
    F2MKlevel2="$LISTNAME"
include .maildirmake.incL2
  to ${FOLDERS}${MYFOLDER}.$F2MKlevel2
 }
    to ${FOLDERS}$F2MKlevel1
}

if ( $MAILDIR )
{
    DEFAULT="$HOME/Maildir"
    FOLDERS="$DEFAULT/."

  if ( $F2MKlevel1 )
  {
`test -d ${FOLDERS}$F2MKlevel1`
if ( $RETURNCODE == 1 )
    {
        `${MAILDIRMAKE} -f "$F2MKlevel1" "$DEFAULT"`
        if ( $RETURNCODE == 0 )
        {
            # notify the user when new folders are created
            NEWFOLDERMSG="${FOLDERS}$F2MKlevel1 list folder created"
            `${ECHO} "$NEWFOLDERMSG" | ${MAIL} -s "$NEWFOLDERMSG" $LOGNAME`
        }
    }
  }
}
if ( $MAILDIR )
{
    DEFAULT="$HOME/Maildir"
    FOLDERS="$DEFAULT/."

  if ( F2MKlevel2 )
  {
`test -d ${FOLDERS}${MYFOLDER}.${F2MKlevel2}`
if ( $RETURNCODE == 1 )
    {
        `${MAILDIRMAKE} -f "${MYFOLDER}.${F2MKlevel2}" "$DEFAULT"`
        if ( $RETURNCODE == 0 )
        {
            # notify the user when new folders are created
            NEWFOLDERMSG="${FOLDERS}${MYFOLDER}.${F2MKlevel2} list folder created"
            `${ECHO} "$NEWFOLDERMSG" | ${MAIL} -s "$NEWFOLDERMSG" $LOGNAME`
        }
    }
  }
}
if ( $MAILDIR )
{
    DEFAULT="$HOME/Maildir"
    FOLDERS="$DEFAULT/."

  if ( $F2MKlevel3 )
  {
`test -d ${FOLDERS}${MYFOLDER}.$MY2FOLDER.$F2MKlevel3`
if ( $RETURNCODE == 1 )
    {
        `${MAILDIRMAKE} -f "${MYFOLDER}.$MY2FOLDER.$F2MKlevel3" "$DEFAULT"`
        if ( $RETURNCODE == 0 )
        {
            # notify the user when new folders are created
            NEWFOLDERMSG="${FOLDERS}${MYFOLDER}.$MY2FOLDER.$F2MKlevel3 list folder created"
            `${ECHO} "$NEWFOLDERMSG" | ${MAIL} -s "$NEWFOLDERMSG" $LOGNAME`
        }
    }
  }
}
------------------------------------------------------------------------------
Android is increasing in popularity, but the open development platform that
developers love is also attractive to malware creators. Download this white
paper to learn more about secure code signing practices that can help keep
Android apps secure.
http://pubads.g.doubleclick.net/gampad/clk?id=65839951&iu=/4140/ostg.clktrk
_______________________________________________
Courier-maildrop mailing list
Courier-maildrop <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/courier-maildrop

Gmane