로깅이 활성화되면 기본 정보가 항상 제공될 뿐 아니라 MTA 옵션 파일에 다양한 LOG_* MTA 옵션을 구성하여 선택적 정보 필드가 추가로 포함되도록 할 수 있습니다. IMTA 조정 파일(msg-svr-base/config/imta_tailor)에서 IMTA_OPTION_FILE 옵션을 사용하여 지정한 파일에서 MTA 옵션 파일을 지정합니다. 기본적으로 이 파일은 msg-svr-base/config/option.dat입니다.
MTA Option 파일에 대한 자세한 내용은 Sun Java System Messaging Server 6.3 Administration Reference의 Option File을 참조하십시오.
이 절은 다음과 같은 하위 절로 구성되어 있습니다.
MTA 옵션 파일을 편집합니다.
LOG_MESSAGES_SYSLOG 옵션을 1로 설정합니다.
값이 0이면 syslog 알림 생성이 비활성화됩니다. 값이 0이 아니면 syslog 알림 생성이 활성화되며, 절대값이 syslog 우선 순위 및 기능 마스크를 제어합니다. 양수 값은 syslog 알림과 일반 mail.log* 항목을 의미합니다. 음수 값(권장되지 않음)은 syslog 알림만 의미하며 일반 mail.log* 항목을 비활성화합니다. 값 0이 기본값이며 syslog(이벤트 로그) 로깅이 수행되지 않음을 나타냅니다.
MTA option.dat 파일을 편집합니다.
LOG_FORMAT 옵션을 설정합니다.
1은 (기본값) 표준 형식입니다.
2는 null이 아닌 형식을 요청합니다. 빈 주소 필드가 "<>" 문자열로 변환됩니다”
3은 계산된 형식을 요청합니다. 모든 가변 길이 필드 앞에 N이 붙습니다. 여기서 N은 필드의 문자 수입니다.
4는 로그 항목을 XML 호환 형식으로 기록합니다. 항목 로그 항목은 여러 속성을 포함하고 하위 요소를 갖지 않은 단일의 XML 요소로 표시됩니다. 현재는 en(대기열에 포함된/대기열에서 제거된 항목), co(연결 항목) 및 he(헤더 항목)의 세 요소가 정의되어 있습니다.
대기열에 포함/대기열에서 제거(en) 요소는 다음과 같은 속성을 가질 수 있습니다.
ts - time stamp (always present) no - node name (present if LOG_NODE=1) pi - process id (present if LOG_PROCESS=1) sc - source channel (always present) dc - destination channel (always present) ac - action (always present) sz - size (always present) so - source address (always present) od - original destination address (always present) de - destination address (always present) rf - recipient flags (present if LOG_NOTARY=1) fi - filename (present if LOG_FILENAME=1) ei - envelope id (present if LOG_ENVELOPE_ID=1) mi - message id (present if LOG_MESSAGE_ID=1) us - username (present if LOG_USERNAME=1) ss - source system (present if bit 0 of LOG_CONNECTION is set and source system information is available) se - sensitivity (present if LOG_SENSITIVITY=1) pr - priority (present if LOG_PRIORITY=1) in - intermediate address (present if LOG_INTERMEDIATE=1) ia - initial address (present if bit 0 of LOG_INTERMEDIATE is set and intermediate address information is available) fl - filter (present if LOG_FILTER=1 and filter information is available) re - reason (present if LOG_REASON=1 and reason string is set) di - diagnostic (present if diagnostic info available) tr - transport information (present if bit 5 of LOG_CONNECTION is set and transport information is available) ap - application information (present if bit 6 of LOG_CONNECTION is set and application information is available) qt - the amount of time a message has spent in the queue (LOG_QUEUE_TIME=1) |
다음은 샘플 en 항목입니다.
<en ts="2004-12-08T00:40:26.70" pi="0d3730.10.43" sc="tcp_local" dc="l" ac="E" sz="12" so="info-E8944AE8D033CB92C2241E@whittlesong.com" od="rfc822;ned+2Bcharsets@mauve.sun.com" de="ned+charsets@mauve.sun.com" rf="22" fi="/path/ZZ01LI4XPX0DTM00IKA8.00" ei="01LI4XPQR2EU00IKA8@mauve.sun.com" mi="<11a3b401c4dd01$7c1c1ee0$1906fad0@elara>" us="" ss="elara.whittlesong.com ([208.250.6.25])" in="ned+charsets@mauve.sun.com" ia="ietf-charsets@innosoft.com" fl="spamfilter1:rvLiXh158xWdQKa9iJ0d7Q==, addheader, keep"/> |
이 항목은 편의상 줄 바꿈되어 있지만 실제 로그 파일 항목은 항상 한 줄로 표시됩니다.
연결(co) 항목은 다음과 같은 속성을 가질 수 있습니다.
ts - time stamp (always present, also used in en entries) no - node name (present if LOG_NODE=1, also used in en entries) pi - process id (present if LOG_PROCESS=1, also used in en entries) sc - source channel (always present, also used in en entries) dr - direction (always present) ac - action (always present, also used in en entries) tr - transport information (always present, also used in en entries) ap - application information (always present, also used in en entries) mi - message id (present only if message id info available, also used in en entries) us - username (present only if username information available, also used in en entries) di - diagnostic (present only if diagnostic information available, also used in en entries) ct - the amount of time a message has spent in the queue (LOG_QUEUE_TIME=1, also used in en entries) |
다음은 샘플 co 항목입니다.
<co ts="2004-12-08T00:38:28.41" pi="1074b3.61.281" sc="tcp_local" dr="+" ac="O" tr="TCP|209.55.107.55|25|209.55.107.104|33469" ap="SMTP"/> |
헤더(he) 항목은 다음과 같은 속성을 가집니다.
ts - time stamp (always present, also used in en entries) no - node name (present if LOG_NODE=1, also used in en entries) pi - process id (present if LOG_PROCESS=1, also used in en entries) va - header line value (always present) |
다음은 샘플 he 항목입니다.
<he ts="2004-12-08T00:38:31.41" pi="1074b3.61.281" va="Subject: foo"/> |
MTA 옵션 파일을 편집합니다.
이 옵션은 메시지가 대기열에 보관되어 있었던 시간을 기록합니다. 대기열 시간은 정수 값(초)으로 기록되며,응용 프로그램 정보 문자열 바로 뒤에 비 XML 형식 로그로 표시됩니다. 이 값에 대한 XML 형식 로그의 속성 이름은 qt입니다.
MTA 옵션 파일을 편집합니다.
이 옵션을 사용하면 특정 메시지 파일의 전달이 재시도된 횟수를 곧바로 쉽게 알 수 있 습니다. 또한 이 옵션을 사용하면 MTA가 여러 수신자를 대상으로 하는 메시지를 디스크 상에서 개별 메시지 파일 복사본으로 분할하거나 분할하지 않은 경우를 식별할 수 있습니다.
MTA 옵션 파일을 편집합니다.
이 옵션을 사용하면 MTA는 메시지 트래픽 뿐만 아니라 TCP/IP 연결을 기록합니다. 연결 로그 항목은 기본적으로 mail.log* 파일에 기록됩니다. 또는 연결 로그 항목을 connection.log* 파일에 기록할 수도 있습니다. 자세한 내용은 SEPARATE_CONNECTION_LOG 옵션을 참조하십시오.
MTA 옵션 파일을 편집합니다.
SEPARATE_CONNECTION_LOG 옵션을 1로 설정합니다.
연결 로그 항목을 connection.log 파일에 대신 기록하도록 지정하려면 이 옵션을 사용합니다. 기본값 0을 사용하면 연결 로깅이 MTA 로그 파일에 저장됩니다.