SMSMAIL(1)

NAME
smsmail - deliver mail as an SMS using the Hylafax sendpage program

SYNOPSIS
smsmail [-VvZ[Z]] [-b searchbase] [-C configfile] [-D binddn] [-d dest] [-f from] [-h ldaphost] [-l logfacility] [-P pagerattr] [-p ldapport] [-q query] [-u ldapurl] [-w bindpasswd] [-x spamheader]

DESCRIPTION
smsmail delivers a message as a SMS using the hylfax sendpage program.

The options are as follows:

-V  Show the version number and exit.

-v  Run in verbose mode. Informal message are displayed on standard output and in the syslog.

-Z[Z]
    Issue StartTLS (Transport Layer Security) extended operation. If you use -ZZ, the command will require the operation to be successful.

-b searchbase
    Specify the searchbase for LDAP searches.

-C configfile
    Read configuration options from configfile.

-D binddn
    Specify the distinguished name to use when binding to the LDAP server.

-d dest
    Specify the message destination user. If this option is not set, smsmail will use the login name of the user executing it.

-f from
    Specify the envelope sender address.

-h ldaphost
    Specify the hostname of the LDAP server. This option is deprecated, please use a LDAP URL instead.

-l logfacility
    Set the log facility for syslog to logfacility. Possible values are daemon, mail, user, local0, local1, local2, local3, local4, local5, local6, local7, local8, and local9.

-P pagerattr
    Specify the LDAP attribute which is used to store the pager ID.

-p ldapport
    Specify the TCP port number on which to contact the LDAP server. This option is deprecated, please use a LDAP URL instead.

-q query
    Specify the LDAP query to find entries.

-u ldapurl
    Specify the LDAP URL of the server to connect to.

-w bindpasswd
    Specify the password to use when binding to the LDAP server.

-x spamheader
    An additional header that identifies spam. The first character of this header must either be 'x' or 'X'. For users of smtp-vilter with the SpamAssassin backend, this could be set to

smsmail reads the incoming message from standard input, checking the message headers for either the UNIX “From” line or a “Return-Path” header to determine the sender. If both are present the sender from the “Return-Path” header is used.

Fatal errors, such as calling smsmail with incorrect arguments are logged in the system log file, using syslog(3).

FILES
/etc/smsmail.conf
    smsmail configuration file

SEE ALSO
smsmail.conf(5), sendpage(1), sendmail(8) syslog(3),

HISTORY
The smsmail command was developed on OpenBSD 3.9.

AUTHORS
Marc Balmer <marc@msys.ch>