GNU Mailutils Manual (split by node):   Section:   Chapter:FastBack: Programs   Up: Programs   FastForward: Libraries   Contents: Table of ContentsIndex: Function Index

3.14 putmail

The putmail utility reads a message from its standard input and delivers it to the specified mailbox URL. The usage is:

putmail URL

For example, to deliver mail to a local mailbox /var/spool/mail/test:

putmail /var/spool/mail/test

Of course, this would work only it the test mailbox is writable for the user invoking putmail.

The smtp mailbox scheme can be used for remote delivery. For example:

putmail 'smtp://mail.example.org;to=ovr'

The program will initiate SMTP dialog with the server ‘mail.example.org’ and will send the message from its standard input to the user ‘ovr’ on that server.