Default email address in sendmail?
Matthew Valites
matthew.valites at webex.com
Fri Sep 22 09:48:19 EDT 2006
David Kramer wrote:
> "It's for a friend..."
>
> Crusty old Solaris box running sendmail. What he wants to do is
> redirect all mail that doesn't have a user, and send it on to one
> address, instead of rejecting it.
>
> How does he do it?
>
First of all, this is a horrendous idea, and I can't think for one
minute of any justifiable reason that you'd want to do it. That being
said, you could do the following:
Add to LOCAL_CONFIG a regex to match against no user part:
Knouser regex -s -ayouraddress at whateverdomain.com ^[]@domaintomatch.com
Then add to LOCAL_RULE_0:
R$* $: $(nouser $1 $)
I'm not positive that this will work correctly, but it's going in the
right direction. YMMV. Look up 'regex' in the Bat book: 23.7.20.
Again, I wouldn't implement this by any means.
Thanks,
~Matt
--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
More information about the Discuss
mailing list