잠시만 기다려 주세요

     '입만 나불거리고 행동하지 않는 민주당을 규탄한다.'
전체검색 :  
이번주 로또 및 연금번호 발생!!   |  HOME   |  여기는?   |  바다물때표   |  알림 (28)  |  여러가지 팁 (1134)  |  추천 및 재미 (166)  |  자료실 (25)  |  
시사, 이슈, 칼럼, 평론, 비평 (1061)  |  끄적거림 (160)  |  문예 창작 (736)  |  바람 따라 (75)  |  시나리오 (760)  |  드라마 대본 (248)  |  
살인!


    리눅스 서버

리눅스 서버 - postfix 설치 및 main.cf 설정하기...
이 름 : 바다아이   |   조회수 : 8320         짧은 주소 : https://www.bada-ie.com/su/?SjzjZD2z0uKl
postfix 나 dovecot 은 매번 설치 할 때마다 애먹습니다 -.-;
버전이 올라가고 그러면서 조금씩 설정들이 변경이 되고 그러네요...
그래서 설치하는 글을 몇개 올려놓습니다. 짜깁기 해야 될겁니다... 이렇게 저렇게 해 보세요...
언제 한번 정리는 해 놔야 저도 매번 설치할 때마다 애먹지 않는데 귀찮아서리... ^^;
여기 게시판에서 "postfix", "dovecot" 검색하시면 설치 글이 몇개 될 겁니다.

 
 
Install Postfix to configure SMTP Server. SMTP uses [25/TCP].
[1] This example shows to configure SMTP-Auth to use Dovecot's SASL function.
root@mail:~#
apt -y install postfix sasl2-bin
# on this example, proceed to select [No Configuration]
# because configure all manually
 
+------+ Postfix Configuration +-------+
| General type of mail configuration:  |
|                                      |
|       No configuration               |
|       Internet Site                  |
|       Internet with smarthost        |
|       Satellite system               |
|       Local only                     |
|                                      |
|                                      |
|       <Ok>           <Cancel>        |
|                                      |
+--------------------------------------+

root@mail:~#
cp /usr/share/postfix/main.cf.dist /etc/postfix/main.cf
 
root@mail:~#
vi /etc/postfix/main.cf
# line 78 : uncomment
mail_owner = postfix

# line 94 : uncomment and specify hostname
myhostname = mail.srv.world

# line 102 : uncomment and specify domainname
mydomain = srv.world

# line 123 : uncomment
myorigin = $mydomain

# line 137 : uncomment
inet_interfaces = all

# line 185 : uncomment
mydestination = $myhostname, localhost.$mydomain, localhost, $mydomain

# line 228 : uncomment
local_recipient_maps = unix:passwd.byname $alias_maps

# line 270 : uncomment
mynetworks_style = subnet

# line 287 : add your local network
mynetworks = 127.0.0.0/8, 10.0.0.0/24

# line 407 : uncomment
alias_maps = hash:/etc/aliases

# line 418 : uncomment
alias_database = hash:/etc/aliases

# line 440 : uncomment
home_mailbox = Maildir/

# line 576: comment out and add
#smtpd_banner = $myhostname ESMTP $mail_name (Debian/GNU)
smtpd_banner = $myhostname ESMTP

# line 650 : add
sendmail_path = /usr/sbin/postfix

# line 655 : add
newaliases_path = /usr/bin/newaliases

# line 660 : add
mailq_path = /usr/bin/mailq

# line 666 : add
setgid_group = postdrop

# line 670 : add
#html_directory =

# line 674 : comment out
#manpage_directory =

# line 679 : comment out
#sample_directory =

# line 683 : comment out
#readme_directory =

# line 684 : if also listen IPv6, change to [all]
inet_protocols = ipv4

# add follows to the end
# disable SMTP VRFY command
disable_vrfy_command = yes

# require HELO command to sender hosts
smtpd_helo_required = yes

# limit an email size
# example below means 10M bytes limit
message_size_limit = 10240000

# SMTP-Auth settings
smtpd_sasl_type = dovecot
smtpd_sasl_path = private/auth
smtpd_sasl_auth_enable = yes
smtpd_sasl_security_options = noanonymous
smtpd_sasl_local_domain = $myhostname
smtpd_recipient_restrictions = permit_mynetworks, permit_auth_destination, permit_sasl_authenticated, reject

root@mail:~#
newaliases

root@mail:~#
systemctl restart postfix
[2]
Configure additional settings for Postfix if you need.
It's possible to reject many spam emails with the settings below.
However, you should consider to apply the settings,
because sometimes normal emails are also rejected with them.
Especially, there are SMTP servers that forward lookup and reverse lookup of their hostnames on DNS do not match even if they are not spammers.
root@mail:~#
vi /etc/postfix/main.cf
# add to the end
# reject unknown clients that forward lookup and reverse lookup of their hostnames on DNS do not match
smtpd_client_restrictions = permit_mynetworks, reject_unknown_client_hostname, permit

# rejects senders that domain name set in FROM are not registered in DNS or 
# not registered with FQDN
smtpd_sender_restrictions = permit_mynetworks, reject_unknown_sender_domain, reject_non_fqdn_sender

# reject hosts that domain name set in FROM are not registered in DNS or 
# not registered with FQDN when your SMTP server receives HELO command
smtpd_helo_restrictions = permit_mynetworks, reject_unknown_hostname, reject_non_fqdn_hostname, 
reject_invalid_hostname, permit

root@mail:~#
systemctl restart postfix

 
출처 : https://www.server-world.info/en/note?os=Ubuntu_22.04&p=mail&f=1

 
| |





      1 page / 6 page
번 호 카테고리 제 목 이름 조회수
164 리눅스 서버 리눅스 해외 서버 업로드 다운로드 속도 느릴 때.. 비대칭일 때... 해외 vps 속도 문제.. 바다아이 300
163 리눅스 서버 리눅스 프로세스 "자원 양보" 설정 (nice), 리눅스 프로세스 "자원 양보" 설정 (nice) 바다아이 1685
162 리눅스 서버 데비안 13 monitorix 서버 모니터링 설치합니다. 실시간 모니터링 btop 설치... 바다아이 1666
161 리눅스 서버 debian 13 haproxy 설치하기... mariadb + haproxy 바다아이 1672
160 리눅스 서버 debian 13 fail2ban 설치하기... ssh 공격을 방어해 봅시다. 바다아이 1645
159 리눅스 서버 debian 13 webalizer 설치하기.. sid webalizer 설치하기. 바다아이 1616
158 리눅스 서버 데비안 리눅스 메모리 테스트 하기... 메모리 오류 테스트. 램 테스트. 다른 배포판도 똑같습니다. 바다아이 1623
157 리눅스 서버 proxysql 3.0.x 관리자 비밀번호 잘못 변경 했을 때....  관리자 비밀번호 까먹었을 때.... 바다아이 1732
156 리눅스 서버 mariadb + proxysql 3.0.x 설정.... mariadb 접속 안정화 proxysql pooler 사용하기... 바다아이 1820
155 리눅스 서버 데비안 apt 캐시 삭제... 필요 없는 패키지 정리... apt 최적화 바다아이 2671
154 리눅스 서버 하드디스크 상태 점검 확인, smartctl, hdd ssd 점검하기 바다아이 2817
153 리눅스 서버 아치리눅스, 데비안 수동 커널 컴파일 하기.... arch kernel compile.... 바다아이 2798
152 리눅스 서버 [Vim, Vi] 여러줄 주석 처리하기 바다아이 2735
151 리눅스 서버 데비안 커널 컴파일 하기... 바다아이 3024
150 리눅스 서버 리눅스 클라우드 vps root 비밀번호 변경하기.. 바다아이 2523
149 리눅스 서버 Ubuntu 24.04 LTS - SSH 서버 Port 변경 하기, ssh 포트 문제 바다아이 2908
148 리눅스 서버 아치리눅스 samba 서버 구축하기... 윈도우, 리눅스 폴더 공유하기... 바다아이 3779
현재글 리눅스 서버 postfix 설치 및 main.cf 설정하기... 바다아이 8321
146 리눅스 서버 /etc/crontab 파일 직접 수정하기... 바다아이 6327
145 리눅스 서버 메모리 점검 및 진단 - MEMTEST, 리눅스 램, 메모리 테스트 바다아이 8272
144 리눅스 서버 top 명령어 설명, top 명령어 사용법 바다아이 8665
143 리눅스 서버 아치리눅스 네트워크 설정하기, systemd-networkd, archlinux network setting 바다아이 9942
142 리눅스 서버 리눅스 미러 mirror 모음.. 리눅스 저장소 모음... 바다아이 10456
141 리눅스 서버 [Ubuntu] 우분투 리눅스 스왑 파일(swapfile) 생성 및 삭제, 스왑 파티션... 바다아이 10881
140 리눅스 서버 우분투 ufw 방화벽 설정하기, iptables 바다아이 11027
139 리눅스 서버 아치리눅스 부팅시 커널 선택하기... grub 원하는 커널 선택하기. submenu, grub-mkconfig, grub 순서 바다아이 9196
138 리눅스 서버 CentOS 7 Upgrade Kernel, centos 커널 변경하기 바다아이 12803
137 리눅스 서버 리눅스 서버 전체시스템 복사하기, dd 명령어, 하드 디스크 복사 바다아이 9996
136 리눅스 서버 아치리눅스 시스템 시간 안 맞을 때... ntp 시간 날짜.. 안 맞을 때... 바다아이 10854
135 리눅스 서버 archlinux netstat 명령어, 아치리눅스 netstat 명령어 설치... 바다아이 10049
| |







Copyright ⓒ 2001.12. bada-ie.com. All rights reserved.
이 사이트는 리눅스에서 chrome 기준으로 작성되었습니다. 기타 브라우저에서는 다르게 보일 수 있습니다.
[ FreeBSD + GoLang + PostgreSQL + PgBouncer ]
서버위치 : Tokyo, JP Datacenter  실행시간 : 0.01275 초
to webmaster... gogo sea. gogo sea.