From owner-freebsd-questions@FreeBSD.ORG Tue Sep 10 13:25:58 2013 Return-Path: Delivered-To: questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 2565E5CA for ; Tue, 10 Sep 2013 13:25:58 +0000 (UTC) (envelope-from wblock@wonkity.com) Received: from wonkity.com (wonkity.com [67.158.26.137]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id CEC4D29A4 for ; Tue, 10 Sep 2013 13:25:57 +0000 (UTC) Received: from wonkity.com (localhost [127.0.0.1]) by wonkity.com (8.14.7/8.14.7) with ESMTP id r8ADPnf9018658; Tue, 10 Sep 2013 07:25:49 -0600 (MDT) (envelope-from wblock@wonkity.com) Received: from localhost (wblock@localhost) by wonkity.com (8.14.7/8.14.7/Submit) with ESMTP id r8ADPnFK018655; Tue, 10 Sep 2013 07:25:49 -0600 (MDT) (envelope-from wblock@wonkity.com) Date: Tue, 10 Sep 2013 07:25:49 -0600 (MDT) From: Warren Block To: Olivier Nicole Subject: Re: lpd(8) sending email to the wrong address In-Reply-To: Message-ID: References: User-Agent: Alpine 2.00 (BSF 1167 2008-08-23) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.4.3 (wonkity.com [127.0.0.1]); Tue, 10 Sep 2013 07:25:49 -0600 (MDT) Cc: "questions@FreeBSD.org" X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 10 Sep 2013 13:25:58 -0000 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.