man mail.remote () - manual page for mail.remote (GNU Mailutils 0.6.93)

NAME

mail.remote - manual page for mail.remote (GNU Mailutils 0.6.93)

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-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 full documentation for mail.remote is maintained as a Texinfo manual. If the info and mail.remote programs are properly installed at your site, the command

info mail.remote

should give you access to the complete manual.