로그인

검색

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
번호 분류 제목 글쓴이 날짜 조회 수
55 Server [우분투] screen 명령어 보석 2013.02.04 33018
54 Server 우분투 innoDB 활성화하기 보석 2012.11.16 8568
53 Server 우분투 업데이트 서버 변경 보석 2012.11.11 12053
52 Server 우분투 트림활성화 및 수동 트림하기 보석 2012.11.04 19857
51 Server 우분투 레이드0 설치 install Ubuntu RAID0 보석 2012.10.23 11882
50 Server ssl 항상 적용하기 + http->https로 rewrite 보석 2012.08.18 20010
49 Server [우분투] SSH Server 설치하기 보석 2012.08.18 15060
48 Server Startssl.com 무료 ssl 인증서 받기 2 보석 2012.08.17 12975
47 Server Startssl.com 무료 ssl 인증서 서버 설정 보석 2012.08.17 31199
46 Server 우분투 사용자 패스워드 비번 변경 보석 2012.07.26 21177
45 Server 링크하드 nginx rewrite 해결방법 보석 2012.05.30 25204
44 Server vi 에디터 - 검색, 치환, 정규식, 명령어 보석 2012.05.20 18438
43 Server 우분투 PHP 설치 1 보석 2012.05.20 11477
42 Server 우분투 서버(커맨드 모드)에서 외부 아이피 알아내기 보석 2012.04.05 14163
41 Server nginx 첨부파일 용량 설정 보석 2012.04.02 18747
40 Server 우분투 원격데스크톱 설정 보석 2012.03.30 12098
» Server 우분투 메일서버 보석 2012.03.30 10154
38 Server 우분투 DB백업 복원 보석 2012.01.01 10681
37 Server 우분투에 메일서버를 설치하자. file 보석 2011.12.10 10649
36 Server 설치된 패키지 깨끗이 삭제하지 보석 2011.11.03 24470
Board Pagination Prev 1 2 3 4 Next
/ 4