You can use the mailer with the special name error in rule set 0 to generate a user error message. The user field is a message to be printed. For example, the entry:
$#error$:Host unknown in this domain |
on the RHS of a rule generates the specified error if the LHS matches.