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

« back to all changes in this revision

Viewing changes to src/smtpd/smtpd_check.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:
3192
3192
    const char *domain;
3193
3193
    const char *reply_addr;
3194
3194
    const char *byte_codes;
 
3195
    const char *suffix;
3195
3196
 
3196
3197
    /*
3197
3198
     * Extract the domain, tack on the RBL domain name and query the DNS for
3203
3204
            return (SMTPD_CHECK_DUNNO);
3204
3205
    } else
3205
3206
        domain = what;
3206
 
    if (domain[0] == 0)
 
3207
 
 
3208
    /*
 
3209
     * XXX Some Spamhaus RHSBL rejects lookups with "No IP queries" even if
 
3210
     * the name has an alphanumerical prefix. We play safe, and skip both
 
3211
     * RHSBL and RHSWL queries for names ending in a numerical suffix.
 
3212
     */
 
3213
    if (domain[0] == 0 || valid_hostname(domain, DONT_GRIPE) == 0)
 
3214
        return (SMTPD_CHECK_DUNNO);
 
3215
    suffix = strrchr(domain, '.');
 
3216
    if (alldig(suffix == 0 ? domain : suffix + 1))
3207
3217
        return (SMTPD_CHECK_DUNNO);
3208
3218
 
3209
3219
    query = vstring_alloc(100);
3834
3844
                         name);
3835
3845
            else {
3836
3846
                cpp += 1;
3837
 
                if (state->helo_name
3838
 
                    && valid_hostname(state->helo_name, DONT_GRIPE))
 
3847
                if (state->helo_name)
3839
3848
                    status = reject_rbl_domain(state, *cpp, state->helo_name,
3840
3849
                                               SMTPD_NAME_HELO);
3841
3850
            }
5239
5248
    string_init();
5240
5249
    int_init();
5241
5250
    smtpd_check_init();
 
5251
    smtpd_expand_init();
5242
5252
    smtpd_state_init(&state, VSTREAM_IN, "smtpd");
5243
5253
    state.queue_id = "<queue id>";
5244
5254