로그인


2021.09.12 22:54

7. Sendmail 설치하기

https://koreanvlog.com/oracle/214 조회 수 15837 추천 수 0 댓글 0
?

단축키

Prev이전 문서

Next다음 문서

위로 아래로 댓글로 가기
?

단축키

Prev이전 문서

Next다음 문서

위로 아래로 댓글로 가기

1. Sendmail 설치

sudo apt-get install sendmail

 

SSH에서 명령어를 입력합니다.

 

After this operation, 5185 kB of additional disk space will be used. 
Do you want to continue? [Y/n] Y

 

sudo sendmailconfig

 

SSH에서 명령어를 입력합니다.

 

Configure sendmail with the existing /etc/mail/sendmail.conf? [Y] Y

Configure sendmail with the existing /etc/mail/sendmail.mc? [Y] Y

Reload the running sendmail now with the new configuration? [Y] Y

 

sudo nano /etc/php/7.4/fpm/php.ini

 

명령어를 입력 후 컨트롤+W 눌리고 sendmail_path 를 검색합니다.

 

; For Unix only.  You may supply arguments as well (default: "sendmail -t -i").
; http://php.net/sendmail-path
sendmail_path = "env -i /usr/sbin/sendmail -t -i"

 

앞에 ; 를 삭제 후 sendmail_path = 뒤에 "env -i /usr/sbin/sendmail -t -i" 를 입력합니다.

컨트롤+X 눌리고 Y 눌리고 ENTER를 칩니다.

 

sudo systemctl restart php7.4-fpm

 

PHP-FPM을 재시작 합니다.

 

sudo service sendmail start

 

Sendmail을 구동합니다.

 

sudo service sendmail status

 

Active: active (running) since Mon 2020-09-21 12:50:27 KST; 1 weeks 1 days ag 이 나오면 정상적으로 작동하는 것입니다. 컨트롤+C로 빠져나옵니다.

 

(echo "Subject: 오라클 메일에서 테스트 완성"; echo ; echo "Oracle Email Test 완성") | sendmail -i -v 나의 메일 주소

 

나의 메일 주소에 테스트 메일 받을 메일주소를 입력해서 메일이 정상적으로 온다면 설치 완료입니다.

?

오라클 클라우드

오라클 클라우드 무료티어 서버세팅 입니다.

  1. 10. 라이믹스(Rhymix) 설치하기

    짹니 2021.09.12 댓글0 조회수13726 file
    Read More
  2. No Image

    9. DB 생성하기

    짹니 2021.09.12 댓글0 조회수14088
    Read More
  3. Read More
  4. No Image

    7. Sendmail 설치하기

    짹니 2021.09.12 댓글0 조회수15837
    Read More
  5. 6. 도메인 연결 및 Nginx 라우팅 설정

    짹니 2021.09.07 댓글0 조회수17296 file
    Read More
  6. 5. MariaDB 및 phpMyAdmin 설치하기

    짹니 2021.09.07 댓글317 조회수21971 file
    Read More
  7. Read More
  8. Read More
  9. Read More
  10. Read More
  11. Read More
Board Pagination Prev 1 Next
/ 1