2 <!-- SECTION: References -->
4 <TITLE>mailto.conf
</TITLE>
5 <LINK REL=
"STYLESHEET" TYPE=
"text/css" HREF=
"../cups-printable.css">
9 <H1 CLASS=
"title">mailto.conf
</H1>
11 <P>The
<VAR>/etc/cups/mailto.conf
</VAR> file contains several
12 directives that defines the local mail server and email
13 notification preferences for CUPS. Each directive is listed on a
14 line by itself followed by its value. Comments are introduced
15 using the number sign (
"#") character at the beginning of a
19 <H2 CLASS=
"title"><A NAME=
"Cc">Cc
</A></H2>
24 Cc bigbrother@domain.com
25 Cc John Doe
<jd@domain.com
>
30 <P>The
<CODE>Cc
</CODE> directive specifies an additional
31 recipient (
"carbon copy") for all email notifications. The
32 default is to not send a copy to anyone but the subscriber.
</P>
35 <H2 CLASS=
"title"><A NAME=
"From">From
</A></H2>
40 From printserver@domain.com
41 From Your Happy Printer
<printserver@domain.com
>
46 <P>The
<CODE>From
</CODE> directive specifies the sender of email
47 notifications. The default is the
<A
48 HREF=
"ref-cupsd-conf.html#ServerAdmin"><TT>ServerAdmin
</TT><A>
49 address defined in the
<VAR>cupsd.conf
</VAR> file.
</P>
52 <H2 CLASS=
"title"><A NAME=
"Sendmail">Sendmail
</A></H2>
57 Sendmail /usr/sbin/sendmail
58 Sendmail /usr/lib/sendmail -bm -i
63 <P>The
<CODE>Sendmail
</CODE> directive specifies the command to
64 run to deliver an email locally. This directive cannot be used
65 with the
<TT>SMTPServer
</TT> directive, and if both
66 <TT>Sendmail
</TT> and
<TT>SMTPServer
</TT> lines appear in the
67 <VAR>mailto.conf
</VAR> file, only the last line is used. The
68 default is
<TT>/usr/sbin/sendmail
</TT>.
</P>
71 <H2 CLASS=
"title"><A NAME=
"SMTPServer">SMTPServer
</A></H2>
76 SMTPServer mail.domain.com
77 SMTPServer
192.168.2.1
82 <P>The
<CODE>SMTPServer
</CODE> directive specifies a hostname or
83 IP address of a (possibly remote) SMTP mail server. This
84 directive cannot be used with the
<TT>Sendmail
</TT> directive,
85 and if both
<TT>Sendmail
</TT> and
<TT>SMTPServer
</TT> lines
86 appear in the
<VAR>mailto.conf
</VAR> file, only the last line is
87 used. The default is to use the
<TT>Sendmail
</TT> command
91 <H2 CLASS=
"title"><A NAME=
"Subject">Subject
</A></H2>
97 Subject URGENT EMAIL NOTIFICATION
102 <P>The
<CODE>Subject
</CODE> directive specifies a prefix string to
103 add to the subject of each email notification. The default is to
104 not add a prefix string.
</P>