On 16 Oct 1998, Jason L Tibbitts III wrote:
> Also not yet in is Randall Winchester's code for automatically maintaining
> the sendmail aliases. I'm going to work up Makefile.PL and postinstall to
> ask you whether or not you want this and to create the file with the proper
> permissions. My thought is to make the file in the /etc/mail directory
> (or, of course, wherever the user says to put it) because we know Sendmail
> will take things in that directory. The file would be named something like
> aliases-mj-domain (one for each domain). It would be up to the installer
> to hack sendmail.cf and to set up the virtual domain table appropriately.
> (Unless we can do that, too; I just don't know how.)
In my sendmail 8.8.8 config file (should be the same for 8.9.x):
# location of alias file
O AliasFile=/etc/aliases,/etc/aliases.mj
and then you just restart sendmail (that might be trickier because you
need to know it's pid, which is listed in a file which is set in the
sendmail.cf file -- mine is stored in /var/run/sendmail.pid -- and it
usually needs to be done as root; probably better to have the user do
this, although modifying the sendmail.cf is w/o consequences as long as
sendmail is started and as long as we back it up to sendmail.cf.mj-backup
or something). Oh, newaliases needs to be run as well, AFTER you restart
sendmail -- and it'll compile the databases for all of the alias files.
--
----------------------------------
| Brock Rozen | brozen@torah.org |
----------------------------------
Follow-Ups:
References:
|
|