Schiz0 | 14 Apr 19:28
Picon

Integrating Maildrop with Postfix/ClamAV/Spamassasin/Maildir

Hello list,

I have a working mail setup with Postfix and av/spam filtering through
amavis-new. I'd like to be able to filter mail into various folders
for mailing lists, spam, and other various things. I installed
Maildrop on my system and i configured Postfix to call it via the
"mailbox_command = /usr/local/bin/maildrop -d ${USER}" option. I have
googled around extensively, and I can't seem to figure out how to get
maildrop to deliver to a Maildir. I am using system users, so
everything is located in /usr/home/$USER/Maildir/. I can't seem to
find any example maildroprc file in my installation, or any examples
online. What is the best way to do this and create folders if they
don't exist? Eg, a "Spam" folder to move mail detected by spamassassin
into.

Also, as I mentioned, I currently use amavis-new for clamav and
spamassassin filtering. Would it be better to use maildrop for such
filtering? Would this give me any advantages over amavis-new?

This is my first major email system configuration, and my first time
using any type of MDA.

Thank you for your help.

------------------------------------------------------------------------------
For Developers, A Lot Can Happen In A Second.
Boundary is the first to Know...and Tell You.
Monitor Your Applications in Ultra-Fine Resolution. Try it FREE!
http://p.sf.net/sfu/Boundary-d2dvs2
(Continue reading)

Fernando Gozalo | 24 Feb 14:44
Picon
Favicon

maildrop doesn't read /etc/maildroprc

Hi,

I think I'm missing something obvious. I want to use for first time 
/etc/maildroprc. It seems that the file is not used at all.

I have created the file an put a single line in it:

# cat /etc/maildroprc
cc "fgozalo <at> csi.uned.es"

# ls -al /etc/maildroprc
-rw------- 1 cartero cartero 25 feb 24 08:10 /etc/maildroprc

No message delivered to "fgozalo <at> csi.uned.es". The message is delivered 
to the original recipient as if no was /etc/maildroprc. Nothing in the 
logs apart of the normal lines for delivery message in the original 
recipient.

More info:
. maildrop version:  2.5.1

Called from postfix:
. main.cf:
mailbox_transport = maildrop

. master.cf
maildrop  unix  -       n       n       -       -       pipe
   flags=ODRhu user=cartero argv=/usr/bin/maildrop -d ${user} -f ${sender}

¿Any hint?
(Continue reading)

salahuddin | 12 Feb 13:09

pgp-maildrop script

Hello there

I have written a Perl script for using pgp using maildrop.

It may be useful to others:
https://github.com/libreserver/pgp-maildrop

Comments and suggests are welcome.

-

------------------------------------------------------------------------------
Virtualization & Cloud Management Using Capacity Planning
Cloud computing makes use of virtualization - but cloud computing 
also focuses on allowing computing to be delivered as a service.
http://www.accelacomm.com/jaw/sfnl/114/51521223/
Fred Ho | 29 Dec 16:25
Favicon

mailbot error

Hi,

I am running the following Courier suite on RedHat Enterprise Linux 4.6:

courier-maildrop-0.64.0-1.4ES
courier-authlib-userdb-0.63.0-1.rh4ES
courier-authlib-devel-0.63.0-1.rh4ES
courier-maildrop-wrapper-0.64.0-1.4ES
courier-0.64.0-1.4ES
courier-pop3d-0.64.0-1.4ES
courier-authlib-0.63.0-1.rh4ES
courier-imapd-0.64.0-1.4ES

When I tried to use mailbot to do autoresponse and it failed with the following error:

$ mailbot -n -t away.msg.3 -s'Autoreply test' -c 'UTF-8' cat < orig.msg 
Precedence: junk
Auto-Submitted: auto-replied
To: Fred Ho <fkho <at> fredho.net>
References: <1325166170222329500 <at> fredho.net>
In-Reply-To: <1325166170222329500 <at> fredho.net>
Subject: Autoreply test
Mime-Version: 1.0
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: 8bit

Fred Ho writes:

> Regards,Fred‚Äã
   
您好,
李林清已离职,相关业务咨询请联系标克公司Doris Li或廖生,谢谢!
         Doris Li:widny <at> buildup-sz.com
¬†¬†¬†¬†¬†¬†¬†¬† ªñÁîüÔºöliaoyl <at> buildup-sz.com  
   
   
*** glibc detected *** free(): invalid pointer: 0xbff17b4a ***

Attached are the orig.msg and away.msg.3 files. The autoreply message file contains Chinese characters in UTF-8 codeset.

Please advise on how to solve the problem.
Thanks.



Regards,
Fred
Attachment (away.msg.3): application/octet-stream, 199 bytes
Attachment (orig.msg): application/octet-stream, 2387 bytes
------------------------------------------------------------------------------
Ridiculously easy VDI. With Citrix VDI-in-a-Box, you don't need a complex
infrastructure or vast IT resources to deliver seamless, secure access to
virtual desktops. With this all-in-one solution, easily deploy virtual 
desktops for less than the cost of PCs and save 60% on VDI infrastructure 
costs. Try it free! http://p.sf.net/sfu/Citrix-VDIinabox
_______________________________________________
Courier-maildrop mailing list
Courier-maildrop <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/courier-maildrop
Philippe Cerfon | 17 Dec 22:26

Re: deliver mail marked as read

Just noted that I forgot to CC the list.

---------- Forwarded message ----------
From: Philippe Cerfon <philcerf <at> googlemail.com>
Date: Tue, Dec 13, 2011 at 3:40 PM
Subject: Re: [maildropl] deliver mail marked as read
To: Dimitri Maziuk <dmaziuk <at> bmrb.wisc.edu>

On Tue, Dec 13, 2011 at 1:13 AM, Dimitri Maziuk <dmaziuk <at> bmrb.wisc.edu> wrote:
> IOW it's critical for you that dovecot does not detect that there are
> new messages in "new". Perhaps you should patch dovecot then.

Don't see what you mean,... I want to be able to mark mail as seen or
unseen, depending on how I filter them... filtering is the task of the
MDA (in this case maildrop)...
It sets (or should do so) some flags in the maildir filename... which
the imap server then sees and interprets accordingly.
In principle it's not only "S"een that could be interesting but all of:
   Flag "P" (passed): the user has resent/forwarded/bounced this
message to someone else.
   Flag "R" (replied): the user has replied to this message.
   Flag "S" (seen): the user has viewed this message, though perhaps
he didn't read all the way through it.
   Flag "T" (trashed): the user has moved this message to the trash;
the trash will be emptied by a later user action.
   Flag "D" (draft): the user considers this message a draft; toggled
at user discretion.
   Flag "F" (flagged): user-defined flag; toggled at user discretion.
(not sure whether T makes really sense though)

Maybe you have a maildrop filter, that generates some automatic
replies,... and you'd like to mark this accordingly.

Cheers,
Philippe.

------------------------------------------------------------------------------
Learn Windows Azure Live!  Tuesday, Dec 13, 2011
Microsoft is holding a special Learn Windows Azure training event for 
developers. It will provide a great way to learn Windows Azure and what it 
provides. You can attend the event by watching it streamed LIVE online.  
Learn more at http://p.sf.net/sfu/ms-windowsazure
Philippe Cerfon | 11 Dec 15:57

merge dovecot-auth backend

Hi.

Perhaps you already know,... there's a patch
(http://wiki2.dovecot.org/maildrop) available to make user lookups
against dovecots own auth extension.

It seems to apply nicely and happily co-exist with the original system.
The license is also the same and there's even a nice README included.

Given that dovecot is major imap/pop3 server these days and people
like to use its own user auth system... and given that it would make
life a lot easier if this patch was merged upstream,... would it be
possible to do so?
Or at least tell, where it would have to be improved in order to get merged?

Perhaps it would be enough to merge it to the standalone maildrop :)

Thanks in advance,
Philippe.

------------------------------------------------------------------------------
Learn Windows Azure Live!  Tuesday, Dec 13, 2011
Microsoft is holding a special Learn Windows Azure training event for 
developers. It will provide a great way to learn Windows Azure and what it 
provides. You can attend the event by watching it streamed LIVE online.  
Learn more at http://p.sf.net/sfu/ms-windowsazure
Philippe Cerfon | 11 Dec 00:06

deliver mail marked as read

Hi.

This seems to be a very common problem, at least according to Google ;-)....

What's the right way to deliver mail (i.e. "to") but have it marked as read?
Is it cleanly possible with maildrop?

I've seen somy rather ugly hacks using "cc" and some find shell
commands doing the renaming,... but this seems to be not safe, is it?

Thanks,
Philippe.

------------------------------------------------------------------------------
Learn Windows Azure Live!  Tuesday, Dec 13, 2011
Microsoft is holding a special Learn Windows Azure training event for 
developers. It will provide a great way to learn Windows Azure and what it 
provides. You can attend the event by watching it streamed LIVE online.  
Learn more at http://p.sf.net/sfu/ms-windowsazure
Sam Varshavchik | 4 Dec 23:40
Gravatar

New releases of Courier packages

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

General changes

  • The default RPM packages switch to systemd, from initscripts, for starting Courier at system startup.

  • Some portability fixes, affecting some platforms.

maildrop 2.5.5, sqwebmail 5.5.3

  • Fixed several instances of various tools -- reformail, reformime, mailbot, and sqwebmail itself -- failing if MIME attachment names could not be converted to the system locale's character set. They'll just get ignored or defaulted.

  • Added "feedback" and "replyfeedback" formats to mailbot, that generate Email Feedback Reports, per RFC 5965.

Courier-IMAP 4.10.0

  • Optional logging of deleted messages in the IMAP and POP3 servers. Document the IMAPDEBUGFILE setting, but open the imap log file only if it already exists, so that IMAPDEBUGFILE can be enabled globally, but selectively activated for individual accounts by creating a dummy zero- length file.

  • IMAP: Reset the epoch of an internal folder sequence number. Read the gory details in the INSTALL file, in the upgrade section. This should have no impact for routine upgrade situations. If you're in the habit of backing up and restoring mailboxes, or migrating them between servers, you need to read up on this and understand the implications.

  • POP3 server now tries to reopen pop3dsizelist a few times, to work around NFS clients that complain about ESTALE.

Courier 0.67.0

In addition to all of the above:

  • Cleanup of the internal DNS resolver. Get rid of the default global instance, force explicit instantiation and destruction of the resolver object. Add support for DNSSEC. It's not used for anything, right now, but if something on the DNSSEC front develops, in the near future, we'll be ready.

  • Ignore errors received in response to a STARTTLS request, by default, if the non-encrypted connection can still be used. Sad state of TLS with SMTP. Provide an option to revert to previous, hard-line behavior. Provide a hook to run an external script to report a peer that fails a STARTTLS.

  • Added the IPv6 localhost address to the default smtpaccess file installed by Courier, granting it relaying privileged. After upgrading, running makesmtpaccess will fail if the IPv6 localhost address was manually added in some other smtpaccess file. Remove ::1 from the other file.

------------------------------------------------------------------------------
All the data continuously generated in your IT infrastructure 
contains a definitive record of customers, application performance, 
security threats, fraudulent activity, and more. Splunk takes this 
data and makes sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-novd2d
_______________________________________________
Courier-maildrop mailing list
Courier-maildrop <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/courier-maildrop
brian | 18 Nov 18:11
Picon
Favicon

Re: Need some very very basic help with Maildrop please

On 11/15/2011 08:35 PM, Dimitri Maziuk wrote:
On 11/15/2011 01:16 PM, brian wrote:
Hi, well I took maildrop out of the Fetchmal config, and started looking at how Fetchmail Exim4 and Dovecot work together and see there, Maildrop.log in each user's home directory and it seems to be working perfectly. Seems like Exim4 had the correct config set up, but Maildrop was not installed. I have one copy, and I installed that via apt last week. Very strange.
MTAs typically don't need a separate MDA just to dump mail into user's mailbox, so maildrop & procmail don't get installed by default.
Next step look at local delivery where possible, and filtering with maildrop. And, yes, it does seem to be using the .mailfilter files correctly for each user.
I was kinda hoping that it was the case. That's what makes this setup easier. cheers

If I understand correctly then Exim will try all its mail transports till one works,
and I guess the Maildrop one now works since I installed Maildrop.

Thats my explanation and I'm sticking to it <G>


Anyway, I have everything working now the way I wanted it and the scripts are
triggered the way I expected. So thanks very much for your tip, and all the others
that replied.

Cheers Brian










------------------------------------------------------------------------------
All the data continuously generated in your IT infrastructure 
contains a definitive record of customers, application performance, 
security threats, fraudulent activity, and more. Splunk takes this 
data and makes sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-novd2d
_______________________________________________
Courier-maildrop mailing list
Courier-maildrop <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/courier-maildrop
Sam Varshavchik | 17 Nov 14:37
Gravatar

Courier build 20111116

This is a development build of courier, courier-imap, sqwebmail, and  
maildrop packages.

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

Changes:

• Fixed several instances of various processes failing if MIME attachment  
names could not be converted to the system locale's character set. They'll  
just get ignored.

• Optional logging of deleted messages. Document the IMAPDEBUGFILE setting,  
but open the imap log file only if it already exists, so that IMAPDEBUGFILE  
can be enabled globally, but selectively activated for individual accounts  
by creating a dummy zero-length file.

------------------------------------------------------------------------------
All the data continuously generated in your IT infrastructure 
contains a definitive record of customers, application performance, 
security threats, fraudulent activity, and more. Splunk takes this 
data and makes sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-novd2d
_______________________________________________
Courier-maildrop mailing list
Courier-maildrop <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/courier-maildrop
brian | 13 Nov 11:53
Picon
Favicon

Fwd: FW: Re: Need some very very basic help with Maildrop please

Date: Sat, 12 Nov 2011 18:32:55 +0100
Subject: Re: [maildropl] Need some very very basic help with Maildrop please From: Sam Varshavchik <mrsam <at> courier-mta.com> To: courier-maildrop <at> lists.sourceforge.net brian writes: > But I would be stuck there, I think. If I have two users, with two "POLL"   > blocks in fetchmail, then is any parm passed > to maildrop that I could use? No, you shouldn't. Once again: you put a .mailfilter in each user's home   directory, and that's where you provide mail delivery instructions for the   recipient. > But then Maildrop needs to run with $HOME set correctly for each user. Is   > that how it works? When your mail server runs maildrop, it should do that after dropping root   and running maildrop under the recipient's uid and gid. maildrop checks   which uid and gid it runs as, and sets $HOME accordingly. This is all explained in the maildropfilter man page. OK, I guess I understand this OK. But it somehow does not seem to do that properly. I tested again running fetchmail as fetchmail, mail or root. STill get the log in /var/lib/fetchmail/maildrop.log, when it is defined as just maildrop.log. Or maybe the log is always in the same place. Time for some more testing. Maybe I should build my own Maildrop? Cheers Brian
brian writes:

> But I would be stuck there, I think. If I have two users, with two "POLL"  
> blocks in fetchmail, then is any parm passed
> to maildrop that I could use?

No, you shouldn't. Once again: you put a .mailfilter in each user's home  
directory, and that's where you provide mail delivery instructions for the  
recipient.

> But then Maildrop needs to run with $HOME set correctly for each user. Is  
> that how it works?

When your mail server runs maildrop, it should do that after dropping root  
and running maildrop under the recipient's uid and gid. maildrop checks  
which uid and gid it runs as, and sets $HOME accordingly.

This is all explained in the maildropfilter man page.

------------------------------------------------------------------------------
RSA(R) Conference 2012
Save $700 by Nov 18
Register now
http://p.sf.net/sfu/rsa-sfdev2dev1
_______________________________________________
Courier-maildrop mailing list
Courier-maildrop <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/courier-maildrop

------------------------------------------------------------------------------
RSA(R) Conference 2012
Save $700 by Nov 18
Register now
http://p.sf.net/sfu/rsa-sfdev2dev1
_______________________________________________
Courier-maildrop mailing list
Courier-maildrop <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/courier-maildrop

Gmane