The /etc/cups/mailto.conf file contains several directives that defines the local mail server and email notification preferences for CUPS. Each directive is listed on a line by itself followed by its value. Comments are introduced using the number sign ("#") character at the beginning of a line.
Cc bigbrother@domain.com Cc John Doe <jd@domain.com>
The Cc
directive specifies an additional
recipient ("carbon copy") for all email notifications. The
default is to not send a copy to anyone but the subscriber.
From printserver@domain.com From Your Happy Printer <printserver@domain.com>
The From
directive specifies the sender of email
notifications. The default is the ServerAdmin
address defined in the cupsd.conf file.
Sendmail /usr/sbin/sendmail Sendmail /usr/lib/sendmail -bm -i
The Sendmail
directive specifies the command to
run to deliver an email locally. This directive cannot be used
with the SMTPServer directive, and if both
Sendmail and SMTPServer lines appear in the
mailto.conf file, only the last line is used. The
default is /usr/sbin/sendmail.
SMTPServer mail.domain.com SMTPServer 192.168.2.1
The SMTPServer
directive specifies a hostname or
IP address of a (possibly remote) SMTP mail server. This
directive cannot be used with the Sendmail directive,
and if both Sendmail and SMTPServer lines
appear in the mailto.conf file, only the last line is
used. The default is to use the Sendmail command
instead.
Subject [CUPS] Subject URGENT EMAIL NOTIFICATION
The Subject
directive specifies a prefix string to
add to the subject of each email notification. The default is to
not add a prefix string.