Linux
PHP 첨부파일 용량 문제
Jack Moon
2020. 2. 6. 12:59
상황: 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