masqmail-0.2

view ChangeLog @ 71:98cda87105a7

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