큐 확인.
mailq
강제 큐 송출
sendmail -oQ/var/spool/mqueue -oT1d -q -v
---------------------------------------------------------------------------
멀티큐는 기본.
mkdir /var/spool/mqueue/q{1,2,3,4,5,6,7,8,9}
/etc/mail/sendmail.cf에서 아래처럼 변경.
# queue directory
#O QueueDirectory=/var/spool/mqueue
O QueueDirectory=/var/spool/mqueue/q*
명령어 사용.
perl -pi -e 's/O\ QueueDirectory=\/var\/spool\/mqueue/O\ QueueDirectory=\/var\/spool\/mqueue\/q\*/g' /etc/mail/sendmail.cf
재시작.
service sendmail restart
댓글 없음:
댓글 쓰기