|
Name |
|
Date |
Size |
#Lines |
LOC |
| .. | | 03-May-2022 | - |
| libs/ | H | 14-Mar-2021 | - | 333,143 | 281,521 |
| AUTHORS | H A D | 25-Aug-2013 | 115 | 8 | 5 |
| COPYING | H A D | 25-Aug-2013 | 183 | 4 | 3 |
| COPYING.GPL | H A D | 25-Aug-2013 | 34.3 KiB | 675 | 553 |
| ChangeLog | H A D | 13-Mar-2021 | 47.4 KiB | 1,552 | 967 |
| INSTALL | H A D | 14-Mar-2021 | 36.4 KiB | 744 | 578 |
| INSTALL.html.in | H A D | 24-Sep-2019 | 42 KiB | 721 | 716 |
| Makefile.am | H A D | 14-Mar-2021 | 13.4 KiB | 398 | 273 |
| Makefile.in | H A D | 03-May-2022 | 54.9 KiB | 1,584 | 1,371 |
| NEWS | H A D | 25-Aug-2013 | 599 | 18 | 12 |
| README | H A D | 14-Mar-2021 | 1.9 KiB | 54 | 35 |
| README.dovecotauth | H A D | 29-Oct-2014 | 2.5 KiB | 46 | 38 |
| README.html.in | H A D | 25-Aug-2013 | 2.7 KiB | 66 | 50 |
| README.postfix | H A D | 25-Aug-2013 | 6.9 KiB | 209 | 142 |
| UPGRADE | H A D | 14-Mar-2021 | 10.1 KiB | 247 | 179 |
| aclocal.m4 | H A D | 14-Mar-2021 | 377 KiB | 10,569 | 9,535 |
| compile | H A D | 01-Jan-2020 | 7.2 KiB | 349 | 259 |
| config.guess | H A D | 27-Jul-2020 | 43.1 KiB | 1,487 | 1,294 |
| config.sub | H A D | 27-Jul-2020 | 30.7 KiB | 1,791 | 1,636 |
| configure | H A D | 14-Mar-2021 | 447.7 KiB | 15,378 | 12,890 |
| configure.ac | H A D | 14-Mar-2021 | 5.2 KiB | 198 | 164 |
| dbobj.config.in | H A D | 25-Aug-2013 | 24 | 2 | 1 |
| dbobj.h.in | H A D | 25-Aug-2013 | 1.2 KiB | 60 | 49 |
| depcomp | H A D | 01-Jan-2020 | 23 KiB | 792 | 502 |
| install-sh | H A D | 02-Sep-2019 | 15.3 KiB | 530 | 346 |
| ltmain.sh | H A D | 14-Mar-2021 | 316.6 KiB | 11,150 | 7,980 |
| maildrop.lpspec | H A D | 14-Mar-2021 | 2.8 KiB | 95 | 75 |
| maildrop.lpspec.in | H A D | 02-Feb-2014 | 2.8 KiB | 95 | 75 |
| maildrop.spec | H A D | 14-Mar-2021 | 3.4 KiB | 117 | 88 |
| maildrop.spec.in | H A D | 14-Mar-2021 | 3.4 KiB | 117 | 91 |
| manpage.css | H A D | 25-Aug-2013 | 366 | 11 | 7 |
| missing | H A D | 01-Jan-2020 | 6.7 KiB | 216 | 143 |
README
1 maildrop - mail delivery agent with filtering abilities
2
3 Copyright 1998-2005, Double Precision Inc.
4
5 This program is distributed under the terms of the GNU General Public
6 License. See COPYING for additional information.
7
8 http://www.courier-mta.org/maildrop/
9
10Building RPMs
11
12 Starting with version 0.99, it is possible to build binary RPMs directly
13 from the source tarball, so there's no longer a need to provide a separate
14 set of source and binary RPMs. You will need RPM 3.0 or higher in order to
15 build a binary RPM. Execute the following command:
16
17 rpm -ta maildrop-3.0.3.tar.bz2
18
19 The binary RPM will be built with a customized configuration (userdb,
20 GDBM, and quota enhancements enabled). Afterwards, simply execute rpm -i
21 to install it. That's it.
22
23 With RPM 4.1 (Red Hat 8.0) use the 'rpmbuild' command instead of rpm:
24 rpmbuild -ta maildrop-3.0.3.tar.bz2
25
26 If you would like to change the RPM build options, move
27 maildrop-3.0.3.tar.gz to your SOURCES directory, extract the file
28 maildrop.spec, move it to your SPECS directory, customize it if necessary,
29 then build from the spec file.
30
31 maildrop includes documentation in HTML, as well as traditional man pages.
32 The HTML versions may also be found at
33 http://www.courier-mta.org/maildrop/maildrop.html.
34
35
36Installation
37
38 See INSTALL for installation information. If you are using an RPM-based
39 Linux distribution, you can install build a binary RPM directly from the
40 source code.
41
42Using maildrop with sendmail
43
44 Maildrop can be easily used as sendmail's local delivery agent, instead of
45 procmail. Here is the suggested entry for sendmail.cf, courtesy of Eric J.
46 Schwertfeger <ejs@bfd.com>:
47
48
49 Mlocal, P=/usr/local/bin/maildrop, F=lsAw5:/|@SPfhn, S=10/30, R=20/40,
50 T=DNS/RFC822/X-Unix,
51 A=maildrop -d $u
52
53 You may also consider including the D, F, and M flags as well.
54
README.dovecotauth
1Dovecot Authentication extension for maildrop
2=============================================
3** Copyright 2009 Marko Njezic
4** Licensed under the same terms as Courier Authlib AND/OR Courier Maildrop.
5
6Use --enable-dovecotauth to run maildrop's configure script to enable this
7extension.
8
9In order to use it you'll need to specify additional option "-t" that will point
10to the location of Dovecot's auth master socket when starting maildrop in
11delivery mode. For example:
12
13maildrop -d USER -t /var/run/dovecot/auth-master
14
15By specifying "-t" option, maildrop will first try user lookup against Dovecot's
16database. If user is not found, maildrop will fallback to local user database
17(i.e. passwd), as usual. Lookups against Courier Authlib will not be done when
18"-t" option is specified. If you want to perform such lookup when both
19extensions are compiled, simply remove "-t" option and maildrop will behave as
20usual.
21
22One significant difference compared to Courier Authlib extension is that Dovecot
23Authentication extension will never return uid/gid that's equal to zero. If such
24value was returned from database, maildrop will exit with temporary failure.
25This was done in order to prevent accidental mistakes. If you really want to
26deliver as/to root, you'll have to start maildrop without "-t" option and let
27it directly query system user database on its own.
28
29Make sure that correct permissions are set on Dovecot's auth master socket so
30that maildrop can communicate with it. Also, depending on what type of users are
31being served from Dovecot's database, if user lookup returns local user
32accounts, you may end up with problems when maildrop tries to write mails to the
33spool directory if wrong permission are set on it, since maildrop will reset its
34permissions (uid/gid) to the values returned from user database. This behavior
35is the same as the behavior of lookups against Courier Authlib, since they also
36reset maildrop's permissions. When you want maildrop to deliver to the local
37users, it's best to let it directly query system user database on its own,
38since then it can apply its own "RESET_GID" magic, which will hopefully result
39in "correct" permissions that will allow maildrop to write to the spool
40directory.
41
42And last but not least, I hope that you'll find this extension useful.
43Especially if you already have an existing user database in Dovecot, but would
44like to use maildrop (with its powerful "xfilter" command) to deliver e-mails,
45without setting up another authentication user database, like Courier Authlib.
46
README.html.in
1<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
2 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
3<html xmlns="http://www.w3.org/1999/xhtml">
4<head>
5 <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
6 <title>maildrop - mail delivery agent with filtering abilities</title>
7 <meta name="MSSmartTagsPreventParsing" content="TRUE" />
8</head>
9
10<body>
11<!-- Copyright 1998 - 2005 Double Precision, Inc. See COPYING for -->
12<!-- distribution information. -->
13
14<h1>maildrop - mail delivery agent with filtering abilities</h1>
15
16<p>Copyright 1998-2005, Double Precision Inc.</p>
17
18<p>This program is distributed under the terms of the GNU General Public
19License. See <code>COPYING</code> for additional information.</p>
20
21<p><a
22href="http://www.courier-mta.org/maildrop/">http://www.courier-mta.org/maildrop/</a></p>
23
24<h2>Building RPMs</h2>
25
26<p>Starting with version 0.99, it is possible to build binary RPMs directly
27from the source tarball, so there's no longer a need to provide a separate
28set of source and binary RPMs. You will need RPM 3.0 or higher in order to
29build a binary RPM. Execute the following command:</p>
30<pre> rpm -ta maildrop-@VERSION@.tar.bz2</pre>
31
32<p>The binary RPM will be built with a customized configuration (userdb,
33GDBM, and quota enhancements enabled). Afterwards, simply execute <code>rpm
34-i</code> to install it. That's it.</p>
35
36<p>With RPM 4.1 (Red Hat 8.0) use the 'rpmbuild' command instead of rpm:
37<tt>rpmbuild -ta maildrop-@VERSION@.tar.bz2</tt></p>
38
39<p>If you would like to change the RPM build options, move
40<code>maildrop-@VERSION@.tar.gz</code> to your <code>SOURCES</code>
41directory, extract the file <code>maildrop.spec</code>, move it to your
42<code>SPECS</code> directory, customize it if necessary, then build from the
43spec file.</p>
44
45<p><i>maildrop</i> includes documentation in HTML, as well as traditional man
46pages. The HTML versions may also be found at <code><a
47href="maildrop.html">http://www.courier-mta.org/maildrop/maildrop.html</a>.</code>
48<br />
49�</p>
50
51<h2>Installation</h2>
52See <code><a href="INSTALL.html">INSTALL</a></code> for installation
53information. If you are using an RPM-based Linux distribution, you can
54install build a binary RPM directly from the source code.
55
56<h2>Using maildrop with sendmail</h2>
57Maildrop can be easily used as sendmail's local delivery agent, instead of
58procmail. Here is the suggested entry for sendmail.cf, courtesy of Eric J.
59Schwertfeger <ejs<code>@</code>bfd.com>:
60<pre>�
61Mlocal,�������� P=/usr/local/bin/maildrop, F=lsAw5:/|@SPfhn, S=10/30, R=20/40,
62��������������� T=DNS/RFC822/X-Unix,
63��������������� A=maildrop -d $u</pre>
64You may also consider including the D, F, and M flags as well.</body>
65</html>
66
README.postfix
1Date: Sat, 31 Jan 2004 16:00:00 +1:00 (CET)
2Tonni Earnshaw <postmaster@billy.demon.nl>
3addition for README.postfix in maildrop package
4
5LDAP and maildrop.
6
7maildrop's LDAP support, combined with Courier IMAP's authldap.schema, give 3
8new objectclasses over and above standard object classes, that enable LDAP-
9based quotas, virtual aliases and virtual mailboxes, as well as regular
10$HOME/Maildir based mail directories.
11
12By using the standard combination of master.cf/transport as given below,
13NO standard Postfix LDAP lookups are done before passing the message to the
14Postfix transport, which takes care of immediate delivery. However, it's most
15likely that LDAP lookups have to be done - for example on system and other
16aliases - before enabling delivery to users' mailboxes.
17
18With Postfix 2.1.0 (perhaps before that too, I'm still using
19postfix-2.0.16-20031231) it is possible to circumvent the
20master.cf/transport pair described below by giving maildrop as the
21mailbox_command in main.cf and leaving out the master.cf/transport
22examples given below. For example:
23
24mailbox_command = /usr/local/bin/maildrop -d ${USER} -w 70 (note upper case).
25
26In as much as maildrop 1.6.3 supports LDAP lookups, and the version of deliverquota
27that I was using before (2.2.2) does not, it's thus possible to use Postfix's local
28transport instead of a dedicated maildrop transport.
29
30==============================================================================
31
32Date: Wed, 23 Jan 2002 07:31:26 -0700 (MST)
33From: Charlie Watts <cewatts@frontier.net>
34Subject: addition for README.postfix in maildrop package
35
36README.postfix recommends postfix be configured with:
37
38 maildrop unix - n n - - pipe
39 flags=R user=vmail argv=/usr/local/bin/maildrop -d ${recipient}
40
41However, since version 20010610 of postfix, you need to add the u flag as
42well so that postfix downcases addresses before handing them to maildrop.
43
44-------------------------------------------------------------------
45Incompatible changes with snapshot-20010610
46===========================================
47
48The Postfix pipe delivery agent no longer automatically case-folds
49the expansion of $user, $extension or $mailbox command-line macros.
50Specify the 'u' flag to get the old behavior.
51-------------------------------------------------------------------
52
53It does not automatically case-fold $recipient either.
54
55I'd recommend this instead:
56 maildrop unix - n n - - pipe
57 flags=Ru user=vmail argv=/usr/local/bin/maildrop -d ${recipient}
58
59--
60Charlie Watts
61cewatts@frontier.net
62Frontier Internet, Inc.
63http://www.frontier.net/
64
65
66Date: Tue, 14 Mar 2000 17:02:04 -0300 (EST)
67From: Bruno L. F. Cabral <bruno@openline.com.br>
68Reply-To: Maildrop mailing list <maildropl@listbot.com>
69To: maildropl@listbot.com
70Subject: Re: [maildropl] maildrop, postfix & userdb
71
72Maildrop mailing list - http://www.flounder.net/~mrsam/maildrop/
73
74Hi there
75
76I tried maildrop 0.99.1 and it is now working like a charm with
77postfix & userdb, thanks Sam ! :)
78
79vmail is my virtual user, which is a trusted maildrop (-d) user
80
81 # id vmail
82 uid=400(vmail) gid=400(vmail) groups=400(vmail)
83 # install -d /home/vmail -o vmail -g vmail -m 700
84
85on /etc/postfix/master.cf:
86 maildrop unix - n n - - pipe
87 flags=R user=vmail argv=/usr/local/bin/maildrop -d ${recipient}
88
89on /etc/postfix/main.cf:
90 fallback_transport = maildrop
91
92on /etc/userdb/default:
93 vmail uid=400|gid=400|home=/home/vmail|shell=/bin/bash|systempw=*
94 400= vmail
95
96create one /etc/userdb/domain for each domain, one line for each virtual user
97(the uid & gid MUST be equal to vmail's one -- the quota is 5MB or 200 messages)
98 user@domain home=/home/vmail|mail=/home/vmail/domain/user|uid=400|gid=400|quota="5000000S,200C"
99
100to commit the changes:
101 # makeuserdb
102
103preparing the virtual mailboxes, the install is for each new domain,
104the maildirmake for each user inside the virtual domain
105 # su - vmail
106 $ install -d /home/vmail/domain -o vmail -g vmail -m 750
107 $ maildirmake /home/vmail/domain/user
108 $ exit
109
110now, ready to fight with qmail's pop3d :)
111
112!3runo
113
114
115Date: Tue, 21 Mar 2000 12:29:48 -0300 (EST)
116From: Bruno L. F. Cabral <bruno@openline.com.br>
117Reply-To: Maildrop mailing list <maildropl@listbot.com>
118To: maildropl@listbot.com
119Subject: Re: [maildropl] maildrop, postfix & userdb
120
121Maildrop mailing list - http://www.flounder.net/~mrsam/maildrop/
122
123Hi there
124
125this is an add-on to my previous post
126
127> I tried maildrop 0.99.1 and it is now working like a charm with
128> postfix & userdb, thanks Sam ! :)
129
130to postfix handle as local our maildrop's userdb e-mails, you'll have to
131(in adition of my previous instructions)
132
133 /etc/postfix/transport:
134 virtual.domain maildrop:
135
136if you want to do some domain redirection, use
137 /etc/postfix/virtual:
138 webmaster@virtual.domain johndoe@virtual.domain
139
140(do not use a line like
141 virtual.domain whatever
142as stated on postfix' virtual(5) or unlisted users will be rejected
143as 'unknown' -- a small postfix glitch, seems)
144
145 /etc/postfix/main.cf:
146 transport_maps = hash:/etc/postfix/transport
147 virtual_maps = hash:/etc/postfix/virtual
148
149as you may have noticed, no virtual domains listed on mydestination
150
151> now, ready to fight with qmail's pop3d :)
152
153as Sam said before, it is possible to use qmail's qpop3d to read
154maildrop's userdb mailboxes. qmail's pop3d is modular, I only had
155to write a shim that tests the username/password pair (received
156from qmail-popup) against maildrop's userdb files and, on success,
157change the current directory to the one where the user maildir++ resides.
158qmail-pop3d takes care of the rest.
159
160the line on inetd.conf becomes:
161
162pop-3 stream tcp nowait root /usr/sbin/tcpd qmail-popup YOUR.FQHN.HERE /usr/sbin/chkpwd-userdb.pl /usr/sbin/qmail-pop3d .
163
164if ppl think the program is interesting, I can post it. it needs
165a small rewrite to get rid of debugging stuff but it is working
166very well with maildrop 0.99 & DB files.
167
168thanks Sam, for the pacience with me and for the great job on maildrop.
169
170Cheers, !3runo
171
172
173From: Charlie Watts <cewatts@frontier.net>
174To: Sam Varshavchik <mrsam@courier-mta.com>
175Date: 30 Mar 2001, 06:40:11 AM
176Subject: Suggested addition maildrop/README.postfix
177
178You may want to add this to maildrop/README.postfix, or postfix folks
179using maildrop as LDA may lose mail.
180
181Postfix, by default, will send messages to multiple recipients at a time.
182
183Maildrop assumes that it will be receiving messages for one recipient at a
184time.
185
186When postfix hands maildrop a message with multiple recipients, only the
187first recipient receives the mail.
188
189
190If maildrop is configured as a transport named "maildrop" in postfix
191(which would be the normal way to do it), adding:
192
193maildrop_destination_recipient_limit = 1
194
195to /etc/postfix/main.cf fixes this behaviour, and causes postfix to hand
196messages one recipient at a time to maildrop.
197
198
199
200
201Thanks for a lovely piece of software.
202
203--
204 "Dorothy, if you're going to Oz again, I'm
205 going with you", Em barked.
206Charlie Watts
207cewatts@frontier.net
208
209