mail.remote.8mailutils

Langue: en

Version: August 2008 (debian - 07/07/09)

Section: 8 (Commandes administrateur)

NAME

mail.remote - pseudo-sendmail interface for mail delivery

SYNOPSIS

mail.remote [OPTION...] [TO-ADDR]...

DESCRIPTION

GNU mail.remote -- pseudo-sendmail interface for mail delivery
-b OPT
Ignored for sendmail compatibility
-d, --debug
Print envelope commands in the SMTP protocol transaction. If specified more than once, the data part of the protocol transaction will also be printed.
-f, --from=ADDR
Override the default from address
-i
Ignored for sendmail compatibility
-o OPT
Ignored for sendmail compatibility
-t, --read-recipients
Read message for recipients.
Authentication options
--authentication=MODLIST
Set the list of modules to be used for authentication
--authorization=MODLIST
Set list of modules to be used for authorization
--pam-service=STRING
Use STRING as PAM service name
--sql-db=STRING
Name of the database to connect to
--sql-field-map=MAP
Declare a name translation map for SQL fields in results of sql-getpwnam and sql-getpwuid queries
--sql-getpass=QUERY
SQL query to retrieve a password from the database
--sql-getpwnam=QUERY
SQL query to retrieve a passwd entry based on username
--sql-getpwuid=QUERY
SQL query to retrieve a passwd entry based on UID
--sql-host=HOSTNAME
Name or IP of MySQL server to connect to
--sql-interface=NAME
Type of SQL interface to use
--sql-passwd=STRING
SQL connection password
--sql-password-type=STRING
Type of password returned by --sql-getpass query. STRING is one of: plain, hash, scrambled
--sql-port=NUMBER
Port to use
--sql-user=NAME
SQL user name
--virtual-passwd-dir=DIR
Search for virtual passwd file in DIR
Common options
-M, --mailer=MAILER
Use specified URL as the default mailer
-D, --email-domain=DOMAIN
Set domain for unqualified user names (default is this host)
-E, --email-addr=EMAIL
Set current user's email address (default is loginname@defaultdomain)
--license
Print license and exit
-?, --help
give this help list
--usage
give a short usage message
-V, --version
print program version

Mandatory or optional arguments to long options are also mandatory or optional for any corresponding short options.

This is a simple drop-in replacement for sendmail to forward mail directly to an SMTP gateway. You should always specify your SMTP gateway using --mailer option (the best place to do so is in your configuration file).

EXAMPLES

Deliver mail via SMTP gateway at "mail.example.com", reading its contents for recipients of the message.

mail.remote --mailer smtp://mail.example.com -t

Deliver mail only to "devnull@foo.bar"

mail.remote --mailer smtp://mail.example.com devnull@foo.bar

Deliver mail to "devnull@foo.bar" as well as to the recipients specified in the message itself:

mail.remote --mailer smtp://mail.example.com -t devnull@foo.bar

REPORTING BUGS

Report bugs to <bug-mailutils@gnu.org>.

SEE ALSO

The complete GNU mailutils manual is not available in Debian systems due to licensing reasons. You can find this manual online in the GNU mailutils webpage:
http://www.gnu.org/software/mailutils/manual/index.html.