~ubuntu-branches/ubuntu/hardy/postfix/hardy-security

« back to all changes in this revision

Viewing changes to src/pipe/pipe.c

  • Committer: Bazaar Package Importer
  • Author(s): LaMont Jones
  • Date: 2007-04-15 16:00:44 UTC
  • mfrom: (1.1.13 upstream)
  • Revision ID: james.westby@ubuntu.com-20070415160044-xl1vjlhf9mdmf43a
Tags: 2.4.0-3
Have preinst get user approval before installing (and being broken) on a
pre-2.6 kernel.  Closes: #417530

Show diffs side-by-side

added added

removed removed

Lines of Context:
29
29
/*
30
30
/*      To prevent Postfix from sending multiple recipients per delivery
31
31
/*      request, specify
32
 
/*
33
 
/* .ti +4
34
 
/*      \fItransport\fB_destination_recipient_limit = 1\fR
 
32
/* .sp
 
33
/* .nf
 
34
/*          \fItransport\fB_destination_recipient_limit = 1\fR
 
35
/* .fi
35
36
/*
36
37
/*      in the Postfix \fBmain.cf\fR file, where \fItransport\fR
37
38
/*      is the name in the first column of the Postfix \fBmaster.cf\fR
118
119
/*      by, for example, \fBUUCP\fR software.
119
120
/* .RE
120
121
/* .IP "\fBnull_sender\fR=\fIreplacement\fR (default: MAILER-DAEMON)"
121
 
/*      Replace the null sender address, which is typically used
122
 
/*      for delivery status notifications, with the specified text
 
122
/*      Replace the null sender address (typically used for delivery
 
123
/*      status notifications) with the specified text
123
124
/*      when expanding the \fB$sender\fR command-line macro, and
124
125
/*      when generating a From_ or Return-Path: message header.
125
126
/*
135
136
/*      Caution: a null sender address is easily mis-parsed by
136
137
/*      naive software. For example, when the \fBpipe\fR(8) daemon
137
138
/*      executes a command such as:
138
 
/*
139
 
/* .ti +4
140
 
/*      command -f$sender -- $recipient (\fIbad\fR)
141
 
/*
 
139
/* .sp
 
140
/* .nf
 
141
/*          command -f$sender -- $recipient (\fIbad\fR)
 
142
/* .fi
 
143
/* .IP
142
144
/*      the command will mis-parse the -f option value when the
143
145
/*      sender address is a null string.  For correct parsing,
144
146
/*      specify \fB$sender\fR as an argument by itself:
145
 
/*
146
 
/* .ti +4
147
 
/*      command -f $sender -- $recipient (\fIgood\fR)
148
 
/*
 
147
/* .sp
 
148
/* .nf
 
149
/*          command -f $sender -- $recipient (\fIgood\fR)
 
150
/* .fi
 
151
/* .IP
149
152
/*      This feature is available with Postfix 2.3 and later.
150
153
/* .IP "\fBsize\fR=\fIsize_limit\fR (optional)"
151
154
/*      Messages greater in size than this limit (in bytes) will
303
306
/*      Limit the time for delivery to external command, for delivery via
304
307
/*      the named \fItransport\fR.
305
308
/*      The limit is enforced by the pipe delivery agent.
 
309
/*
 
310
/*      Postfix 2.4 and later support a suffix that specifies the
 
311
/*      time unit: s (seconds), m (minutes), h (hours), d (days),
 
312
/*      w (weeks). The default time unit is seconds.
306
313
/* MISCELLANEOUS CONTROLS
307
314
/* .ad
308
315
/* .fi
325
332
/*      The UNIX system account that owns the Postfix queue and most Postfix
326
333
/*      daemon processes.
327
334
/* .IP "\fBmax_idle (100s)\fR"
328
 
/*      The maximum amount of time that an idle Postfix daemon process
329
 
/*      waits for the next service request before exiting.
 
335
/*      The maximum amount of time that an idle Postfix daemon process waits
 
336
/*      for an incoming connection before terminating voluntarily.
330
337
/* .IP "\fBmax_use (100)\fR"
331
 
/*      The maximal number of connection requests before a Postfix daemon
332
 
/*      process terminates.
 
338
/*      The maximal number of incoming connections that a Postfix daemon
 
339
/*      process will service before terminating voluntarily.
333
340
/* .IP "\fBprocess_id (read-only)\fR"
334
341
/*      The process ID of a Postfix command or daemon process.
335
342
/* .IP "\fBprocess_name (read-only)\fR"
396
403
#include <recipient_list.h>
397
404
#include <deliver_request.h>
398
405
#include <mail_params.h>
 
406
#include <mail_version.h>
399
407
#include <mail_conf.h>
400
408
#include <bounce.h>
401
409
#include <defer.h>
714
722
     * Figure out the command time limit for this transport.
715
723
     */
716
724
    config->time_limit =
717
 
        get_mail_conf_int2(service, "_time_limit", var_command_maxtime, 1, 0);
 
725
        get_mail_conf_time2(service, "_time_limit", var_command_maxtime, 's', 1, 0);
718
726
 
719
727
    /*
720
728
     * Give the poor tester a clue of what is going on.
1192
1200
    flush_init();
1193
1201
}
1194
1202
 
 
1203
MAIL_VERSION_STAMP_DECLARE;
 
1204
 
1195
1205
/* main - pass control to the single-threaded skeleton */
1196
1206
 
1197
1207
int     main(int argc, char **argv)
1201
1211
        0,
1202
1212
    };
1203
1213
 
 
1214
    /*
 
1215
     * Fingerprint executables and core dumps.
 
1216
     */
 
1217
    MAIL_VERSION_STAMP_ALLOCATE;
 
1218
 
1204
1219
    single_server_main(argc, argv, pipe_service,
1205
1220
                       MAIL_SERVER_TIME_TABLE, time_table,
1206
1221
                       MAIL_SERVER_PRE_INIT, pre_init,