www.gzip.org/zlib/
www.libpng.org/
www.boutell.com/gd
tar zxvf zlib*
.
.
mv ./zlib*/ /usr/local/zlib/
.
.
cd /usr/local/zlib
./configure
make
make install
cd /usr/local/libpng
cp scripts/makefile.linux makefile
make test
make install
cd /usr/local/gd
make all
php설치하기 이전 작업 완료
센드메일 설치
www.sendmail.org
cd /usr/local/sendmail8.*
sh Build
rm -f /etc/sendmail.cf
cd cf/cf
cp generic-linux.mc mymail.mc
make install-cf CF=mymail
멀티큐로 대용량 메일 발송 설정
mkdir /var/spool/mqueue
cd ..
cd ..
pwd
/usr/local/sendmail-8.*
센드메일을 /usr/sbin에 복사
cd obj.Linux.2.4.*.i686/sendmail
pwd
cp sendmail /usr/sbin/sendmail
ls -l /usr/lib/sendmail
chown root:bin /usr/sbin/sendmail
chmod 4555 /usr/sbin/sendmail
센드메일 시작
/etc/rc.d/init.d/sendmail start
테스트
ps -ef | grep sendmail
telnet localhost 25
mail aquabada@advantech.co.kr
....
....
.
Cc:...
알리아스 파일 및sendmail.cf파일 설정
cd /usr/local/sendmail-8.*
cp aliases /etc/mail
cd /etc/mail
newaliases
/etc/mail/aliases
Sendmail.cf설정 --(최신버전은 기본으로 되어 있음)
파일내
Cdomain.com
FW/etc/mail/local-host-names
주석 제거후 sendmail재시작
/etc/rc.d/init.d/sendmail start
php에서 센드메일 사용하기 설정
php.ini내에
sendmail_path="usr/sbin/sendmail -t -i"
php메일 테스팅
<?php
mail("aquabada@advantech.co.kr","제목: 타이틀","내용1 \n 내용2 \n 내용3");
?>
DNS와 Sendmail
DNS설정은 /var/named/db.domain.com 변경
sendmail은 /etc/mail/local-host-names, /etc/sendmail.cf변경
Procmail설치(필터링, 스팸 방지--보통 센드메일에 포함)
find / -name procmail 명령으로 설치 되어 있는지 확인 가능
vacation도 확인후
procmail -v 하면 버전 확인
IMAP 설치 --센드메일과 달리 반드시 php설치 이전에 설치를 하여야 한다.
ftp://ftp.cac.washington.edu/imap
http://www.washington.edu
소스로 설치가 안될시엔
RPM으로 설치후( 소스 설치시엔 make slx후 생성 화일을 각 디렉토리에 복사 )
/etc/xinetd.d/imaps
/etc/xinetd.d/ipop2
/etc/xinetd.d/ipop3
/etc/xinetd.d/pop3s 문서의 disable을 no로 변경후
/etc/rc.d/init.d/xinetd restart
vi /etc/services에서 pop3와 imap의 포트가 110,143번인지 확인후
telnet localhost 110, 143을 확인해 준다.
##################### imap 설치 ########################################################################
imap-2001a 버그가 존재하여 imap-4.7c를 이용하실것을 권장합니다.
# mv /usr/include/sys/time.h /usr/include/sys/time.h.ori
# ln -s /usr/include/time.h /usr/include/sys/time.h
# tar xvf imap-4.7c.tar
# cd imap-4.7c
# make slx
# cd ..
# cp -r imap-2001a /usr/local/imap
# cp -r imap-4.7c /usr/local/imap
# cd /usr/local/imap
# ln -s c-client include
# ln -s c-client lib
# cd /usr/local/imap/c-client
# ln -s c-client.a libc-client.a
# cd ..
# cp imapd/imapd /usr/sbin/in.imapd
# vi /etc/xinetd.d/imap
#vi /etc/xinetd.d/imap 추가
service imap
{
disable = no
flags = REUSE
socket_type = stream
protocol = tcp
wait = no
user = root
server = /usr/sbin/in.imapd
log_on_failure += USERID
}
# /etc/init.d/xinetd restart
# telnet localhost 143
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
* OK localhost.localdomain IMAP4rev1 v12.264 server ready
a00 login phpmail@메일서버도메인명 비밀번호
a00 OK LOGIN completed
a01 list mbox *
* LIST (\NoInferiors) NIL INBOX
a01 OK LIST completed
a02 logout
#
# rm /usr/include/sys/time.h
# mv /usr/include/sys/time.h.ori /usr/include/sys/time.h
www.libpng.org/
www.boutell.com/gd
tar zxvf zlib*
.
.
mv ./zlib*/ /usr/local/zlib/
.
.
cd /usr/local/zlib
./configure
make
make install
cd /usr/local/libpng
cp scripts/makefile.linux makefile
make test
make install
cd /usr/local/gd
make all
php설치하기 이전 작업 완료
센드메일 설치
www.sendmail.org
cd /usr/local/sendmail8.*
sh Build
rm -f /etc/sendmail.cf
cd cf/cf
cp generic-linux.mc mymail.mc
make install-cf CF=mymail
멀티큐로 대용량 메일 발송 설정
mkdir /var/spool/mqueue
cd ..
cd ..
pwd
/usr/local/sendmail-8.*
센드메일을 /usr/sbin에 복사
cd obj.Linux.2.4.*.i686/sendmail
pwd
cp sendmail /usr/sbin/sendmail
ls -l /usr/lib/sendmail
chown root:bin /usr/sbin/sendmail
chmod 4555 /usr/sbin/sendmail
센드메일 시작
/etc/rc.d/init.d/sendmail start
테스트
ps -ef | grep sendmail
telnet localhost 25
mail aquabada@advantech.co.kr
....
....
.
Cc:...
알리아스 파일 및sendmail.cf파일 설정
cd /usr/local/sendmail-8.*
cp aliases /etc/mail
cd /etc/mail
newaliases
/etc/mail/aliases
Sendmail.cf설정 --(최신버전은 기본으로 되어 있음)
파일내
Cdomain.com
FW/etc/mail/local-host-names
주석 제거후 sendmail재시작
/etc/rc.d/init.d/sendmail start
php에서 센드메일 사용하기 설정
php.ini내에
sendmail_path="usr/sbin/sendmail -t -i"
php메일 테스팅
<?php
mail("aquabada@advantech.co.kr","제목: 타이틀","내용1 \n 내용2 \n 내용3");
?>
DNS와 Sendmail
DNS설정은 /var/named/db.domain.com 변경
sendmail은 /etc/mail/local-host-names, /etc/sendmail.cf변경
Procmail설치(필터링, 스팸 방지--보통 센드메일에 포함)
find / -name procmail 명령으로 설치 되어 있는지 확인 가능
vacation도 확인후
procmail -v 하면 버전 확인
IMAP 설치 --센드메일과 달리 반드시 php설치 이전에 설치를 하여야 한다.
ftp://ftp.cac.washington.edu/imap
http://www.washington.edu
소스로 설치가 안될시엔
RPM으로 설치후( 소스 설치시엔 make slx후 생성 화일을 각 디렉토리에 복사 )
/etc/xinetd.d/imaps
/etc/xinetd.d/ipop2
/etc/xinetd.d/ipop3
/etc/xinetd.d/pop3s 문서의 disable을 no로 변경후
/etc/rc.d/init.d/xinetd restart
vi /etc/services에서 pop3와 imap의 포트가 110,143번인지 확인후
telnet localhost 110, 143을 확인해 준다.
##################### imap 설치 ########################################################################
imap-2001a 버그가 존재하여 imap-4.7c를 이용하실것을 권장합니다.
# mv /usr/include/sys/time.h /usr/include/sys/time.h.ori
# ln -s /usr/include/time.h /usr/include/sys/time.h
# tar xvf imap-4.7c.tar
# cd imap-4.7c
# make slx
# cd ..
# cp -r imap-2001a /usr/local/imap
# cp -r imap-4.7c /usr/local/imap
# cd /usr/local/imap
# ln -s c-client include
# ln -s c-client lib
# cd /usr/local/imap/c-client
# ln -s c-client.a libc-client.a
# cd ..
# cp imapd/imapd /usr/sbin/in.imapd
# vi /etc/xinetd.d/imap
#vi /etc/xinetd.d/imap 추가
service imap
{
disable = no
flags = REUSE
socket_type = stream
protocol = tcp
wait = no
user = root
server = /usr/sbin/in.imapd
log_on_failure += USERID
}
# /etc/init.d/xinetd restart
# telnet localhost 143
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
* OK localhost.localdomain IMAP4rev1 v12.264 server ready
a00 login phpmail@메일서버도메인명 비밀번호
a00 OK LOGIN completed
a01 list mbox *
* LIST (\NoInferiors) NIL INBOX
a01 OK LIST completed
a02 logout
#
# rm /usr/include/sys/time.h
# mv /usr/include/sys/time.h.ori /usr/include/sys/time.h
'O / S > Linux' 카테고리의 다른 글
| php설정시 imap 관련 오류시 읽어 볼거리.. (0) | 2007/06/20 |
|---|---|
| 아파치, php설정 (0) | 2007/06/20 |
| 센드메일, IMAP 설정 (0) | 2007/06/20 |
| mysql셋팅 (0) | 2007/06/20 |
| h.323 버그 패치 자료,소스 사이트 (0) | 2007/06/20 |
| 유용한 오픈소스 url 모음 (0) | 2007/06/07 |
0 Trackback,
0 Comment,
:




최근에 달린 댓글
링크
최근에 받은 트랙백
태그목록