Date: Tue, 10 Sep 2013 07:25:49 -0600 (MDT) From: Warren Block <wblock@wonkity.com> To: Olivier Nicole <olivier.nicole@cs.ait.ac.th> Cc: "questions@FreeBSD.org" <questions@freebsd.org> Subject: Re: lpd(8) sending email to the wrong address Message-ID: <alpine.BSF.2.00.1309100710310.18440@wonkity.com> In-Reply-To: <CA%2Bg%2BBvi6e9JTZwq1J4Dww1Oke9zY4n%2B1Ks4OxSgkwc63DoXsdQ@mail.gmail.com> References: <CA%2Bg%2BBvi6e9JTZwq1J4Dww1Oke9zY4n%2B1Ks4OxSgkwc63DoXsdQ@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, 10 Sep 2013, Olivier Nicole wrote: > My printing system is archaic, based on lpr(8), but it works fine for > centralizing printing from Windows (with Samba), Mac and Linux > clients. Plus it includes a printing quota system, so I am reluctant > to change. Don't apologize, many people use lpd as an alternative to the hidden complexity of CUPS. > When a print job is failing, lpr will try to send a warning email to > user@client but that e,ail address does not exist; is there a way to > send email at user@default.domain instead? Looking at the source (usr.sbin/lpr/lpd/printjob.c), it does not appear there is any option. The sendmail() routine in that file could be modified. Or if you filter outgoing mail at or before the MTA, that filter could be changed to look for mail from lpd and adjust the domain.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?alpine.BSF.2.00.1309100710310.18440>