로그인

검색

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
번호 분류 제목 글쓴이 날짜 조회 수
75 Server 테이블 형태 변경하기 MyISAM -> InnoDB(또는 InnoDB -> MyISAM) 보석 2011.10.21 25963
74 Server 우분투에서 압축하고 풀기( tar, gzip, tar.gz ) 보석 2011.08.31 15714
73 Server 우분투에 메일서버를 설치하자. file 보석 2011.12.10 10649
72 Server 우분투(리눅스) 상위폴더로 전체 데이터 옮기기 1 보석 2016.05.18 217
71 Server 우분투 프록시서버 만들기 file 보석 2014.02.03 9691
70 Server 우분투 폴더 소유권 설정 보석 2011.05.15 16403
69 Server 우분투 폴더 삭제 및 폴더 생성 보석 2011.05.15 21160
68 Server 우분투 트림활성화 및 수동 트림하기 보석 2012.11.04 19857
67 Server 우분투 크론 (예약작업) 설정 자동 백업 4 보석 2011.09.01 15846
66 Server 우분투 원격데스크톱 설정 보석 2012.03.30 12098
65 Server 우분투 오래된 커널 삭제 방법 보석 2016.01.14 317
64 Server 우분투 업데이트 서버 변경 보석 2012.11.11 12053
63 Server 우분투 업데이트 서버 변경 보석 2016.06.21 83
62 Server 우분투 센드메일 설치 및 설정 sendmail 2 보석 2011.05.16 22216
61 Server 우분투 서버(커맨드 모드)에서 외부 아이피 알아내기 보석 2012.04.05 14163
60 Server 우분투 사용자 패스워드 비번 변경 보석 2012.07.26 21177
» Server 우분투 메일서버 보석 2012.03.30 10154
58 Server 우분투 리눅스에서 APM 설치하기 (웹서버 설정) 보석 2011.07.04 32846
57 Server 우분투 리눅스 자주쓰는 명령어 모음 보석 2011.05.15 13727
56 Server 우분투 루트권한 얻기 보석 2011.05.15 16031
Board Pagination Prev 1 2 3 4 Next
/ 4