상황: PHP에서 첨부파일을 보내는데 일정 크기 이상은 메일이 나가지 않는다. PHP 에서도 에러가 나지 않음
원인: PHP의 문제가 아닌 MTA의 문제
해결:
phpinfo()를 보니 senamail_path=/usr/sbin/sendmail
그래서 찾아들어가 봤다.
[root@~]# ll /usr/sbin/sendmail
lrwxrwxrwx. 1 root root 21 2017-10-11 10:49 /usr/sbin/sendmail -> /etc/alternatives/mta
[root@~]# ll /etc/alternatives/mta
lrwxrwxrwx. 1 root root 26 2017-10-11 10:49 /etc/alternatives/mta -> /usr/sbin/sendmail.postfix
어라 postfix를 쓰고 있네
[root@~]# service postfix status
master (pid 12405)를 실행하고 있습니다..
역시 데몬도 돌고 있다
설정파일 수정 후 데몬 restart
[root@~]# vi /etc/postfix/main.cf
message_size_limit = 50000000
[root@~]# service postfix restart
'Linux' 카테고리의 다른 글
Centos 8 설치 및 셋팅 (0) | 2020.03.06 |
---|---|
CentOS 7, 8 iptables 사용하기 (0) | 2020.02.24 |
iptables DROP 로그 남기기 (0) | 2019.11.08 |
Centos 7 에 vns server , python 3 설치 (0) | 2019.08.16 |
CentOS 6 으로 버전 업데이트 하고 몇가지 문제점 (0) | 2019.08.06 |