Next: sendmail script hostinfo, Previous: sendmail script examples, Up: sendmail script [Contents][Index]
The synopsis is:
sendmail-mbfl.sh \ --envelope-from=<ADDRESS> \ --envelope-to=<ADDRESS> \ [--message=<SOURCE> | --test-message] [options]
the script sends an email address, and it can do a plain session or use a connector. Options description follows.
-Faddress
--envelope-from=address
Select the MAIL FROM
envelope address. If this option is used multiple times: the last one
wins.
-Taddress
--envelope-to=address
Select the RCPT TO
envelope address. This option can be used multiple times: each
address is appended to a list of recipients.
-Msource
--message=source
Select the source of the whole email message. If source is a file pathname, that file is read
and used as data; if source is -
, the message is read from the standard input channel.
It defaults to -
.
--test-message
Send a test message with a hard–coded body part. This option supersedes --message.
--host=host
Select the SMTP server host name. It defaults to localhost
.
--host-info=file
Select a file from which to read host and port informations.
-pport
--port=port
Select the SMTP server TCP port; this option supersedes --host-info. It defaults to
25
.
--plain
--tls
--starttls
Establish a plain session, TLS session with immediate bridge construction or TLS session with
bridge construction after STARTTLS
command.
--gnutls
Use gnutls-cli
as connector for encrypted sessions. This is the default when
--tls or --starttls are used.
--openssl
Use gnutls-cli
as connector for encrypted sessions.
--auth-info=file
Select the file, in netrc
format, from which to read the authorisation credentials. Defaults
to ~/.mbfl-authinfo.
--username=user
Specify a string used to select an account in the authorisation file. user must be a substring of the username present in the file, the first matching line from the file is selected. So, if the authinfo file is:
machine smtp.gmail.com login mrc.mgg@gmail.com password <password> machine relay.poste.it login marco.maggi-ipsu password <password>
we can use --username=mrc.mgg to select the first line and marco.maggi to select the second line.
--auth-none
--auth-plain
--auth-login
Perform no authorisation, the AUTH PLAIN
authorisation or the AUTH LOGIN
authorisation.
Next: sendmail script hostinfo, Previous: sendmail script examples, Up: sendmail script [Contents][Index]