Feb 20, 2010

玄箱 mail server

postfixをインストールして途中までconfigしたんやけど、SMTP-AUTHを使うにはどうやら別のpostfixを使わなければいかんみたい。
まずは一度入れたpostfixを抜く。
KURO-BOX:/# apt-get remove postfix
Reading package lists... Done
Building dependency tree... Done
The following packages will be REMOVED:
postfix
0 upgraded, 0 newly installed, 1 to remove and 6 not upgraded.
Need to get 0B of archives.
After unpacking 2879kB disk space will be freed.
Do you want to continue [Y/n]? Y
(Reading database ... 10820 files and directories currently installed.)
Removing postfix ...
Stopping Postfix Mail Transport Agent: postfix.
KURO-BOX:/#

apt-get updateしてから
KURO-BOX:/# apt-get install postfix-tls sasl2-bin libsasl2-modules
Reading package lists... Done
Building dependency tree... Done
Note, selecting postfix instead of postfix-tls
Suggested packages:
libsasl2-modules-otp libsasl2-modules-ldap libsasl2-modules-sql
libsasl2-modules-gssapi-mit procmail postfix-mysql postfix-pgsql postfix-ldap
postfix-pcre resolvconf postfix-cdb
Recommended packages:
mail-reader
The following NEW packages will be installed:
libsasl2-modules postfix sasl2-bin
0 upgraded, 3 newly installed, 0 to remove and 6 not upgraded.
Need to get 312kB/1479kB of archives.
After unpacking 3744kB of additional disk space will be used.
Get:1 http://security.debian.org etch/updates/main libsasl2-modules 2.1.22.dfsg1-8+etch1 [176kB]
Get:2 http://security.debian.org etch/updates/main sasl2-bin 2.1.22.dfsg1-8+etch1 [136kB]
Fetched 312kB in 1s (166kB/s)
Preconfiguring packages ...
Selecting previously deselected package libsasl2-modules.
(Reading database ... 10680 files and directories currently installed.)
Unpacking libsasl2-modules (from .../libsasl2-modules_2.1.22.dfsg1-8+etch1_powerpc.deb) ...
Selecting previously deselected package sasl2-bin.
Unpacking sasl2-bin (from .../sasl2-bin_2.1.22.dfsg1-8+etch1_powerpc.deb) ...
Selecting previously deselected package postfix.
Unpacking postfix (from .../postfix_2.3.8-2+etch1_powerpc.deb) ...
Setting up libsasl2-modules (2.1.22.dfsg1-8+etch1) ...
Setting up sasl2-bin (2.1.22.dfsg1-8+etch1) ...
warning: --update given but /var/run/saslauthd does not exist
* To enable saslauthd, edit /etc/default/saslauthd and set START=yes

Setting up postfix (2.3.8-2+etch1) ...

Postfix configuration was not changed. If you need to make changes, edit
/etc/postfix/main.cf (and others) as needed. To view Postfix configuration
values, see postconf(1).

After modifying main.cf, be sure to run '/etc/init.d/postfix reload'.

Running newaliases
Stopping Postfix Mail Transport Agent: postfix.
Starting Postfix Mail Transport Agent: postfix.

こんな感じ。
ここから先は /etc/postfix/main.cfの編集へと続く。。

No comments: