Ubuntu-Server 6.10 防火墙系统安装

豆豆网   技术应用频道   2007年03月04日  【字号: 收藏本文

本文详细介绍Ubuntu-Server 6.10 防火墙系统安装

  mkdir -p /var/spool/postfix/var/run/saslauthd

  Now we have to edit /etc/default/saslauthd. It should look like this:

# This needs to be uncommented before saslauthd will be run automatically
START=yes
PARAMS="-m /var/spool/postfix/var/run/saslauthd -r"
# You must specify the authentication mechanisms you wish to use.
# This defaults to "pam" for PAM support, but may also include
# "shadow" or "sasldb", like this:
# MECHANISMS="pam shadow"
MECHANISMS="pam"
Next edit /etc/init.d/saslauthd and change the location of saslauthd's PID file. Change the value of PIDFILE to /var/spool/postfix/var/run/${NAME}/saslauthd.pid, so that it reads:PIDFILE="/var/spool/postfix/var/run/${NAME}/saslauthd.pid"

  Now populate your system with real users. Set the users shell to /bin/false to avoid security holes.

  Next fill /etc/postfix/virtual as you like. I love Webmin for this. You can edit it directly too, of course. However, webmin does a great job.

  Gotcha!: "some.domain" etc. can not equal to anything mentioned in the "mydestination" line in
/etc/postfix/main.cf

  Mine has the following structure:

some.domain  virtual domain
some.other.domain  virtual domain
some.really.other.domain  virtual domain
user@some.domain    user
otheruser@some.domain  otheruser
user@some.other.domain  user
otheruser@some.other.domain  otheruser
somealias@some.other.domain  user
info@some.other.domain  someoneidontlike
info@some.domain  someoneidontlike otheruser@foo.bar
differentuser@some.domain  differentuser  differentusers@home.addres  someoneidontlike
@some.really.other.domain    someonidontlike    someoneidontlikes@home.address

  and so on. So I only have to set an alias for root and postmaster in /etc/aliases. All other aliases should be in this file.

来源:howtoforge    责编:豆豆技术应用

正在加载评论...