linux9.0下如何配置新闻组?
gshen 2003-10-20 10:28:20 我在linux9.0下配置局域网新闻组,用的是inn2.3.4软件包,配置完成后能订阅新闻组,但总是不能粘贴新闻,报错如下:“error441:address not in Internet syntax”。我已经郁闷了一个礼拜了,哪位老大能指点一下?谢谢!(我是按照下面的资料配置新闻组的,大家看看有什么问题)
资料如下:
By Default, INN News Server Cannot Start by
"/etc/rc.d/init.d/innd start"
Here's Some Step to make it work.
1. First, make sure you have installed innd. The location of config:
## Server Config
/etc/news/inn.conf
##Access Control
/etc/news/readers.conf
## Database Store Method
/etc/news/storage.conf
### Message Expire Time
/etc/news/expire.ctl
2. Initial database
makehistory
makedbz -i -o
3. There are Some permission Problem,
cd /var/lib/news/
chown news:news *
chmod 664 /var/lib/news/active
##Check for any errors
inncheck
##if no error, go to Next Step
4. Edit /etc/news/inn.conf
domain: news.hkes.com
complaints: complain@hkes.com
fromhost: news.hkes.com
moderatormailer: swergar@hkes.com
5. Edit /etc/news/readers.conf
auth "all" {
hosts: "*"
default: " *"
}
access "all" {
users: " "
newsgroups: "*"
access: RPA
}
6.Edit /etc/news/storage.conf, Comment Following Lines
#method timehash {
# newsgroups: *
# class: 0
#}
7. Edit /etc/news/expire.ctl
/remember/:10
*:A:1:10:never
## Start Server
/etc/rc.d/init.d/innd start
##If no errors, moving to next step.
8. Setting Up Newsgroup
##Add News group
ctlinnd newgroup test.newsgroup1
##In config file, /var/lib/news/active, you should see the last line.
control 0000000000 0000000001 n
control.cancel 0000000000 0000000001 n
control.checkgroups 0000000000 0000000001 n
control.newgroup 0000000000 0000000001 n
control.rmgroup 0000000000 0000000001 n
junk 0000000000 0000000001 n
test.newsgroup1 0000000000 0000000001 n
##Don't Edit this file directly, all newsgroup may be del if error found.
9. Useful ctlinnd Command
## Reload Group List
ctlinnd reload active "reload active"
## Add Group
ctlinnd newgroup test.testonly
## delete Group
ctlinnd rmgroup test.testonly
## Delete Message by "message id"
ctlinnd cancel '<123456.123456@hkes.com>'
## Pause Server
ctlinnd pause "pause innd"
## Continue Server
ctlinnd go "continue innd"
10. Setting up Security
##Edit /etc/news/readers.conf
## Hide the "control, control.*, junk"
#Change
access "all" {
users: " "
newsgroups: "*"
access: RPA
}
#To
access "all" {
users: " "
newsgroups: "*,!control,!control.*,!junk"
access: RPA
}
11. For binary attachment,
## edit /etc/news/cleanfeed.conf, add the following line.
'bin_allowed' => *,
12. Enable Password Authentication
edit readers.conf like this:
#########################
auth "passwords" {
hosts: "*"
key: "pwd"
auth: "ckpasswd -f /path/to/password/file"
}
access "passwords" {
key: "pwd"
newsgroups: "*,!control*,!junk"
access: RPA
}
#########################
all user in the password file can join all newsgoups except the control and junk groups.