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

3.13 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.13.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 MDA Scripting, for a detailed discussion of the scripting feature.

3.13.2 putmail configuration

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

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

The utility also accepts all MDA configuration statements: See Conf-mda.

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