On Tue, 27 Jan 2009 14:30:33 +0300 Victor Wagner wrote: > On 2009.01.27 at 13:35:49 +0300, Иван Лох wrote: > >> On Tue, Jan 27, 2009 at 01:19:28PM +0300, Victor Wagner wrote: >> > On 2009.01.27 at 02:00:35 +0300, Иван Лох wrote: >> > > IMHO сейчас msmtp в большинстве случаев достаточно стало. ... >> и настройку envelope из from или явно). Единственно, что очереди >> нет. > > Это плохо.
К msmtp прилагется набор скриптов (msmtpqueue), которые реализуют примитивный аналог очереди 1. msmtp-enqueue.sh Let your MUA "send" mails with this script. It will store all mails in a queue directory for later delivery. This script will save two files for each mail: one contains the mail, the other one contains the command line for msmtp (including options and the recipients). Thus you can use all msmtp options with this script. Example (using Mutt): In your Mutt configuration file, replace set sendmail="/path/to/msmtp [options]" with set sendmail="/path/to/msmtp-enqueue.sh [options]" This script cannot detect errors in its command line or the msmtp configuration file. You won't see error messages before msmtp-runqueue.sh runs msmtp to send the mails. So test your msmtp configuration before using msmtp-enqueue.sh. 2. msmtp-runqueue.sh Run this script when you are online to send all mails in the queue directory. It will use the saved msmtp command line for each mail. Mails sent successfully will be deleted from the queue directory. Mails whose delivery failed will be left untouched; you may want to edit them, delete them by hand or simply run msmtp-runqueue.sh at a later time. 3. msmtp-listqueue.sh This script lists all the mails in the queue. Но если очередь нужна, то наверное действительно, лучше полноценный MTA поставить и не париться... -- Mikolaj Golub -- To UNSUBSCRIBE, email to debian-russian-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org