mail.remote8mailutils
Pseudo-sendmail interface for mail delivery
Usage
mail.remote [OPTION ...]
[TO-ADDR] ...
Overview
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-getpassquery. 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
--mailersmtp://mail.example.com-t
Deliver mail only to "[email protected]"
-
mail.remote
--mailersmtp://mail.example.com [email protected]
Deliver mail to "[email protected]" as well as to the recipients specified in the message itself:
-
mail.remote
--mailersmtp://mail.example.com-t[email protected]
Releases
3 releases since Debian 3.1 (Sarge); the text changed 2 times.
--sql-field-map since Debian 5.0 (Lenny).