-
Notifications
You must be signed in to change notification settings - Fork 4
/
CHANGES
515 lines (375 loc) · 17.5 KB
/
CHANGES
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
This is the CHANGELOG for amavisd-milter.
20210103:
amavisd-milter-1.7.2:
Bug and compatibility fixies:
- The SMTP_AUTH* attributes are missing in policy_bank.
Thanks to: @damluk
20200906:
amavisd-milter-1.7.1:
Bug and compatibility fixies:
- An empty sender must always be enclosed in angle brackets.
20190227:
amavisd-milter-1.7.0:
amavisd-milter has been moved from SourceForge to to GitHub.
New features:
- Fork after initializing milter socket.
- Use client_name if available instead of hostname passed to xxfi_connect.
- Generate amamvisd-milter.8 from AMAVISD-MILTER.md.
Bug and compatibility fixies:
- Fixed compiler warnings.
- Converted indentation to spaces only.
- Removed obsoleted file amavisd-milter.spec.
20190203:
Generate amamvisd-milter.8 from AMAVISD-MILTER.md.
20190127:
Spamassassin's RDNS_NONE check requires in the synthesized Received:
header Forward-confirmed reverse DNS (FCrDNS) client name or "unknown"
if the FCrDNS is not available.
Sendmail sends the reverse DNS or IP address in square brackets both
in the client_host argument and the {client_name} macro. If the client
name is FCrDNS, the {client_reverse} macro is set to OK, otherwise to
FORGED, TEMP or FAIL.
Postfix sends a FCrDNS or "unknown" using the {client_name} macro.
Thanks to: Florian Pritz <[email protected]>
20190121:
The milter socket is created before amavisd-milter is daemonized.
This allows to return an error in case of impossibility to create
the milter socket and package maintainers can adjust milter socket
permissions immediatelly after the main process exits.
Thanks to: Matus Uhlar
20190116:
Removed obsoleted file amavisd-milter.spec.
20190106:
amavisd-milter moved to GitHub.
20150525:
Properly eliminate UTF8 characters in nroff output for man2html
and README.
20150524:
amavisd-milter-1.6.1:
Bug and compatibility fixies:
- Fixed bug when creating amavisd-new policy bank names.
20150524:
Fixed bug when creating amavisd-new policy bank names.
Thanks to: Christian Roessner <[email protected]>
20130519:
amavisd-milter-1.6.0:
New features:
- Added new amavisd-milter option -B which passes value of
{daemon_name} milter macro as amavisd-new policy bank name.
Bug and compatibility fixies:
- Added amavisd-milter.spec for compilation with rpmbuild.
- Fixed typo which prevents using LDFLAGS on Debian.
- Fixed missing definition of true and false in libmilter/mfapi.h.
20130422:
Added new amavisd-milter option -B which uses value of {daemon_name}
milter macro as amavisd-new policy bank name.
Thanks to: Andreas Schulze
20130125:
Included amavisd-milter.spec for compilation with rpmbuild.
Thanks to: Jo Rhett <[email protected]>
20120727:
Include stdbool.h before libmilter/mfapi.h in compat/compat.h because
libmilter/mfapi.h not define true and false.
20101105:
Fixed typo in aclocal/ax_path_milter.m4 which prevents using LDFLAGS
on Debian.
Thanks to: Harald Jenny <[email protected]>
20100502:
amavisd-milter-1.5.0:
Bug and compatibility fixies:
- Amavisd-new 2.7.0 introduce new AM.PDP response log_id.
20100501:
Amavisd-new 2.7.0 introduce new AM.PDP response log_id.
Thanks to: Andreas Schulze
20100131:
amavisd-milter-1.4.1:
New features:
- Added new amavisd-milter option -P which causes that mails pass
through when amavisd-new fails.
Bug and compatibility fixies:
- Debian installs libmilter.a to /usr/lib/libmilter.
- sendmail 8.14 introduces three new libmilter callbacks.
20091029:
amavisd-milter(8) manual page has been improved:
- Added link to milter documentation.
- Added socket name format description for sendmail and amavisd-new
socket.
20091003:
Added new amavisd-milter option -P which causes that mails pass through
when amavisd-new fails.
Thanks to: Uli Schellhaas <[email protected]>
20090803:
Bug fix - sendmail 8.14 introduces three new callbacks.
20090601:
Compatibility fix - Debian installs libmilter.a to /usr/lib/libmilter.
Thanks to: Simon Hobson <[email protected]>
20081205:
amavisd-milter-1.4.0:
New features:
- Added new amavisd-milter option -q which sets milter socket backlog
used by listen(2).
- Local state directory (default /var/amavis) is tunable via configure
option:
--localstatedir=</DIR> - absolute path to local state
directory.
- Working directory (default local state directory) is tunable via
configure option:
--with-working-directory=<SUBDIR> - subdirectory of local
state directory.
--with-working-directory=</DIR> - absolute path to working
directory.
Bug and compatibility fixies:
- amavisd-milter convert CRLF to LF in mail body to support amavisd-new
integrated DKIM signing and verification.
- Fixed memory leak in fts_alloc() on Solaris.
- Solaris doesn't have dirfd().
- Solaris 9 and older doesn't have sem_timedwait.
20081109:
Local state directory (default /var/amavis) is tunable via configure
option: --localstatedir=<DIR>
Working directory (default local state directory) is tunable via
configure option:
--with-working-directory=<SUBDIR> subdirectory of local state directory
--with-working-directory=</DIR> absolute path to working directory
20081108:
Added new amavisd-milter option -q which sets milter socket backlog
used by listen(2).
20081029:
Compatibility fix - Solaris 9 and older doesn't have sem_timedwait.
Use sem_trywait if sem_timedwait isn't available.
Thans to: Henrik Krohns <[email protected]>
20081029:
Memory leak in fts_alloc() on Solaris fixed.
Luke Mewburn wrote:
In examining the code, it appears that the implementation of
fts_alloc() can leak the struct stat fts_statp if you're not using
ALIGNBYTES() && ALIGN(), which I guess that Solaris doesn't have.
Given that the leaked buffers are 160 bytes in size (184960/1156),
I suspect that's sizeof(struct stat) and our culprit.
Thanks to: Henrik Krohns <[email protected]>
Submitted by: Luke Mewburn <[email protected]>
20081028:
Compatibility fix - Solaris doesn't have dirfd().
Thanks to: Henrik Krohns <[email protected]>
20080701:
Sync fts_open.c with the NetBSD libc (upstream) fts.c, which brought
in a few fixes, including one that looked like a potential memory leak.
Thanks to: Luke Mewburn <[email protected]>
Properly check -D option parameters.
Thanks to: Henrik K <[email protected]>
20080310:
Convert CRLF to LF in mail body, because sendmail send always CRLF,
but amavisd-new requires that a message on a temporary file is in
a native text format of a host's file system, i.e. with LF terminated
lines on Unix or Linux.
Thanks to: David Schweikert <[email protected]> and Mark Martinec
20070923:
amavisd-milter-1.3.1
Bug fixies:
- Properly calculate timezone offset for synthesized Received header
on platforms where gmtime() and localtime() returns the pointer to
the same static struct.
20070923:
Better explained -D option.
20070915:
In mlfi.c:mlfi_envfrom() the gmtime() and localtime() call returns the
pointer to the same static struct. Thus pointers gt and lt are
identical and the UTC offset is always +0000 which is bogus.
Thanks to: Curtis Doty <[email protected]>
20070902:
amavisd-milter-1.3.0
New features:
- Implemented AM.PDP request attribute policy_bank (amavisd-new
2.5.0 or higher is required). Currently SMTP_AUTH, SMTP_AUTH_<MECH>
and SMTP_AUTH<MECH>_<BITS> policy bank names are sent when the remote
client is authenticated.
- Added new amavisd-milter option -D client|server which allow
personalized header or body modifications.
Bug fixies:
- fixed bug when amavisd communication buffer is growing.
Compatibility:
- properly get queue id when amavisd-milter is used with postfix.
Performance:
- improved performance under heavy load.
20070901:
Performance optimization: use sem_timedwait instead of
sem_trywait+sleep(1) for amavisd connection lock.
Requested by: David Schweikert <[email protected]>
20070831:
Added new amavisd-milter option -D client|server which allow
personalized header or body modifications.
Requested by: Brian C. Huffman <[email protected]>
Fixed bug when amavisd communication buffer is growing.
Thanks to: Michael Moeller <[email protected]>
20070729:
Better compatibility with Postfix: it does give information about
the queue-number only after the RCPT-TO-phase.
Thanks to: David Schweikert <[email protected]>
20061219:
amavisd-milter-1.2.1
New features:
- Implemented AM.PDP request attribute 'protocol_name'.
Add folowing line to your sendmail.mc:
define(`confMILTER_MACROS_ENVFROM', confMILTER_MACROS_ENVFROM`, r, b')
Limited support for sendmail 8.12:
- smfi_addheader() is used instead of smfi_insheader() for insheader
and addheader AM.PDP responses. This works well with amavisd-new
2.4.3 or newer.
- smfi_progress() isn't called when amavisd-milter wait for amavisd-new
communication socket.
- AM.PDP response quarantine isn't implemented.
Bug fixies:
- add synthesized Received header for Spamassassin.
- properly handle IPv6 client address.
20061217:
Added support for IPv6 addresses.
Thanks to: Mark Martinec <[email protected]>
20061206:
Limited support for legacy sendmail 8.12:
- AM.PDP v2 response attribute quarantine isn't implemented.
Thanks to: Adam Gibson <[email protected]>
20061203:
Added info about user authentication to synthesized received header.
Format of synthesized received header is now:
Received: from <hello> (<rdns> [<ip>]) (authenticated bits=<bits>)
by <hostname> (<rdns> [<ip>])
with <protocol> (authenticated as <user>) id <qid>;
<date>
(envelope-from <sender>)
Thanks to: Jo Rhett <[email protected]>
20061113:
Limited support for legacy sendmail 8.12:
- amavisd-milter don't call smfi_progress when wait for amavisd-new
communication socket.
- amavisd-milter use smfi_addheader instead of smfi_insheader for
insheader and addheader AM.PDP response attributes. This work well
with amavisd-new 2.4.3 or newer. Older versions are affected with
bug fixed on 20060714.
20061017:
Implemented AM.PDP request attribute protocol_name.
amavisd-milter adds Received header for the current connection to
the mail file as the first line because without the most recent
Received header, Spamassassin reports lots of false hits on rules
checking where the message was received from.
Thanks to: Jo Rhett <[email protected]>
NOTE: Please add these line to your sendmail.mc:
define(`confMILTER_MACROS_ENVFROM', confMILTER_MACROS_ENVFROM`, r, b')
20061008:
amavisd-milter-1.2.0
Improved amavisd connection locking. When amavisd connection is closed,
lock is removed immediately.
20061004:
Implemented AM.PDP protocol version 2. New response attributes
are version_server, insheader and quarantine.
Tru64 portability fix: don't use variadic macros.
20060714:
Fixed bug with addheader: amavisd-new assume that header is added
to the end of headers but sendmail insert it before first occurence
of the header with same name.
Submitted by: Krzysztof Oledzki <[email protected]>
20060616:
Amavisd communication buffer is now dynamically allocated.
MAXAMABUF is maximum buffer length, AMABUFCHUNK is initial length
and reallocation step. Buffer is allocated for every connection.
Tru64 portability fix: replace missing daemon(8) function.
20060414:
amavisd-milter-1.1.2
MAXAMABUF is increased from 2048 to 65536 because it must be greater
then confMAX_HEADERS_LENGTH which is usually set to 32768. If mail
header is longer than MAXAMABUF, mail is permanently rejected with
temporary fail return code and will never reach the recipents.
Added new configure option --with-sendmail=<DIR> which change base
directory in which are placed libmilter header files and library
(e.q. /usr/local on FreeBSD when you using sendmail from ports).
20060125:
amavisd-milter-1.1.1
Portability release. amavisd-milter-1.1 now can be compiled on
FreeBSD, NetBSD, OpenBSD, Linux and Solaris. Please report
success or problems on the users mailing list.
20060125:
Linux and Solaris portability fix: sem_t is declared as pointer on
*BSD but as structure on Linux and Solaris.
Solaris portability fix: search sem_init in librt.
Solaris portability fix: replace missing fts.h API.
20060124:
amavisd-milter-1.1.0
New features:
- amavisd-milter can limit number of concurrent connections
to amavisd-new
- amavisd-milter is responsible to remove message work
directory
20060124:
README is now generated from amavisd-milter(8) manual page.
Remove all files and directories in working directory because
amavisd-new sometimes don't do it (e.q. when antivirus fail).
20060123:
Limit maximum concurrent connections to amavisd:
amavisd-milter -m 4 -M 600
means that there is limit to maximum 4 concurrent connections to
amavisd and wait maximum 10 minutes (10*60 sec) for connection to
amavisd. When connection isn't available, amavisd-milter sleep for
1 sec. Every minute of waiting is sendmail triggered via
smfi_progress. When time limit run out then amvisd-milter return
temporary fail.
20060113:
amavisd-milter-1.0.4
Bugfix release. Added manual page amavisd-milter(8).
INCOMPATIBILITY with 1.0.3 and previous versions:
Default working directory was changed from /var/amavis/tmp
to /var/amavis to accordance with amavisd-new $helpers_home
default value. To go back to the previous behaviour run
amavisd-milter with option -w /var/amavis/tmp
20060109:
When stopping amavisd-new one (maybe not always just one) of milter
threads amavisd-milter start to eat up a cpu time.
Submitted by: Grzegorz Piszczek <[email protected]>
Fixed bug in mlfi_close(): amavisd-milter dies randomly due to
segmentation fault.
Submitted by: Grzegorz Piszczek <[email protected]>
20051225:
Added amavisd-milter(8) manual page. README and website are
synchronized with this manual page.
Changed default working directory to /var/amavis (default value
for amavisd-new helpers home directory).
20051204:
Some users reports problem with ENOMEM in amavis_response().
Consequently MAXAMABUF is increased from 1024 to 2048, amavis_request()
and amavis_response() returns EOVERFLOW when buffer size isn't enough
and truncated response is logged when debug level is >= 3.
20051202:
Fixed default path to pidfile in README and website.
Submitted by: Jerzy Sakol <[email protected]>
20050829:
Added amavisd-new configuration section to README.
20050701:
amavisd-milter-1.0.3
Bugfix release. Properly set amavisd connection timeout.
20050701:
Set amavisd_timeout instead of mlfi_timeout for -T option.
Submitted by: Mr.Sompis Junsui <[email protected]>
20050701:
Unlink old pid file on start.
20050605:
amavisd-milter-1.0.2
Bugix release. Fix memory leak in mlfi_cleanup.
20050529:
amavisd-milter-1.0.1
Portability release. Now can be compiled on Debian 3.0, Fedora FC2 and
FC3, OpenBSD 3.4 and Solaris 9. Tested on Sourceforge compile farm.
Please report success or problems on the users mailing list:
http://lists.sourceforge.net/lists/listinfo/amavisd-milter-users
20050522:
Define EILSEQ on systems without it.
20050520:
mkdtemp(3) compatibility function.
20050512:
Initial version of README.
20050512:
Better portability with autoconf macros from
http://ac-archive.sourceforge.net/
20050510:
strlcpy(3) compatibility function.
20050511:
amavisd-milter-1.0.0
First public release. Fully tested on FreeBSD 5.3.