~ubuntu-branches/ubuntu/saucy/postfix/saucy

« back to all changes in this revision

Viewing changes to src/cleanup/cleanup_milter.c

  • Committer: Bazaar Package Importer
  • Author(s): LaMont Jones, Scott Kitterman, Friedemann Stoyan, Wietse Venema, LaMont Jones
  • Date: 2011-08-20 13:48:59 UTC
  • mfrom: (1.1.31 upstream) (39.1.3 oneiric)
  • Revision ID: james.westby@ubuntu.com-20110820134859-qdvjklj481539yvg
Tags: 2.8.4-1
[Scott Kitterman]

* Switch to debhelper 7, use dh_prep instead of dh_clean -k

[Friedemann Stoyan]

* create chroots with the right ca_path.  Closes: #627266

[Wietse Venema]

* Upstream fix release
  - Performance: a high load of DSN success notification requests
    could slow down the queue manager.
  - Bugfix (introduced Postfix 2.3 and Postfix 2.7): the Milter
    client reported some "file too large" errors as temporary
    errors.
  - Bugfix (introduced in Postfix 1.1, duplicated in Postfix
    2.3, unrelated mistake in Postfix 2.7): the local(8) delivery
    agent ignored table lookup errors in mailbox_command_maps,
    mailbox_transport_maps, fallback_transport_maps and (while
    bouncing mail to alias) alias owner lookup.
  - Bugfix (introduced Postfix 2.6 with master_service_disable)
    loop control error when parsing a malformed master.cf file.
  - Bugfix (introduced: Postfix 2.7): "sendmail -t" reported
    "protocol error" after queue file write error.
  - Linux kernel version 3 support.
  - Workaround: some Spamhaus RHSBL rejects lookups with "No
    IP queries" even if the name has an alphanumerical prefix.
    We play safe, and skip both RHSBL and RHSWL queries for
    names ending in a numerical suffix.

[LaMont Jones]

* apport, fix FTBFS on linux 3.0 - From ubuntu.
* SASL vs multiarch.  Closes: #638443, #638045
* Update init.d script to handle multi_instance setups.  Closes: #560682
* Do not try to update resolv.conf when main.cf does not exist.  LP: #530323
* Better handle bad map names in postmap -u.  LP: #647647
* Drop apport usage, since debian lacks it and failing to build is bad.

Show diffs side-by-side

added added

removed removed

Lines of Context:
214
214
 
215
215
/*#define msg_verbose   2*/
216
216
 
 
217
static void cleanup_milter_set_error(CLEANUP_STATE *, int);
 
218
 
217
219
#define STR(x)          vstring_str(x)
218
220
#define LEN(x)          VSTRING_LEN(x)
219
221
 
431
433
     * later.
432
434
     */
433
435
    if ((new_meta_offset = vstream_fseek(state->dst, (off_t) 0, SEEK_END)) < 0) {
434
 
        msg_warn("%s: seek file %s: %m", myname, cleanup_path);
435
 
        state->errs |= CLEANUP_STAT_WRITE;
 
436
        cleanup_milter_set_error(state, errno);
436
437
        return;
437
438
    }
438
439
    if (state->filter != 0)
452
453
     * value with the location of the new meta record.
453
454
     */
454
455
    if (vstream_fseek(state->dst, state->append_meta_pt_offset, SEEK_SET) < 0) {
455
 
        msg_warn("%s: seek file %s: %m", myname, cleanup_path);
456
 
        state->errs |= CLEANUP_STAT_WRITE;
 
456
        cleanup_milter_set_error(state, errno);
457
457
        return;
458
458
    }
459
459
    cleanup_out_format(state, REC_TYPE_PTR, REC_TYPE_PTR_FORMAT,