GNU Mailutils Manual (split by section):   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.

3.14.1 putmail options

-f email
-r email
--from=email

Specify the sender address. If not used, the current user name will be used.

-l name
--language=name

Define scripting language for the next --script option. Valid arguments are ‘sieve’, ‘scheme’ and ‘python’.

--message-id-header=header

Use this header to identify messages when logging Sieve actions

-s name
--script=name

Set the name of the user-defined mail filter. See Scripting in mda, for a detailed discussion of the scripting feature.

3.14.2 putmail configuration

The behavior of putmail is affected by the following configuration statements:

StatementReference
debugSee The debug Statement.
mailboxSee The mailbox Statement.
lockingSee The locking Statement.
pamSee PAM Statement.
sqlSee The sql Statement.
virtdomainSee The virtdomain Statement.
radiusSee The radius Statement.
ldapSee The ldap Statement.
authSee The auth Statement.
mailerSee The mailer Statement.

The utility also accepts all MDA configuration statements: See MDA Configuration File Summary.

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