[comp.mail.sendmail] Error on bad sender address

bengsig@orcenl.uucp (Bjorn Engsig) (11/28/88)

In our sendmail.cf we do some rewriting of sender addresses, when using
uucp to the 'outside world', i.e. to our backbone.  What we do is to
strip various local machine names, and rewriting the sender address to
orcenl!<user>.  We are not (yet) a registered domain, and all outgoing mail
should therefore have uucp-style sender addresses, without any local machine
names.  This system works, as long as all local hosts are known to the
sendmail.

Now, somebody has added a new machine, without having the name registered with
this sendmail, and the result is a sender address of orcenl!<user>@<host>.

To get to the point, is there a way to get sendmail return this with an error
to the local user, with this error being detected in the sender rewriting
rule given with the mailer (as 'Muucp ... S=13, R=23 ...').  The same thing
should happen with local recipients in Cc: lines.  What I want is something
like aborting the mailing, and use mailer error in-stead.

All internal mailing is done via SMTP and sendmail and we don't have sendmail
sources.  Uucp is only used for external mail.
-- 
Bjorn Engsig, ORACLE Europe      \ /    "Hofstaedter's Law:  It always takes
 ..!uunet!mcvax!orcenl!bengsig    X      longer than you expect, even if you
phone:  +31 21 59 56 411         / \     take into account Hofstaedter's Law"