postfix最简安装与卸载
groupadd postfix
groupadd postdrop
useradd -g postfix postfix
mv /usr/sbin/sendmail /usr/sbin/sendmail.OFF
mv /usr/bin/newaliases /usr/bin/newaliases.OFF
mv /usr/bin/mailq /usr/bin/mailq.OFF
chmod 755 /usr/sbin/sendmail.OFF /usr/bin/newaliases.OFF /usr/bin/mailq.OFF
make -f Makefile.init makefiles \
'CCARGS=-DUSE_SASL_AUTH -I/usr/include/sasl' \
'AUXLIBS=-L/usr/lib/sasl2 -lsasl2 -lz -lm'
make install
postfix start
卸载Postfix,请按如下方法卸载:
postfix stop
rm -f /usr/sbin/sendmail
rm -f /usr/bin/newaliases
rm -f /usr/bin/mailq
rm -rf /usr/libexec/postfix
rm -rf /etc/postfix
rm -f /usr/sbin/post*
mv /usr/sbin/sendmail.OFF /usr/sbin/sendmail
mv /usr/bin/newaliases.OFF /usr/bin/newaliases
mv /usr/bin/mailq.OFF /usr/bin/mailq
No comments :
Post a Comment