CentOS 7 에 postfix dovecot 메일서버 설치 및 설정 > 개발

본문 바로가기
사이트 내 전체검색

개발

CentOS 7 에 postfix dovecot 메일서버 설치 및 설정

페이지 정보

profile_image
작성자 관리자 (61.♡.222.236)
댓글 0건 조회 2,467회 작성일 19-05-20 18:12

본문

ㅁ postfix 설치

방화벽에서 포트를 열어 주어야 한다.
# firewall-cmd --zone=public --add-service=smtp --permanent
# firewall-cmd --reload


ㅇ 여러 도메인의 메일을 받는 방법
http://www.postfix.org/VIRTUAL_README.html


- 로컬 계정이 있고 그 계정으로 받으려면, 간단히 mydestination 에 도메인을 추가해 주면 된다.

As simple as can be: shared domains, UNIX system accounts

The simplest method to host an additional domain is to add the domain name to the domains listed in the Postfix mydestination configuration parameter, and to add the user names to the UNIX password file.

This approach makes no distinction between canonical and hosted domains. Each username can receive mail in every domain.

In the examples we will use "example.com" as the domain that is being hosted on the local Postfix machine.

[code]
/etc/postfix/main.cf:
    mydestination = $myhostname localhost.$mydomain ... example.com
[/code]

- 로컬 계정이 없거나 특정계정으로 돌려 받으려면, virtual 설정을 해 줘야 한다.
이 경우, virtual_alias_domains 와 virtual_alias_maps 를 쌍으로 설정해야 한다.

Postfix virtual ALIAS example: separate domains, UNIX system accounts
[code]
1 /etc/postfix/main.cf:
2    virtual_alias_domains = example.com ...other hosted domains...
3    virtual_alias_maps = hash:/etc/postfix/virtual
4
5 /etc/postfix/virtual:
6    postmaster@example.com postmaster
7    info@example.com      joe
8    sales@example.com      jane
9    # Uncomment entry below to implement a catch-all address
10    # @example.com        jim
11    ...virtual aliases for more domains...
[/code]
Execute the command "postmap /etc/postfix/virtual" after changing the virtual file, and execute the command "postfix reload" after changing the main.cf file.


ㅇ RBL 을 이용한 스팸 차단 방법
https://spam.kisa.or.kr/rbl/sub2_R.do?idx=10&tPage=1

ㅇ 스팸 방지를 위한 몇가지 방법
https://www.linuxbabe.com/mail-server/block-email-spam-postfix



ㅁ Dovecot IMAP/POP3 email server

dovecot 설치
# yum -y install dovecot
의존성 패키지인 clucene-core 가 같이 설치가 된다.


ㅁ 다람쥐메일 설치

우선, squirrelmail 은 epel 저장소에 있다. 저장소를 먼저 설치해야 한다.
# yum -y install squirrelmail
의존성 패키지인 hunspell, hunspell-en, hunspell-en-GB, hunspell-en-US, psmisc, tmpwatch 가 같이 설치가 된다. 이들은 모두 base 저장소에 있다.



참고
http://support.moonpoint.com/network/email/postfix/firewalld-postfix.php

추천0

댓글목록

등록된 댓글이 없습니다.

Total 386건 9 페이지
  • RSS

검색


사이트 정보

Copyright © Baragi.Net. All rights reserved.