Configuring INN
Contents
Contents
Introduction
As part of my EmailConsideredHarmful compaign I've decided I only want email which is written by a human, and intended specifically for me, to end up in my mailbox. At work I'm trying to get all automated email (Nagios, cron, postmaster, etc) directed into news groups. Unfortunately this requires a news server ... which I've never had much to do with professionally, so it begins ...
Setting up the Daemon
In inn.conf, set the name of your organization:
organization: Spack Org
In storage.conf, add:
method tradspool {
newsgroups: *
class: 0
}
In readers.conf, add:
auth "local" {
hosts: "*.spack.org, spack.org"
default: "@spack.org"
}
access "local" {
users: "@spack.org"
newsgroups: "*"
}
Create the history database:
# cd /var/lib/news # makedbz -i # chmod 664 *n* # chown -R news:news * # mv history.n.dir history.dir # mv history.n.hash history.hash # mv history.n.index history.index
Finer Tuning
You can hide the control and junk groups from users by editing the readers.conf and changing the "newsgroups: *" line to:
newsgroups: *,!junk,!control,!control.*
You can enable the posting of binary attachments (only relevant if you're using cleanfeed) by changing cleanfeed.conf:
### Block binaries in non-binary newsgroups? 'block_binaries' => 0,
Manipulating Groups
To create a new group (note that if you want to create a spack.lfjokes news group you shouldn't create the "spack" news group):
# ctlinnd newgroup spack.lfjokes
Creating a moderated group:
# ctlinnd newgroup spack.goodstuff m moderator@notspack.org
To remove a group:
# ctlinnd rmgroup spack.lfjokes
Appendix
Helpful Links
- ISC INN Homepage
Great INN Documentation (including links to the PerlLanguage/PythonLanguage authentication hooks)
INN Section from the LinuxNetworkAdministratorsGuide
- INN FAQ
- Other News Servers
- Dave Barr's INN Page
Getting INN running on RedhatLinux 7.2