로그인

검색

Server
2012.03.30 09:05

우분투 메일서버

조회 수 10154 추천 수 0 댓글 0
?

단축키

Prev이전 문서

Next다음 문서

크게 작게 위로 아래로 게시글 수정 내역 댓글로 가기 인쇄
?

단축키

Prev이전 문서

Next다음 문서

크게 작게 위로 아래로 게시글 수정 내역 댓글로 가기 인쇄


<qmail, sendmail이 존재>
qmail
- /home/[개인디렉토리]/Maildir에 저장하는 방식
sendmail
- /var/spool/mail/[개인아이디]에 저장하는 방식
두 메일에는 장단점이 있으니 알아서 찾아보셈

<sendmail을 qmail 방식으로 변환시켜주는거>
# apt-get install mb2md


<우분투는 postfix를 사용, dovecot 설치>
# apt-get install postfix xinetd dovecot-imapd dovecot-pop3d dovecot-imapd dovecot-common
# vim /ete/postfix/main.cf
home_mailbox = Maildir/
mailbox_command = /usr/bin/procmail -a "$EXTENSION" DEFAULT=$HOME/Maildir/ MAILDIR=$HOME/Maildir
메일 저장이 개인 디렉토리에 Maildir에 저장되도록 하기 위한 설정

# vim /etc/dovecot/dovecot.conf
protocols = imap imaps pop3 pop3s
dovecot은 메일을 수신하기 위해서 씀
메일 수신 방식은 pop3, imap 방식이 존재

# /etc/init.d/postfix restart


<메일 계정 생성>
# adduser [아이디]
# cd /home/[개인디렉토리]
# maildirmake.dovecot ./Maildir
# maildirmake.dovecot ./Maildir/.Drafts
# maildirmake.dovecot ./Maildir/.Sent
# maildirmake.dovecot ./Maildir/.Trash
# maildirmake.dovecot ./Maildir/.Templates
# chown [계정]:[계정] -R Maildir
새로운 계정에 대해서는 디렉토리를 생성



<메일 암호화, 전송>
postconf -e 'smtpd_sasl_type = dovecot'
postconf -e 'smtpd_sasl_path = private/auth-client'
postconf -e 'smtpd_sasl_local_domain ='
postconf -e 'smtpd_sasl_security_options = noanonymous'
postconf -e 'broken_sasl_auth_clients = yes'
postconf -e 'smtpd_sasl_auth_enable = yes'
postconf -e 'smtpd_recipient_restrictions = permit_sasl_authenticated,permit_mynetworks,reject_unauth_destination'
postconf -e 'inet_interfaces = all'


postconf -e 'smtpd_tls_auth_only = no'
postconf -e 'smtp_tls_security_level = may'
postconf -e 'smtpd_tls_security_level = may'
postconf -e 'smtp_tls_note_starttls_offer = yes'
postconf -e 'smtpd_tls_key_file = /etc/ssl/private/smtpd.key'
postconf -e 'smtpd_tls_cert_file = /etc/ssl/certs/smtpd.crt'
postconf -e 'smtpd_tls_loglevel = 1'
postconf -e 'smtpd_tls_received_header = yes'
postconf -e 'smtpd_tls_session_cache_timeout = 3600s'
postconf -e 'tls_random_source = dev:/dev/urandom'
postconf -e 'myhostname = ss.ssu.ac.kr'

postconf -e 'smtpd_tls_CAfile = /etc/ssl/certs/cacert.pem'




# vim /etc/dovecot/dovecot.conf

socket listen {
#master {
# Master socket provides access to userdb information. It's typically
# used to give Dovecot's local delivery agent access to userdb so it
# can find mailbox locations.
#path = /var/run/dovecot/auth-master
#mode = 0600
# Default user/group is the one who started dovecot-auth (root)
#user =
#group =
#}
client {
# The client socket is generally safe to export to everyone. Typical use
# is to export it to your SMTP server so it can do SMTP AUTH lookups
# using it.
path = /var/spool/postfix/private/auth-client
mode = 0660
user = postfix
group = postfix
}
}

mechanisms = plain login

# /etc/init.d/dovecot restart



< postfix-dovecot>
# apt-get install dovecot-postfix
# /etc/init.d/postfix restart


<다람쥐 메일 테스트>
http://localhost/mail/src/configtest.php

[참고 사이트]
http://www.pocock.com.au/portal/portal/pocock/wiki/Wiki;jsessionid=D68D857D58E96458D6F554523FB28AAF?action=e&windowstate=normal&page=ConvertMboxToMailbox&mode=view&language=EN
https://help.ubuntu.com/10.04/serverguide/C/postfix.html



리눅스

유용한 정보 및 자료

List of Articles
번호 분류 제목 글쓴이 날짜 조회 수
84 XE XE 추천, 신고 제한 해제 (관리자만 v1.5.2.2) 보석 2012.05.24 19542
83 XE XE 외부페이지 로그인연동 보석 2012.05.22 12715
82 Server vi 에디터 - 검색, 치환, 정규식, 명령어 보석 2012.05.20 18438
81 Server 우분투 PHP 설치 1 보석 2012.05.20 11477
80 XE XE 댓글 초기화 방법 보석 2012.05.15 11925
79 XE XE 특정 단어포함 댓글 삭제 쿼리문 1 보석 2012.04.27 13947
78 XE 콘텐츠 위젯 제목에 코드 노출되는 문제 보석 2012.04.27 11552
77 XE XE 일정기간 로그인하지 않는 회원 삭제 1 보석 2012.04.26 14613
76 XE 게시판DX 모바일 댓글 펼치기 보석 2012.04.18 12703
75 XE XE 1.5 미니온 css충돌 해결 보석 2012.04.10 15026
74 Server 우분투 서버(커맨드 모드)에서 외부 아이피 알아내기 보석 2012.04.05 14163
73 XE XE 하드용량 및 DB용량 트래픽양 표시하기 file 보석 2012.04.04 9243
72 XE XE DB 용량 확보하기 보석 2012.04.03 12859
71 Server nginx 첨부파일 용량 설정 보석 2012.04.02 18747
70 Server 우분투 원격데스크톱 설정 보석 2012.03.30 12098
» Server 우분투 메일서버 보석 2012.03.30 10154
68 XE XE 쪽지 알림이 계속 나타나게 하기 보석 2012.03.14 13331
67 XE XE 댓글 작성시에만 다운로드 가능 보석 2012.03.02 14562
66 XE XE 추천수 5이상일때 게시글 이동 보석 2012.03.02 14243
65 XE XE 추천 누른 사람 출력되게 하는방법 보석 2012.03.02 13883
Board Pagination Prev 1 2 3 4 5 6 7 8 9 10 11 Next
/ 11