[472] in netbsd-help mailing list archive
Re: mail
daemon@ATHENA.MIT.EDU (John Hawkinson)
Mon Nov 27 01:34:33 1995
Date: Mon, 27 Nov 1995 01:34:21 -0500
To: Eric Ford <eford@MIT.EDU>
Cc: netbsd-help@MIT.EDU
In-Reply-To: "[471] in netbsd-help mailing list archive"
From: John Hawkinson <jhawk@MIT.EDU>
> How can I create a mail-receiving user? I want to be able to send mail to
> foo@polys.mit.edu. I've added the user, but when I send mail to them, it
> expands it to foo@mit.edu and then returns the mail
Do you plan to have a lot of these? If so, we can make the modifications
a bit more versatile. Anyway, you want to
cd /usr/src/usr.sbin/sendmail/cf/cf
Then copy mit.mc somewhere else and add:
LOCAL_USER(foo)
EXPOSED_USER(foo)
Then, without changing the current directory:
m4 /path/to/file.mc > /path/to/file.cf
And then replace your /etc/sendmail.cf with /path/to/file.cf.
You could also just edit your .cf file directly, but that's cheating.
--jhawk
ps: You might want to look at ../README.