i still run a plan9 based mail server too, and have dome a lot to mitigate the amounts of spam and  bots trying to brute force my email auth.

i will post details later but plan9 sill does good service as a mail relay.

-Steve


On 13 Jan 2018, at 23:30, G B <g_patrickb@yahoo.com> wrote:

Besides my mail receiving messages from invalid users, such as, having a domain named mydomain.com it will accept fred@mydomain.com even though fred is not a valid user.  Shouldn't it bounce the mail? 

Also, instead of mail being delivered to /mail/box/$user/mbox everything is going to /mail/queue/none.

In /mail/lib/rewrite I added:
\l\.mydomain\.com!(.*)   alias    \1
\l\.anotherdomain\.net!(.*)    alias   \1

In /mail/lib/names.local I added:
auser@mydomain.com   glenda

In smtpd.conf I added:
norelay   on
ournets  192.168.2.0/24  192.168.1.0/24


Thanks for any help.