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

« back to all changes in this revision

Viewing changes to src/postdrop/postdrop.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:
235
235
    int     saved_errno;
236
236
    int     from_count = 0;
237
237
    int     rcpt_count = 0;
 
238
    int     validate_input = 1;
238
239
 
239
240
    /*
240
241
     * Fingerprint executables and core dumps.
453
454
                   && rec_type != REC_TYPE_EOF)
454
455
                if (rec_type == REC_TYPE_ERROR)
455
456
                    msg_fatal("uid=%ld: malformed input", (long) uid);
 
457
            validate_input = 0;
456
458
            errno = saved_errno;
457
459
            break;
458
460
        }
478
480
     * the segment terminator records, there aren't any other mandatory
479
481
     * records in a Postfix submission queue file.
480
482
     */
481
 
    if (from_count == 0 || rcpt_count == 0) {
 
483
    if (validate_input && (from_count == 0 || rcpt_count == 0)) {
482
484
        status = CLEANUP_STAT_BAD;
483
485
        mail_stream_cleanup(dst);
484
486
    }