1.8 KiB
Setting up the tilde.club shell server (user host)
We want to document the ins and outs of setting up the server so others who are interested can learn (and help!).
System setup
For now, this is all documented in a separate server-setup document; ultimately, I presume we'll consolidate it all here.
The default MTA on CentOS is postfix
. Our goal was to have a localhost
-only mail service, which required that we configure postfix
to listen only to localhost
, and to bounce any email which local users try to send off-server. Both configuration changes are handled in /etc/postfix/main.cf
.
- the
inet_interfaces
value should just belocalhost
(inet_interfaces = localhost
) - the
default_transport
parameter should be the bounce message we want (so adddefault_transport = error: outside mail is not deliverable
to the bottom of the file)
pine
Pine is sort of brain-dead about creating its .addressbook
file in a user's home directory with 744
permissions; there doesn't appear to be an option to fix this. Instead, it's probably important to work around it before adding any new users:
- Add
~/mail/
to/etc/skel
with permissions700
so that there's a user-accessible-only place for the file to live. - Create an
/etc/pine.conf
file that includes the config directiveaddress-book=mail/.addressbook
to put that file into this new home.
identd
Users will connect from their shell account to an IRC server, so it is very handy to have an identd
server. For us that just meant installing the standard CentOS identd
server and configuring it to start automatically:
sudo yum install oidentd
sudo /etc/init.d/oidentd start
sudo chkconfig oidentd on