Unix/Solaris10

Postfix - 설치

ForceCore 2006. 12. 1. 05:02

Postfix...

Sendmail대신 쓸 수 있는 Mail Transfer Agent다.

메일서버를 관리하다가 다른 서버에서 Postfix를 제법 쓰고 있음을 발견했다.

패키지가 없다 ㄱ- 첨부파일에 패키지로 만드는 방뻡을 일본 사이트에서 발견한 것을 네이버로 번역해서 PDF로 만든 것을 첨부한다. 필자는 뒤늦게 발견해서 OTL....;

 

일단은 최신 stable을 받고,

# gmake

 

# gmake install

를 하면 된다고 한다.

 

gmake를 하니 LD_LIBRARY_PATH를 설정을 하면 안된다고 한다 -0-;;;

OTL

 

일단은 export LD_LIBRARY_PATH=''

이렇게해서 빈 내용으로 reset했다.

컴파일도 잘 안 되고 vi실행이나 ls도 안 된다 -_-;;

그런 문제가 발생하면 crle를 쓰고, 아니라면 그냥 패스.

 

crle를 잘 써서, 기존의 LD 패스를 넣었음.

 

# crle -l /usr/dt/lib -l /usr/local/lib:/usr/local/ssl/lib -l /usr/ccs/lib:/usr/sfw/lib -l /opt/sfw/lib:/usr/X11R6/lib

 

gmake 성공.

 

일단은 Sendmail을 방법했다.

주의: /etc/aliases혹은 /etc/mail/aliases를 절대로 백업해 놓으시오. 패키지가 삭제되면서 삭제될 것임 ㄱ-

# pkgrm SUNWsndmu
# pkgrm SUNWsndmr

 

# gmake install을 하니

이번엔 libpcre.so.0가 없다고 한다. LD_LIBRARY_PATH 없이는 잘 찾아지지도 않고...

crle로 장난쳐봐도 안 되고. 그래서 결국은 /usr/lib에다가 soft link를 배치해서 해결했다.

 

gmake install에서 마지막에서 configuration을 묻는 단계가 있는데 거의 디폴트로 했지만,

설정은 어디 두겠냐고 묻는 곳에선

/etc/postfix

라고 대답했다.

/var/run디렉토리 설정도 했던가?? 기억이 잘 안나서 덤프한다.

 

/bin/sh postfix-install

    Warning: if you use this script to install Postfix locally, this
    script will replace existing sendmail or Postfix programs.  Make
    backups if you want to be able to recover.

    Before installing files, this script prompts you for some
    definitions.  Most definitions will be remembered, so you have to
    specify them only once. All definitions should have a reasonable
    default value.

Please specify the prefix for installed file names. Specify this ONLY
if you are building ready-to-install packages for distribution to other
machines.
install_root: [/]

Please specify a directory for scratch files while installing Postfix.
You must have write permission in this directory.
tempdir: [/root/src/postfix-2.3.4]

Please specify the final destination directory for installed Postfix
configuration files.
config_directory: [/etc/postfix]

Please specify the final destination directory for installed Postfix
daemon programs. This directory should not be in the command search
path of any users.
daemon_directory: [/usr/libexec/postfix]

Please specify the final destination directory for installed Postfix
administrative commands. This directory should be in the command search
path of adminstrative users.
command_directory: [/usr/sbin]

Please specify the final destination directory for Postfix queues.
queue_directory: [/var/spool/postfix]

Please specify the final destination pathname for the installed Postfix
sendmail command. This is the Sendmail-compatible mail posting
interface.
sendmail_path: [/usr/lib/sendmail]

Please specify the final destination pathname for the installed Postfix
newaliases command. This is the Sendmail-compatible command to build
alias databases for the Postfix local delivery agent.
newaliases_path: [/usr/bin/newaliases]

Please specify the final destination pathname for the installed Postfix
mailq command. This is the Sendmail-compatible mail queue listing
command.
mailq_path: [/usr/bin/mailq]

Please specify the owner of the Postfix queue. Specify an account with
numerical user ID and group ID values that are not used by any other
accounts on the system.
mail_owner: [postfix]

Please specify the group for mail submission and for queue management
commands. Specify a group name with a numerical group ID that is not
shared with other accounts, not even with the Postfix mail_owner
account. You can no longer specify "no" here.
setgid_group: [postdrop]

Please specify the destination directory for the Postfix HTML files.
Specify "no" if you do not want to install these files.
html_directory: [no]

Please specify the destination directory for the Postfix on-line manual
pages. You can no longer specify "no" here.
manpage_directory: [/usr/local/man]

Please specify the destination directory for the Postfix README files.
Specify "no" if you do not want to install these files.
readme_directory: [no]

 

 

인스톨은 돼었는데 설정을 어떻게 해야 되지;;;;