Chapter 13. Mail Delivery to M-Store Mailbox Tool ( deliver)

deliver Synopsis

deliver [-g] [-f config_file] [-F lmtp-mail-from] receipient

deliver will not run if any database files are missing; in such a case a backup containing all database files must be restored.

deliver reads a RFC 822 message from standard input and delivers it to the receipient.

By default, deliver rejects messages containing non-ASCII characters in the message headers. To maintain backward compatibility with MUA software that does not properly MIME-encode non-ASCII header data, add the line allow8bitheaders on to ms.conf. This will force deliver to accept the message by stripping the high-bit from any non-ASCII characters.

deliver delivers to a user's INBOX. To deliver to a specific mailbox, append the mailbox name to the recipient's local name. For example:

joe+important/March2000@foobar.com

will deliver the message to the mailbox: user/joe/important/March2000, where joe@foobar.com is a valid user in the message store. To deliver a shared mailbox, append the mailbox name to lmtp-shared-name name as defined in ms.conf. For example:

shared+bugreport@foobar.com

This method of delivery is known as Plus-Addressing. Plus-Addressing is not a standard, but it does result in a valid RFC822 address:

Table 13-1. deliver  Options (required)

Option

Description

-g

Deliver the message regardless of the recipient's quota. The configuration option lmtp-enable-overquota-delivery must be enabled for overquota delivery to succeed.

-f config_file

Specify a non-default location for M-Store's configuration file.

-F lmtp-mail-from

Use lmtp-mail-from as the address in the LMTP MAIL FROM command. This will also insert a Return-Path: lmtp-mail-from header into the message.



Note: If the -F option is not specified, then the lmtp-mail-from address is read from the Return-Path: header in the message itself.

If any userid arguments are supplied, a copy of the message is delivered into each of the named user's INBOX folders.

Examples

Deliver a message to joe@example.com:

deliver joe@example.com

Deliver a message with a return address of fred@foobar.com to the mailbox user/joe/important/March2000 in the example.com domain:

deliver -F fred@foobar.com+important/March2000@foobar.com

Deliver a message with a return address of fred@foobar.com into the shared mailbox bugreports in the foobar.com domain:

deliver -F fred@foobar.com shared+bugreports@foobar.com