GNU Mailutils |
|
General-Purpose Mail Package |
Official GNU Software |
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.
This document was generated on January 2, 2022 using makeinfo.
Verbatim copying and distribution of this entire article is permitted in any medium, provided this notice is preserved.