Configuring INN

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


CategorySoftware

IscInn (last edited 2005-03-16 19:03:24 by AdamShand)