Книга: Fedora™ Unleashed, 2008 edition
Setting Message Delivery Intervals
Setting Message Delivery Intervals
As mentioned earlier, Sendmail typically attempts to deliver messages as soon as it receives them, and again at regular intervals after that. If you have only periodic connections to the Internet, as with a dialup connection, you likely would prefer that Sendmail hold all messages in the queue and attempt to deliver them at specific time intervals or at your prompt. You can configure Sendmail to do so by adding the following line to sendmail.mc
:
define(`confDELIVERY_MODE', `d')dnl
This line causes Sendmail to attempt mail delivery only at regularly scheduled queue processing intervals (by default, somewhere between 20 and 30 minutes).
However, this delay time might not be sufficient if you are offline for longer periods of time. In those situations, you can invoke Sendmail with no queue processing time. For example, by default, Sendmail might start with the following command:
# sendmail -bd -q30m
This tells Sendmail that it should process the mail queue (and attempt message delivery) every 30 minutes. You can change 30 to any other number to change the delivery interval. If you want Sendmail to wait for a specific prompt before processing the queue, you can invoke Sendmail with no queue time, like this:
# sendmail -bd -q
This command tells Sendmail to process the queue once when it is started, and again only when you manually direct it to do so. To manually tell Sendmail to process the queue, you can use a command like the following:
# sendmail -q
TIP
If you use networking over a modem, there is a configuration file for pppd
called ppp.linkup
, which is located in /etc/ppp
. Any commands in this file are automatically run each time the PPP daemon is started. You can add the line sendmail -q
to this file to have your mail queue automatically processed each time you dial up your Internet connection.
- 9.9.7 CAN Message Transmission
- Setting up default policies
- Setting up user specified chains in the filter table
- Для чего нужны папки Windows, Documents and Settings, Program Files и Temp?
- После переустановки Windows нет доступа к папке Мои документы или нельзя удалить оставшуюся от старой системы папку Docu...
- 8.4.2. Sending and Receiving Messages
- CHAPTER 22 Setting Up a Proxy Server
- Setting the Time Zone
- Setting Up an SSH Server
- Editing Printer Settings
- Setting Up a Telnet Server
- Setting Up Guest Operating Systems