masqmail-0.2

view ChangeLog @ 41:5432f13c7e58

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