RSS구독하기:SUBSCRIBE TO RSS FEED
즐겨찾기추가:ADD FAVORITE
글쓰기:POST
관리자:ADMINISTRATOR

Postfix


IMX 메일서버의 포워딩 전용 설정의 예임.

Edit
 
설정

/etc/postfix/main.cf
myhostname = mail.mbcjapan.co.jp
mydomain = mbcjapan.co.jp
inet_interfaces = all

mydestination = $myhostname, $mydomain, localhost.$mydomain, localhost,
        kbs-tv.jp, mail.www.kbs-tv.jp, imx.catoms.net

mynetworks = 101.79.75.0/24, 127.0.0.0/8

## 아래 2개 설정은 확인만
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases

## 추가
smtpd_client_restrictions = check_client_access hash:/etc/postfix/access


/etc/aliases

#imbc: /etc/mail/ml/imbc.ml
admin:     miz@brokore.com,masu@brokore.com,takano@brokore.com,mori@brokore.com,yamamoto@brokore.com
info:      miz@brokore.com,masu@brokore.com,takano@brokore.com,mori@brokore.com,yamamoto@brokore.com
sps:       miz@brokore.com,masu@brokore.com,takano@brokore.com,mori@brokore.com,yamamoto@brokore.com
cs:        miz@brokore.com,masu@brokore.com,takano@brokore.com,mori@brokore.com,yamamoto@brokore.com
partner:   miz@brokore.com,masu@brokore.com,takano@brokore.com,mori@brokore.com,yamamoto@brokore.com
webmaster: miz@brokore.com,masu@brokore.com,takano@brokore.com,mori@brokore.com,yamamoto@brokore.com,fss1999@brokore.com
event:     miz@brokore.com,masu@brokore.com,takano@brokore.com,mori@brokore.com,yamamoto@brokore.com
ad:        miz@brokore.com,masu@brokore.com,takano@brokore.com,mori@brokore.com,yamamoto@brokore.com
rakuten:   fss1999@brokore.com,rakuten_mbc@yahoo.co.jp
yahoo:     masu@brokore.com,yamamoto@brokore.com,miz@brokore.com,fss1999@brokore.com
present:   present_mbc@yahoo.co.jp

## test
catenoid:  gnoc@catenoid.net

#admin@mbcjapan.co.jp:    imbc
#info@mbcjapan.co.jp:     imbc
#sps@mbcjapan.co.jp:      imbc
#cs@mbcjapan.co.jp:       imbc
#partner@mbcjapan.co.jp:  imbc
#webmaster@mbcjapan.co.jp:        imbc

 


/etc/aliase 파일을 편집후,
newalias 또는 postalias /etc/aliases 명령어를 내려줘야 함.
또는 간단하게 /etc/init.d/postfix restart

/etc/postfix/access
localhost.localdomain           OK
localhost                       OK
127.0.0.1                       OK
mbcjapan.co.jp                  OK
210.198.17                      OK
211.9.51                        OK
61.74.133                       OK
58.150.206.99                   OK
58.228.207.65                   OK
210.198.17.51                   OK
210.198.17.42                   OK

 

access 파일 편집후,
postmap /etc/postfix/access 명령어를 내려줘야함.

/etc/init.d/postfix
start() {
        [ "$EUID" != "0" ] && exit 4
        # Check that networking is up.
        [ ${NETWORKING} = "no" ] && exit 1
        conf_check
        # Start daemons.
        echo -n $"Starting postfix: "
        make_aliasesdb >/dev/null 2>&1
        postmap /etc/postfix/access                     ## catenoid@2012.07.23, 한줄추가
        [ -x $CHROOT_UPDATE ] && $CHROOT_UPDATE
        /usr/sbin/postfix start 2>/dev/null 1>&2 && success || failure $"$prog start"
        RETVAL=$?
        [ $RETVAL -eq 0 ] && touch $lockfile
        echo
        return $RETVAL
}


Edit
 
postfix 설정 내용 보기
shell> postconf
2bounce_notice_recipient = postmaster
access_map_defer_code = 450
access_map_reject_code = 554
address_verify_default_transport = $default_transport
address_verify_local_transport = $local_transport
address_verify_map =
address_verify_negative_cache = yes
address_verify_negative_expire_time = 3d
address_verify_negative_refresh_time = 3h
...


Edit
 
기본값(built-in)과 다른 설정 내용


2012.08.28 일 기준
shell> postconf -n
alias_database = hash:/etc/aliases
alias_maps = hash:/etc/aliases
anvil_rate_time_unit = 20s
command_directory = /usr/sbin
config_directory = /etc/postfix
daemon_directory = /usr/libexec/postfix
data_directory = /var/lib/postfix
debug_peer_level = 2
html_directory = no
inet_interfaces = all
inet_protocols = all
mail_owner = postfix
mailq_path = /usr/bin/mailq.postfix
manpage_directory = /usr/share/man
mydestination = $myhostname, $mydomain, localhost.$mydomain, localhost, kbs-tv.jp, mail.kbs-tv.jp, koreantvch.jp, mail.koreantvch.jp, imx.catoms.net
mydomain = mbcjapan.co.jp
myhostname = mail.mbcjapan.co.jp
mynetworks = hash:/etc/postfix/access
myorigin = $mydomain
newaliases_path = /usr/bin/newaliases.postfix
queue_directory = /var/spool/postfix
readme_directory = /usr/share/doc/postfix-2.6.6/README_FILES
sample_directory = /usr/share/doc/postfix-2.6.6/samples
sendmail_path = /usr/sbin/sendmail.postfix
setgid_group = postdrop
smtp_sasl_auth_enable = no
smtpd_client_restrictions = smtpd_client_restrictions = $mynetworks
unknown_local_recipient_reject_code = 550


Edit
 
시작/종료/재시작
/etc/rc.d/init.d/postfix start
/etc/rc.d/init.d/postfix stop
/etc/rc.d/init.d/postfix restart

2014/10/06 16:21 2014/10/06 16:21
http://zosel.net/trackback/165
ZOSEL:Too much is as bad as too little...!! 자공(子貢)이 공자에게 "사(師:子張의 이름)와 상(商:子夏의 이름)은 어느 쪽이 어집니까?" 하고 묻자, 공자는 "사는 지나치고 상은 미치지 못한다"고 대답하였다. "그럼 사가 낫단 말씀입니까?" 하고 반문하자, 공자는 "지나친 것은 미치지 못한 것과 같다(過猶不及)"고 말하였다.
Too much is as bad as too little...!! 자공(子貢)이 공자에게 "사(師:子張의 이름)와 상(商:子夏의 이름)은 어느 쪽이 어집니까?" 하고 묻자, 공자는 "사는 지나치고 상은 미치지 못한다"고 대답하였다. "그럼 사가 낫단 말씀입니까?" 하고 반문하자, 공자는 "지나친 것은 미치지 못한 것과 같다(過猶不及)"고 말하였다.
전체 (209)
리눅스시스템 (92)
윈도우시스템 (16)
프로그램 (7)
네트워크시스템 (7)
최근관심 (1)
«   2021/01   »
          1 2
3 4 5 6 7 8 9
10 11 12 13 14 15 16
17 18 19 20 21 22 23
24 25 26 27 28 29 30
31            
  1. Ugg Sito  2015
    Ugg Sito
  2. Ugg Online  2015
    Ugg Online
  3. Ugg Boots Outlet Italia  2015
    Ugg Boots Outlet Italia
  1. 2018/02 (1)
  2. 2017/03 (2)
  3. 2016/12 (2)