Re: lpd(8) sending email to the wrong address

2013-09-10 Thread Warren Block

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.

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


lpd(8) sending email to the wrong address

2013-09-09 Thread Olivier Nicole
Hi,

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.

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?

Best regards,

Olivier
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: lpd(8) sending email to the wrong address

2013-09-09 Thread Polytropon
On Tue, 10 Sep 2013 11:44:09 +0700, Olivier Nicole wrote:
 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?

Depending on your sendmail setup, you could probably use an
alias for those specific cases (via /var/mail/aliases).
Because sendmail and lpr should match archaic-wise... :-)



-- 
Polytropon
Magdeburg, Germany
Happy FreeBSD user since 4.0
Andra moi ennepe, Mousa, ...
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org