15 04 2014
Linux – sendmail multi queue
개요
-sendmail을 이용하여 메일을 보낼경우 /var/spool/mqueue/디렉토리에 내용을 저장한후 SMTP로 전송된다.
이디렉토리 한곳에 대용량의 경우 수만건이 쌓이게 되므로 성능향상을 위해 디렉토리를 분리해서 넣도록 하자.
– /var/spool/mqueue/q1,q2,q3…디렉토리에 쌓이 도록 하자.
20개의 폴더를 만든다.(적당히 알아서)
1 |
mkdir /var/spool/mqueue/q{1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20} |
1 |
vi /etc/mail/sendmail.cf |
1 |
O QueueDirectory=/var/spool/mqueue/q* |
sendmail 재시작
1 |
service sendmail restart |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 |
확인하는 방법은 [root@service mqueue]# mailq /var/spool/mqueue/q17 is empty /var/spool/mqueue/q14 is empty /var/spool/mqueue/q19 is empty /var/spool/mqueue/q7 is empty /var/spool/mqueue/q9 is empty /var/spool/mqueue/q11 is empty /var/spool/mqueue/q15 is empty /var/spool/mqueue/q1 is empty /var/spool/mqueue/q4 is empty /var/spool/mqueue/q20 is empty /var/spool/mqueue/q18 is empty /var/spool/mqueue/q10 is empty /var/spool/mqueue/q6 is empty /var/spool/mqueue/q5 is empty /var/spool/mqueue/q12 is empty /var/spool/mqueue/q2 is empty /var/spool/mqueue/q16 is empty /var/spool/mqueue/q3 is empty /var/spool/mqueue/q8 is empty /var/spool/mqueue/q13 is empty Total requests: 0 |
CentOS – SendMail Install CentOS Hostname 변경