masqmail-0.2

view ChangeLog @ 89:a917cb178ca7

what about the `rmail' alias?
author meillo@marmaro.de
date Sat, 19 Jun 2010 19:00:04 +0200
parents c343f5012551
children 3334237be176
line source
1 This ChangeLog file summarizes the (implementation) changes from the
2 technical view.
4 The code repository log file provides the changes in full detail.
6 Have a look at the NEWS file for a summary of the changes in a less
7 technical speach and with focus on compatibility.
10 0.2.24 Wed, 16 Jun 2010 19:37:40 +0200
11 * removed dead code in child.c
12 * fixed closing of log files on receival of SIGHUP. See commit
13 message and http://bugs.debian.org/536060 .
14 * the daemon does reparent to init anymore if init is already
15 its parent. This situation appears on SIGHUP receival.
16 * fixed correct processing of mails with data lines longer
17 4096 chars. See commit message for details.
19 0.2.23 Sun, 30 May 2010 21:00:44 +0200
20 * fixed inverted condition for undefined online_file. Thanks to
21 Juergen Daubert.
22 * masqmail installs to /usr/local by default now. Previously it
23 installed to /usr.
24 * man pages get installed again. Again thanks to Juergen Daubert.
25 Docs and examples do get installed now too.
26 * updated the docs. Moved the man pages from docs/ to man/.
27 Added the old manual from the old website to the distribution.
28 * reworked the test cases completely.
29 * updated the README file and added a bug report howto
30 * fixed dist-gen (wrong paths for md5sum)
32 0.2.22 Thu, 20 May 2010 21:19:56 +0200
33 * new maintainer: markus schnalke <meillo@marmaro.de>. See NEWS.
34 * fixed expanding of $prefix for template files. Thanks to Johann
35 Felix Soden.
36 * fixed delivery with empty or non-existent alias files.
37 Thanks to Marcos Dione.
38 * fixed empty or only-whitespace connection names.
39 * fixed typos, reported by Reuben Thomas.
40 * corrected man page about /etc/aliases. Thanks to Alexis.
41 * further corrections and improvements in man pages. Man pages will
42 be maintained in the nroff code directly in future.
43 * removed distribution specific data from repo. It is now separately
44 available on the website.
45 * changed default online status file to /var/run/masqmail/masqmail-route
46 * removed trigraph warnings
48 0.2.21 Mon, 07 Nov 2005 14:09:21 -0800
49 * do not use shell when executing sub programs (security fix)
50 * do not accept backtick in email adresses (security fix)
51 * write log files as 'mail' user (security fix)
52 * use /var/run/masqmail/ for pid files
53 0.2.20 Mon, 19 May 2003 21:14:06 +0200
54 * fixed a segfaulting bug in spool.c caused by folded headers
55 * regard connect_error_fail when failing for pipes (Debian Bug #186364)
56 * hopefully fixed uid/gid problem in peidopen.c
57 0.2.19 Wed, 12 Mar 2003 21:33:53 +0100
58 * fixed a bug in addr_string (set buffer = NULL if g_free'd buffer)
59 0.2.18 Fri, 06 Dec 2002 14:57:41 +0100
60 * new option connect_error_fail
61 * install /var/{log,spool} before subdirs, so
62 they get correct ownerships, if installing to a tmp. directory
63 Thx to Juergen Daubert.
64 * failure notices and warnings also if connection fails
65 0.2.17 Thu, 28 Nov 2002 14:59:24 +0100
66 * fixed errors in man page masqmail.conf.5 about online_detect
67 Thx to Juergen Daubert.
68 * fixed a segfaulting bug in accept.c on pop retrieval, if there
69 is no return_path in the mail and Sender: is empty.
70 Thx to Olaf Buddenhagen for debug information.
71 * implemented 'last_route' option
72 * moved *.tpl to /usr/share/masqmail/tpl (from /etc/masqmail/tpl)
73 * french translation of warnmsg.tpl by Rémi Denis-Courmont
74 * added delivery warn messages for deferals
75 new options: 'warn_intervals', 'warnmsg_file', 'max_defer_time'
76 * warn/fail also if remote SMTP server replies with 4xx or 5xx
77 just after EHLO/HELO (yes, that was a bug)
78 * removed a few -Wall warnings. Thanks to Juergen Daubert.
79 0.2.16 Tue, 12 Nov 2002 17:27:13 +0100
80 * fixed debugging, which has been broken in 0.2.15
81 0.2.15 Wed, 06 Nov 2002 12:19:55 +0100
82 * added french translation of delivery failure message template.
83 Thanks to Rémi Denis-Courmont
84 * accept -f "" without segfaulting. Thanks to Ralf Friedl.
85 * fixed buffer overflows in conf.c. Thanks to Damian M Gryski.
86 * read conf file _after_ dropping privileges
87 0.2.14 Sat, 26 Oct 2002 14:40:49 +0200
88 * corrected html version of documentation
89 * include masqmail.8 man page (was garbled in 0.2.13)
90 * small lintian fixes for Debian
91 0.2.13 Wed, 23 Oct 2002 20:54:39 +0200
92 * fixed a possible buffer overflow (IMHO not exploitable) Thanks to Anonymous.
93 0.2.12 Wed, 23 Oct 2002 18:57:42 +0200
94 * new do_pipelining option (to switch it off if necessary)
95 * new helo_name option for route
96 * fixed remote_port option (but marked it as deprecated)
97 * swapped setegid/seteuid in maildir_out()
98 * try again on EAGAIN failure for local delivery via mbox
99 0.2.11:
100 * make it possible for *.route file to have mode 600, owned by root.
101 Thx to Juergen Daubert for noticing.
102 * do not choke on trailing blanks after comments in conf file. Anonymous
103 again.
104 * try again on EAGAIN failure for local delivery via mda
105 * fixed a potential buffer overflow in conf.c. Thanks to Anonymous
106 again.
107 * set umask 066 for log files. Thanks to Anonymous.
108 * implemented map_h_mail_followup_to_addresses
109 * fixed a bug: masqmail -t with empty body caused weird
110 errors. Thanks to Anonymous.
111 * added do_save_envelope_to option
112 0.2.10:
113 * fixed a small bug in mserver.c (atoi) (Thanks to Gert Ohme)
114 * allow ';' in rval also if rval is unqoted
115 * write pidfiles to /var/run/masqmail{,-get}.pid
116 * now runs on freebsd without leaving zombies
117 * use setjmp() in readsock.c for timeouts
118 0.2.9:
119 * attempts to make it compile on freebsd
120 - works, but leaves zombies behind (will be done next release, I hope)
121 * removed some bashisms from configure.ac
122 * fixed segfault when called with -t under some circumstances
123 * some fixes about locking when fetching mail (yes, 0 _is_ a valid fd...)
124 * some speedups for uidl handling, and do not bloat log files any more
125 0.2.8:
126 * use flock() for locking in retrieving mails (get.c)
127 * can use /etc/mailname as host_name (for Debian)
128 * added ESMTP LOGIN
129 * made uidl handling even more safe
130 0.2.7:
131 * fixed stupid locking bug
132 * do not complain about 'unknown mode' when getting mail
133 * added italian version of failmsg.tpl (by Paolo)
134 * changed MIME boundaries in failmsg.tpl (Paolo)
135 * applied patches from Paolo (Gabel - ):
136 mostly replacing g_strdup_printf() with g_strdup(), a few ticks ('),
137 changed SENDER_LOCAL environment variable and fixed missing '\' in
138 debian/masqmail.ip-up
139 0.2.6:
140 * rediscovered previously undocumented allowed_return_paths option for
141 routes and made it usable for null sender addresses.
142 * added mbox_default, and {mbox,mda,maildir}_users options
143 * changes to vsnprintf function use in pop3_in.c and smtp_in.c (by egp)
144 * fixes to ip-up/ip-down scripts (by Ben Low)
145 * ENABLE_SMTP_SERVER define was incorrectly written as
146 ENABLE_MODE_SMTP (by Ben Low)
147 * fixed bug in get_header() in src/header.c (by egp)
148 0.2.5:
149 * PowerPC fix for varargs functions
150 * relay checking: if do_relay is set to false, do not allow non local
151 to non local addresses
152 * alias is always caseless for postmaster (disregarding
153 alias_local_caseless option)
154 * do not rebounce to postmaster
155 * implemented Maildir support
156 * rearranged append_file in local.c
157 * use sysexits.h for correct error reply for failure messages (mda only)
158 0.2.4:
159 * fixed uidl bug: uidl list was not written if a mail was not
160 fetched because it was in the list
161 * fixed bug in src/conf.c: g_free'd twice in destroy_route()
162 * security fix, Debian Bug#102092: 'Privilege escalation in masqmail
163 piped alias handling': fixed by using set[ug]id instead of sete[ug]id
164 in peopen.c (noted by Colin Phipps)
165 * limit count of children in pop3_in.c and wait for them
166 * ignore SIGPIPE signal
167 * docu updates by Uli Funcke
168 * find path to masqmail via --prefix or --exec-prefix option for configure
169 * implemented -v (log to stdout) option
170 0.2.3:
171 * local_addresses and not_local_addreses option (patch by Uli Funcke)
172 * replaced /usr/sbin/masqmail in fail_msg.c with /usr/sbin/sendmail
173 * typo in man pages (noted by Sebastian Inacker)
174 * hostnames can now begin with a digit (noted by CatcherInTheRye)
175 * chdir to '/' (on some systems getcwd() failes when changing uid)
176 * implemented lock_dir option
177 * ignore EINVAL after fdatasync
178 * configure option to link with libcrypto
179 * configure option to disable resolver support
180 * configure option to enable mserver support
181 * configure option to disable smtp server
182 * configure option to link glib statically
183 * msg_count option for get configuration
184 * bug fix: do not terminate if accept() return
185 error (patch by Edouard G. Parmelan)
186 * removed some files from package in
187 debian (by Edouard G. Parmelan))
188 * mailrm alias (by Edouard G. Parmelan)
189 * bug fix: removed superfluous g_free from
190 dot_unlock() (by Edouard G. Parmelan)
191 * write uidl list to temporary file first
192 * write uidl list each time a message was retrieved
193 (avoid duplicate mails when interupted)
194 0.2.2:
195 * fix of Debian Bug#92894 by Gregor Hoffleit
196 (correct error reply for lacking permissions)
197 * fixed 'last line missing' bug
198 * fixed spool locking bug: lock was deleted
199 if unsuccessful (unlocking it)
200 * added patch from Uli Funcke for log_user
201 (user getting all delivered mail)
202 * implemented get daemon
203 * create lock file when getting mail
204 * use tables for finding route and get lists
205 0.2.1:
206 * expand_h_sender_address now defaults to true (as described in docs)
207 * included documentation patch by Marc Herbert (masqmail call in ifup configuration)
208 * complain to log if failure message template cannot be opened
209 * errmsg_file defaults to /etc/masqmail/tpl/failmsg.tpl
210 * corrected error message for insufficient permissions (Debian Bug #92894)
211 * get mail depending on connection: -go option and online_get
212 0.2.0:
213 * included the debian/ directory from the debian package.
214 * added return_path option for get configuration
215 * added max_messages option for get configuration
216 * added independent program 'mservdetect', which can be used with
217 online_detect=pipe as replacement for online_detect=mserver
218 * added online detection method 'pipe'
219 * replaced configure option --with-conffile with --with-confdir, default
220 is now /etc/masqmail/ (/etc/masqmail/masqmail.conf for the conf file).
221 * added do_uidl_dele option (delete messages in uid listing on server)
222 * qualify address for get configuration.
223 * better checking for valid From: address when retrieving mail via pop3
224 and this is used as the return path.
225 * port number for mail_host in routes possible
226 * introduce delivery failue notices
227 * added addr_string() function for easy output of addresses
228 * expire spool lock files after a while (currently 300s)
229 * started development branch 0.2.x
231 0.1.12:
232 * previous fix auf AUTH broke it - reverted it partially and fixed it again
233 * bug fix in get.c: retrieval via pop from different server could cause mail to be lost
234 0.1.11:
235 * bug fix in smtp_out.c: of AUTH methods supplied by server, only the first was recognized
236 0.1.10:
237 * added support for IP address as mail_host in routes
238 * include <time.h> in masqmail.h to make it compile with glibc 2.2.2
239 0.1.9:
240 * fixed a few typos in man pages
241 * ignore -v option
242 * added patch from Bernhard Ehlers to program aliases runq, rmail, smtpd and in.smtpd
243 * added patch from Edouard G. Parmelan to correct default directories to install
244 * implemtented pipe, pipe_fromhack and pipe_fromline options
245 for routes (for protocol 'pipe')
246 * implememted 'pipe' protocol for routes
247 * memset to 0 of configuration structures (it is safer and easier)
248 * list of routes for each connection
249 * do not be picky about EOF if locally received message is not terminated by a dot
250 * speeded up accept.c for large messages (noted by Falko Flessner)
251 0.1.8:
252 * security bug fix (Debian Bug#81079): if local address cannot be
253 resolved, masqmail listened on an arbitrary port (fixed by Adel
254 Belhouane)
255 * bug fix: -d without argument caused segfault (Thanks to Jan Setzer)
256 * added more help for configure
257 * Iain Lea sent a spec file for Redhat. Thanks!
258 * lines can now be indefinetely long for mail acception (well, nearly...)
259 * implemented 'wrapper' options for routes and get configurations for ssl and maybe other purposes
260 * unified read_sockline() for smtp_out.c, smtp_in.c, pop3_in.c, accept.c and mserver.c
261 * escaping of quotes in configuration now possible and now works
262 correctly in alias file (Edouard G. Parmelan sent a patch, but I fixed it differently)
263 * kill -HUP seems to work now.
264 * close all file descriptors >= 3 on start (patch by Edouard G. Parmelan)
265 * replaced exit() with _exit where appropriate (children)
266 * added pipe_fromhack and pipe_fromline options
267 * added mda support and mda_fromhack and mda_fromline options
268 * user can delete his own mail if received via smtp from one of ident_trusted_nets
269 * bug fix in lookup.c: if the name that an MX points could not be resolved, delete entry
270 * added expand_h_sender_address option. expend_h_sender_domain should be obsolete now.
271 * unprivileged user can delete his own mail from queue if received locally
272 * replaced popen() in local.c with peopen() from snippet from sourceforge. Fixed a bug there.
273 0.1.7:
274 * debug option can be changed for privileged users only
275 * fixed a security hole: -C option for unprivileged users now implies
276 run_as_user and drops _all_ privileges
277 * environment variables for pipe transport
278 * wildcards for map_* options
279 * rearranged interface handling, IP addresses now possible for
280 listen_addresses and mserver_iface
281 * beautified masqmail.c
282 * revised uid and gid settings in spool.c and local.c (pipe transport)
283 * optionally use ident protocol (RFC 1413) and store user id in spool file
284 * proper spool file locking
285 0.1.6:
286 * record user id in spool file (though it is not used anywhere)
287 * command line option to remove messages from queue (-Mrm)
288 * command line option for version information (-bV)
289 0.1.5:
290 * implemented -F option
291 * removed bug in accept.c (dot bug, noted by Andre Masloch)
292 * location of main conf is now configurable with ./configure
293 (suggested by Greger Hoffleit). Default is /etc/masqmail.conf.
294 * remote_port defaults to 25 (noted by Andre Masloch)
295 * docu fixes: remote_port documented and typo fix (noted by Andre Masloch. Again :-))
296 * do not return failure on exit on delivery if mail queue was empty (noted by Andre Masloch)
297 * qualify -f address with host_name if unqualified (noted by Andre Masloch)
298 0.1.4:
299 * Jens Askengren discovered a segfaulting bug when parsing headers.
300 0.1.3:
301 * warn if pop/auth options are given, but compiled without support
302 * fixed allowed_rcpt_domains option (was broken since 0.1.0, but nobody noticed)
303 * exit with 1 if queue run fails for any reason (not for daemon)
304 * fail if alias file cannot be read
305 * better handling of SMTP SIZE error
306 * implemented alias_local_caseless option (suggestion by Andre Masloch)
307 * case insensitive domain matching (noted by Andre Masloch)
308 * removed nearly all warnings if compiled with -Wall
309 0.1.2:
310 * some changes in configure.in
311 * continue if get conf could not be read. Thanks to Edouard G. Parmelan!
312 * fixed another bug on pipe addresses in spool.c
313 * Andre Masloch found a bug in spool.c which caused a segfault on pipe addresses. Thanks!
314 0.1.1:
315 * Edouard G. Parmelan sent a patch for starting a queue run on start of daemon. Thanks!
316 * rpm packages for SuSE
317 * regard CFLAGS in Makefile.am
318 * implemtented -g <name> option
319 * be more verbose in pop3_get.c
320 * implemented -f option (set return path)
321 * fixed bug: "no debug file, msg was:" in smtp_out.c when debugging was off
322 * internal changes of smtp_out_log_failure()
323 * removed 'no log file' error
324 * complain if host name could not be resolved in connect.c
325 * added option resolve_list for route and get configurations
326 * removed bug in rcptlist_with_one_of_hostlist(): exited when
327 list was empty
328 0.1.0:
329 * included ESMTP AUTH support (as client), CRAM-MD5 only
330 * included pop3 client support, with UIDL and APOP, single drop only
331 * rearranged routing code:
332 - messages will be deleted from spool earlier, as soon as they are delivered
333 - unified online/offline delivery, making it more simple
335 0.0.13:
336 * ignore set_h_{from,reply_to}_domain if map_h_{from,reply_to}_addresses
337 is set and warn in logs about misconfiguration.
338 * fail if there are no recipients
339 * fixed bug: if called with -t, qualify recipient address with host_name
340 * fixed bug: if called with -bi, no longer wait for message on stdin
341 0.0.12:
342 * warn if spool file could not be deleted (Thanks to Alberto González
343 Palomo)
344 * fixed bug: set len for getsockname
345 * fixed bug: set local_net_routes to NULL if there is no local net
346 (noted by Frank Schnekenbuehl)
347 * say 'mail queue is empty' if mail queue is empty (Thanks to
348 Frank Schnekenbuehl)
349 * fixed bug: setegid in local.c (was noted by both Michael Piefel and
350 Alberto González Palomo)
351 0.0.11:
352 * if Bcc: headers have been removed (-t option), and there is no To:
353 or Cc: header,an empty Bcc: header will be created (RFC 822
354 compliance!)
355 * fixed bug: if rcpts are given on command line To: headers were
356 created, even if they already existed. This caused Bcc: recipient
357 addresses to be revealed if they were given on the cmd line.
358 Now a To: header is only created if there is no To:, Cc: or Bcc:
359 header. Thanks to Richard Clamp for pointing this out.
360 * fixed bug: segfault when -d option was given without arguments
361 * fixed bug: segfault when configuration file not found
362 0.0.10:
363 * removed -g option from Makefile
364 * fixed bug: -odq did not work, was broken in some earlier version
365 * addresses with leading '\' will not be expanded any further in aliases
366 * pipe transport implemented
367 * alias support implemented.
368 * changed permissions for queue runs again: got to be root,
369 mail or in group trusted.
370 * some configuration parameters can be read from files
371 * internal changes in routing logics/deliver code, preparing for
372 aliases support.
373 * Gregor Hoffleit sent another patch: use liblockfile if available
374 (Debian!) and DESTDIR will be used. Also updated the NEWS file. Thanks
375 again!
376 * define fdatasync to fsync if not available.
377 * lookup.c includes sys/types.h, some environments need this
378 * fixed bug in RFC 822 parsing: name in brackets after address
379 caused problems. Thanks to David Maslen.
380 * values in tables without leading spaces
381 0.0.9:
382 * anyone in group 'trusted' is now allowed to do queue runs. Thanks to
383 Alberto Gonzalez Palomo for the suggestion.
384 * changed umask for spool writing to 026.
385 * removed silly 'no rcpt domain for this route' message
386 * there is now a mailing list
387 (see http://www.innominate.org/mailman/listinfo/masqmail)
388 * Gregor Hoffleit sent a patch to make masqmail work with mutt (and
389 balsa and any other MUA that uses the mutt libs): it now supports
390 '--' in options. Thanks!
391 * accept_message() supports flag ACC_NO_RECVD_HDR (but this is not
392 used in masqmail).
393 * accept_message() is no longer responsible for queuing, makes it
394 easier to recycle the code for other projects (eg. jpilot-Mail)
395 0.0.8:
396 * added a FAQ page.
397 * removed all warnings, at least for egcs. Output of make looks
398 pretty now ;-)
399 * added allowed_mail_locals and not_allowed_mail_locals options for
400 routes.
401 * implemented folding und unfolding of headers (but currently used
402 for the Received: header only).
403 * corrected docs: should be 'online_detect', NOT 'detect_online'.
404 * mailq now gives information about the time mails spent in the queue,
405 the message size and the received host.
406 * added allowed_rcpt_domains option for routes.
407 * increased buffer size to 1024 for SMTP responses when delivering.
408 * fixed minor bug: slash in unquoted strings in conf parsing was not
409 allowed.
410 0.0.7:
411 * fixed a bug in smtp_out.c: sock was tested before it was initialized.
412 * fixed a bug in the configuration code: for statements in two
413 adjacent lines, the second was not recognized.
414 0.0.6:
415 * rewrote part of the configuration parsing code because it caused
416 problems with reading config statements on multiple lines.
417 * added a LF after each mail local mail spool file, as this
418 seems to be required for some MUAs and especially cucipop when
419 it reads mails. Otherwise mails seem to be concatenated. Thanks
420 to Dale Perkel for pointing this out.
421 0.0.5:
422 * added expand_h_sender_domain option (boolean, default: true)
423 because some clients use the Sender: address as the sender address
424 (though it should be the From: address).
425 * changed configure script to better recognize whether libresolv
426 should be linked or not.
427 * fixed a nasty bug: if masqmail -q was called (or qo <name>
428 and a mail was not delivered), the headers were lost! Problem was an
429 additional LF after received_host in the spool file.
430 0.0.4:
431 * 'From' hack is now a 'From ' hack.
432 * configure now accepts options --with-logdir=LOGDIR and
433 --with-spooldir=SPOOLDIR.
434 * the directories /var/masqmail and /var/spool/masqmail will now be
435 created with make install; user and group will be set appropriately
436 * configure now accepts options --with-user=USER and --with-group=GROUP
437 * dove into autoconf: configure now recognizes libc5 and links with
438 libresolv only for libc6 and defines getline for libc5
439 * fixed timeout code when sending. This was broken in some earlier
440 version.
441 0.0.3:
442 * fixed bug in spool write code: rcpt address was written incorrectly
443 to spool file under some circumstances (with a LF).
444 * added methods for online detection (file and mserver) and added code
445 to deliver immediately when mail is received at online time.
446 * too many changes to list: rearranged routing code, unified smtp
447 deliveries to the local net with online deliveries, so now route
448 configurations can be used for the local net. Also multiple messages
449 per connection for the local net possible. And reduced code size.
450 * fixed bug: if server does not use neither the esmtp size extension
451 nor pipelining, output after MAIL FROM was not flushed. So MM waited
452 forever for a response...
453 0.0.2:
454 * fixed bug: euid was not set properly for local delivery
455 * when debugging, it does not write the whole message to the log
456 any more.
457 * added 'From' hack
458 * qualified address for return path and recipients is now required
459 if not accepted locally, if locally accepted the addresses will be
460 qualified with host_name. (Thereby fixed a seg fault bug)
461 * added -i option (same as -oi)
462 * added more header rewriting (set_ and map_ options)
463 * fixed bug: potential seg fault when writing spool files because it
464 was not read properly
465 * multiple messages per connection now also if mail is sent directly
466 (same for local_nets is still missing, but I will use routes for these
467 anyway in the future)
468 * the queue will now be read in random order
469 * implemented multiple messages per connection (but only online
470 and if mail_host is defined)
471 * implemented rewriting of local parts in return path for online
472 delivery
473 * domain matching is no longer case sensitive (had to define
474 _GNU_SOURCE so that I could use FNM_CASEFOLD for fnmatch)
475 * added do_correct_helo option for routes
476 * fixed bug: corrected retrying hosts if one failed (connect.c).
477 0.0.1:
478 * fixed bug: seg fault when delivering online directly and there was
479 more than one rcpt to a single host.
480 * fixed bug: if mail was succesfully delivered in online mode to all
481 rcpts, and if there were additional (local) rcpts for which the mail
482 was not yet delivered, the mail was deleted from spool.
483 * rearranged smtp_out.c to prepare for multiple messages per connection
484 * log now shows the real host a message is sent to by SMTP (previously
485 it was the one looked for, now it is the one that was found by DNS)
486 * added NOOP, HELP and not recognized replies in smtp_in
487 * fixed bug: forgot to close dup_sock in accept_connect (listen.c)
488 * can now list the queue with the -bp option or when called as mailq
489 * debug_level is now configurable and -d option added
490 * corrected rfc821 address parsing and rearranged code
491 0.0.0:
492 * initial release