[AIX 네트워크 관리 6] 메일 (5) sendmail 디버그 플래그, IMAP·POP 서버, 메일 명령과 파일

핵심 정리

  • sendmail 디버그는 -d플래그.수준으로 켜며, 수준 9보다 크면 특정 코드 디버깅용일 만큼 많이 출력합니다. 예: -d8(DNS 이름 풀이), -d17(MX 호스트 목록). 플래그는 200개 가까이 있습니다.
  • AIX는 원격 메일 접근용으로 POP(POP3DS)와 IMAP(IMAPDS) 서버를 제공합니다. POP는 오프라인 방식으로 한 번에 한 클라이언트만 메일함에 접근하고, IMAP은 원격 메일함을 로컬처럼 다루며 여러 클라이언트가 동시에 접근할 수 있습니다. 메일 보내기는 SMTP에 맡깁니다.
  • 구성: /etc/inetd.conf에서 imapd·imapds·pop3d·pop3ds 줄의 주석을 풀고 refresh -s inetd. SSL 판(IMAPDS·POP3DS)은 OpenSSL과 인증서가 필요합니다. (6.1) /etc/imapd.cf·/etc/pop3d.cf에서 SSLv2·SSLv3을 끄고 SSL_CIPHER_LIST로 암호 목록을 정할 수 있습니다.
  • 시험: netstat -a | grep imap, netstat -a | grep pop으로 LISTEN을 확인하고, telnet 호스트 143·telnet 호스트 110으로 직접 명령을 내 봅니다.
  • 로그: /etc/syslog.conf에 *.debug /usr/adm/imapd.log를 넣고 파일을 만든 뒤 refresh -s syslogd.
항목 내용
버전 AIX 5.3, AIX 6.1 (6.1에서 imapd.cf·pop3d.cf의 SSL 설정이 더해짐)
원문 Networks and communication management — 5.3판 5458쪽, 6.1판 94100쪽
파일 /etc/inetd.conf, /etc/imapd.cf, /etc/pop3d.cf, /etc/syslog.conf, /usr/adm/imapd.log
포트 IMAP 143, IMAPDS 993, POP3 110, POP3DS 995 (모두 inetd가 처리)

sendmail의 디버그 플래그

sendmail 명령에는 디버그 플래그가 아주 많이 들어 있습니다.

디버그 플래그마다 번호와 수준이 있으며, 수준이 높을수록 더 많은 정보를 출력합니다. 관례상 수준이 9보다 크면 출력이 너무 많아 특정 코드를 디버깅할 때만 씁니다. 디버그 플래그는 다음 예처럼 -d 플래그로 설정합니다.

text
debug-flag:     -d debug-list
debug-list:     debug-flag[.debug-flag]*
debug-flag:     debug-range[.debug-level]
debug-range:    integer|integer-integer
debug-level:    integer
-d12            Set flag 12 to level 1
-d12.3          Set flag 12 to level 3
-d3-17          Set flags 3 through 17 to level 1
-d3-17.4        Set flags 3 through 17 to level 4

쓸 수 있는 디버그 플래그는 다음과 같습니다.

플래그 뜻
-d0 일반 디버깅
-d1 보내기 정보 표시
-d2 finis( )로 끝냄
-d3 부하 평균 출력
-d4 디스크 공간이 충분한지
-d5 이벤트 표시
-d6 실패한 메일 표시
-d7 큐 파일 이름
-d8 DNS 이름 풀이
-d9 RFC1413 조회 추적
-d9.1 호스트 이름을 정식(canonical) 이름으로 만들기
-d10 받는 사람 배달 표시
-d11 배달 추적
-d12 상대 호스트 매핑 표시
-d13 배달 표시
-d14 머리글 필드 쉼표 표시
-d15 네트워크 get 요청 활동 표시
-d16 나가는 연결
-d17 MX 호스트 나열

참고: 지금 sendmail에는 디버그 플래그가 200개 가까이 정의되어 있습니다.

영어 원문

Debug flags for sendmail

There are a large number of debug flags built into the sendmail command.

Each debug flag has a number and level, where higher levels print more information. The convention is levels greater than nine print out so much information that they are used only for debugging a particular piece of code. Debug flags are set using the -d flag as shown in the following example:

text
debug-flag:     -d debug-list
debug-list:     debug-flag[.debug-flag]*
debug-flag:     debug-range[.debug-level]
debug-range:    integer|integer-integer
debug-level:    integer
-d12            Set flag 12 to level 1
-d12.3          Set flag 12 to level 3
-d3-17          Set flags 3 through 17 to level 1
-d3-17.4        Set flags 3 through 17 to level 4

The available debug flags are:

  • -d0 — General debugging.
  • -d1 — Show send information.
  • -d2 — End with finis( ).
  • -d3 — Print the load average.
  • -d4 — Enough disk space.
  • -d5 — Show events.
  • -d6 — Show failed mail.
  • -d7 — The queue file name.
  • -d8 — DNS name resolution.
  • -d9 — Trace RFC1413 queries.
  • -d9.1 — Make host name canonical.
  • -d10 — Show recipient delivery.
  • -d11 — Trace delivery.
  • -d12 — Show mapping of relative host.
  • -d13 — Show delivery.
  • -d14 — Show header field commas.
  • -d15 — Show network get request activity.
  • -d16 — Outgoing connections.
  • -d17 — List MX hosts.
  • Note: There are now almost 200 defined debug flags in sendmail.

IMAP과 POP

AIX는 원격으로 메일에 접근하는 인터넷 기반 메일 프로토콜 서버 구현 두 가지를 제공합니다.

  • POP(Post Office Protocol) 또는 POP3DS
  • IMAP(Internet Message Access Protocol) 또는 IMAPDS

두 서버 모두 전자 메시지를 저장하고 접근하게 합니다. 서버에서 이런 메일 접근 프로토콜을 쓰면, 메일을 받으려고 컴퓨터를 늘 켜 두어야 할 필요가 없어집니다.

POP나 POP3DS 서버는 오프라인 메일 시스템을 제공합니다. 클라이언트는 POP나 POP3DS 클라이언트 소프트웨어로 메일 서버에 원격으로 접근해 메일 메시지를 가져옵니다. 클라이언트는 메시지를 내려받은 뒤 서버에서 바로 지우거나, 내려받고 POP·POP3DS 서버에 남겨 둘 수 있습니다. 메일을 클라이언트 기계로 내려받은 뒤에는 모든 메일 처리가 클라이언트 기계에서 이루어집니다. POP 서버는 사용자 메일함에 한 번에 한 클라이언트만 접근하게 합니다. POP3DS 판은 OpenSSL 라이브러리를 쓰며 보안 인증서가 필요합니다.

IMAP이나 IMAPDS 서버는 POP 기능을 모두 포함하지만 인터페이스가 다릅니다. 오프라인 서비스뿐 아니라 온라인 서비스와 연결 끊김(disconnected) 서비스도 제공합니다. 이 프로토콜은 원격 메일함을 로컬처럼 다룰 수 있도록 설계되었습니다. 예를 들어 클라이언트는 검색을 하고 메시지에 deleted나 answered 같은 상태 플래그를 표시할 수 있습니다. 또 메시지는 명시적으로 지울 때까지 서버 데이터베이스에 남을 수 있습니다. IMAP 서버는 여러 클라이언트가 사용자 메일함에 동시에 대화식으로 접근하게 합니다. IMAPDS 판은 OpenSSL 라이브러리를 쓰며 보안 인증서가 필요합니다.

두 서버 모두 메일 접근에만 씁니다. 메일 보내기는 SMTP(Simple Mail Transfer Protocol)에 맡깁니다.

두 프로토콜 모두 RFC에 설명된 표준을 바탕으로 한 공개 프로토콜입니다. IMAP 서버는 RFC 2060과 2061, POP 서버는 RFC 1939를 바탕으로 합니다. 둘 다 TCP 소켓을 쓰는 연결 지향 방식입니다. IMAP 서버는 포트 143, IMAPDS 서버는 포트 993, POP 서버는 포트 110, POP3DS 서버는 포트 995에서 기다립니다. 모든 서버는 inetd 데몬이 처리합니다.

요구 사항: OpenSSL 판을 쓰려면 OpenSSL을 설치해야 합니다. OpenSSL은 AIX Toolbox for Linux Applications CD에 있습니다.

영어 원문

Internet Message Access Protocol and Post Office Protocol

AIX provides two Internet-based mail protocol server implementations for accessing mail remotely.

  • Post Office Protocol (POP or POP3DS)

  • Internet Message Access Protocol (IMAP or IMAPDS)

Each type of server stores and provides access to electronic messages. Using these mail access protocols on a server eliminates the requirement that, to receive mail, a computer must always be up and running.

The POP or POP3DS server provides an offline mail system, whereby a client, using POP or POP3DS client software, can remotely access a mail server to retrieve mail messages. The client can either download the mail messages and immediately delete the messages from the server, or download the messages and leave the messages resident on the POP or POP3DS server. After the mail is downloaded to the client machine, all mail processing is local to the client machine. The POP server allows access to a user mailbox one client at a time. The POP3DS version uses the OpenSSL libraries, which require security certificates.

The IMAP or IMAPDS server provides a superset of POP functionality but has a different interface. The IMAP or IMAPDS server provides an offline service, as well as an online service and a disconnected service. The protocol is designed to permit manipulation of remote mailboxes as if they were local. For

example, clients can perform searches and mark messages with status flags such as deleted or answered. In addition, messages can remain in the server database until explicitly removed. The IMAP server also allows simultaneous interactive access to user mailboxes by multiple clients. The IMAPDS version uses the OpenSSL libraries, which require security certificates.

Each type of server is used for mail access only. These servers rely on the Simple Mail Transfer Protocol (SMTP) for sending mail.

Each protocol is an open protocol, based on standards described in RFCs. The IMAP servers are based on RFC 2060 and 2061, and the POP servers are based on RFC 1939. Both are connection-oriented using TCP sockets. The IMAP server listens on port 143, and the IMAPDS server listens on port 993. The POP server listens on port 110, and the POP3DS server listens on port 995. All servers are handled by the inetd daemon.

Requirement: To use the OpenSSL versions, you must install OpenSSL. OpenSSL is available on the AIX Toolbox for Linux Applications CD.

IMAP과 POP 서버 구성하기

IMAP과 POP 서버를 구성하는 절차입니다. 이 작업에는 root 권한이 필요합니다.

  1. /etc/inetd.conf 파일에서 imapd나 imapds, pop3d나 pop3ds 구성 항목의 주석을 풉니다. 구성 항목의 예입니다.
text
#imap2  stream  tcp     nowait  root    /usr/sbin/imapd imapd
#pop3   stream  tcp     nowait  root    /usr/sbin/pop3d pop3d
#imaps  stream  tcp     nowait  root    /usr/sbin/imapds imapds
#pop3s   stream  tcp     nowait  root   /usr/sbin/pop3ds pop3ds
  1. (6.1) imapds 서버의 구성은 /etc/imapd.cf 파일에, pop3ds 서버의 구성은 /etc/pop3d.cf 파일에 설정합니다. 기본으로 imapds와 pop3ds 서버에는 보안이 약한 핸드셰이크 프로토콜인 SSLv2(Secure Sockets Layer version 2)와 SSLv3이 켜져 있습니다. 그러나 다음 예처럼 구성 파일을 고쳐 SSLv2와 SSLv3을 끌 수 있습니다. 구성 파일에 SSL_CIPHER_LIST 문자열을 지정해 원하는 암호(cipher)를 켜거나 끌 수도 있습니다. 이 옵션은 응용 프로그램에 하드코딩된 기본 암호 문자열을 덮어씁니다.

    imapds 서버의 구성 파일(/etc/imapd.cf)

text
#==================================================================
#
# Sample IMAP Server Configuration File
#
#==================================================================
#==================================================================
# Uncomment the line below to Disable SSL v2 for the imap server.
#
#   Disable SSL V2  --->  SSL_OP_NO_SSLv2         YES
#   Allow SSL V2    --->  SSL_OP_NO_SSLv2         NO
#
#
#SSL_OP_NO_SSLv2         YES  <-------------- uncomment this line to disable sslv2
#==================================================================
# Uncomment the line below to Disable SSL v3 for the imap server.
#
#   Disable SSL V3  --->  SSL_OP_NO_SSLv3         YES
#   Allow SSL V3    --->  SSL_OP_NO_SSLv3         NO
#
#
#SSL_OP_NO_SSLv3         YES  <-------------- uncomment this line to disable sslv3
#==================================================================
# Uncomment the line below to use the user provided cipher list
# for the imap server. Parser logic expect Cipher string within " ".
#
#
#SSL_CIPHER_LIST "ALL:!LOW" <--- uncomment this line to customized (enable/disabled) ciphers string
#==================================================================

pop3ds 서버의 구성 파일(/etc/pop3d.cf)

text
#==================================================================
#
# Sample POP3 Server Configuration File
#
#==================================================================
#==================================================================
# Uncomment the line below to Disable SSL v2 for the pop3d server.
#
#   Disable SSL V2  --->  SSL_OP_NO_SSLv2         YES
#   Allow SSL V2    --->  SSL_OP_NO_SSLv2         NO
#
#
#SSL_OP_NO_SSLv2         YES  <----------- uncomment this line to disable sslv2
#==================================================================
# Uncomment the line below to Disable SSL v3 for the pop3d server.
#
#   Disable SSL V3  --->  SSL_OP_NO_SSLv3         YES
#   Allow SSL V3    --->  SSL_OP_NO_SSLv3         NO
#
#
#SSL_OP_NO_SSLv3         YES  <----------- uncomment this line to disable sslv3
#==================================================================
# Uncomment the line below to use the user provided cipher list
# for the pop3d server. Parser logic expect Cipher string within " ".
#
#
#SSL_CIPHER_LIST "ALL:!LOW" <---- uncomment this line to customized (enable/disabled) ciphers string
#==================================================================
  1. 다음 명령으로 inetd 데몬을 새로 고칩니다.
text
refresh -s inetd

구성 시험하기

서버가 동작할 준비가 되었는지 몇 가지 시험을 합니다.

  1. 먼저 서버가 자기 포트에서 기다리는지 확인합니다. 명령 프롬프트에서 다음 명령을 하나씩 입력하고 Enter를 누릅니다.
text
netstat -a | grep imap
netstat -a | grep pop

netstat 명령의 출력은 다음과 같습니다.

text
tcp     0       0     *.imap2         *.*        LISTEN
tcp     0       0     *.imaps         *.*        LISTEN
tcp     0       0     *.pop3          *.*        LISTEN
tcp     0       0     *.pop3s         *.*        LISTEN
  1. 비슷한 출력이 나오지 않으면 /etc/inetd.conf 파일의 항목을 다시 확인하고 refresh -s inetd 명령을 다시 실행합니다.

  2. imapd 서버의 구성을 시험하려면 Telnet으로 imap2 서버의 포트 143(IMAPDS는 포트 993)에 접속합니다. Telnet으로 연결하면 imapd 프롬프트가 나옵니다. 그다음 RFC 1730에 정의된 IMAP 버전 4 명령을 입력할 수 있습니다. 명령을 실행하려면 마침표(.), 공백, 토큰, 명령 이름, 매개변수를 차례로 입력합니다. 토큰은 명령의 순서를 매기는 데 씁니다. 예:

text
. token CommandName parameters

imapd 서버에 Telnet으로 접속하면 암호가 화면에 그대로 보입니다. 다음 Telnet 예에서 login 명령의 id_password 자리에 자기 암호를 넣어야 합니다.

팁: IMAPDS에서는 명령과 출력이 조금 다릅니다.

text
telnet e-xbelize 143
Trying...
Connected to e-xbelize.austin.ibm.com.
Escape character is ’^]’.
* OK e-xbelize.austin.ibm.com IMAP4 server ready
. 1 login id id_password
. OK
. 2 examine /usr/spool/mail/root
* FLAGS (\Answered \Flagged \Draft \Deleted \Seen)
* OK [PERMANENTFLAGS (\Answered \Flagged \Draft \Deleted \Seen \*)]
* 0 EXISTS
* 0 RECENT
* OK [UIDVALIDITY 823888143]
. OK [READ-ONLY] Examine completed
. 3 logout
* BYE Server terminating connection
. OK Logout completed
Connection closed.
  1. pop3d 서버의 구성을 시험하려면 Telnet으로 POP3 포트 110(POP3DS는 포트 995)에 접속합니다. Telnet으로 연결하면 pop3d 프롬프트가 나옵니다. RFC 1725에 정의된 POP 명령을 입력할 수 있습니다. 명령을 실행하려면 마침표(.), 공백, 명령 이름을 입력합니다. 예:
text
. CommandName

pop3d 서버에 Telnet으로 접속하면 암호가 화면에 그대로 보입니다. 다음 Telnet 예에서 pass 명령의 id_password 자리에 자기 암호를 넣어야 합니다.

팁: POP3DS에서는 명령과 출력이 조금 다릅니다.

text
telnet e-xbelize 110
Trying...
Connected to e-xbelize.austin.ibm.com.
Escape character is ’^]’.
+OK e-xbelize.austin.ibm.com POP3 server ready
user id
+OK Name is a valid mailbox
pass id_password
+OK Maildrop locked and ready
list
+OK scan listing follows
.
stat
+OK 0 0
quit
+OK
Connection closed.
영어 원문

Configuring IMAP and POP servers

Use this procedure to configure IMAP and POP servers.

To perform this task, you must have root authority.

  1. Uncomment the imapd or imapds and pop3d or pop3ds configuration entries in the /etc/inetd.conf file. The following are examples of the configuration entries:
text
#imap2  stream  tcp     nowait  root    /usr/sbin/imapd imapd
#pop3   stream  tcp     nowait  root    /usr/sbin/pop3d pop3d
#imaps  stream  tcp     nowait  root    /usr/sbin/imapds imapds
#pop3s   stream  tcp     nowait  root   /usr/sbin/pop3ds pop3ds
  1. Set the configuration files for the imapds server in the /etc/imapd.cf file and for the pop3ds server in the /etc/pop3d.cf file. By default, the less secured security handshaking protocols Secure Sockets Layer version 2 (SSLv2) and SSLv3 are enabled for the imapds server and the pop3ds server. However, you can disable SSLv2 and SSLv3 by updating the configuration files as shown in the following example. You can also enable or disable any cipher by specifying the SSL_CIPHER_LIST string in the configuration file. This option overwrites the default ciphers string that is hardcoded in the applications.

Configuration file for the imapds server (/etc/imapd.cf)

(28줄짜리 예는 위 한글 본문에 그대로 실었습니다.)

Configuration file for the pop3ds server (/etc/pop3d.cf)

(28줄짜리 예는 위 한글 본문에 그대로 실었습니다.)

  1. Refresh the inetd daemon by running the following command:
text
refresh -s inetd

Running configuration tests

Run a few tests to verify the servers are ready for operation.

  1. First, verify the servers are listening on their ports. To do this, type the following commands at a command prompt, pressing the Enter key after each command:
text
netstat -a | grep imap
netstat -a | grep pop

The following is the output from the netstat commands:

text
tcp     0       0     *.imap2         *.*        LISTEN
tcp     0       0     *.imaps         *.*        LISTEN
tcp     0       0     *.pop3          *.*        LISTEN
tcp     0       0     *.pop3s         *.*        LISTEN
  1. If you do not receive similar output, recheck the entries in the /etc/inetd.conf file, and then rerun the refresh -s inetd command.

  2. To test the configuration of the imapd server, use Telnet to access the imap2 server, port 143 (for IMAPDS, Telnet port 993). When you connect using Telnet, you get the imapd prompt. You can then enter the IMAP Version 4 commands as defined in RFC 1730. To run a command, type a period (.), followed by a space, then token, command name, and any parameters. The token is used to sequence the command name. For example:

text
. token CommandName parameters

Passwords are echoed when you Telnet into the imapd server. In the following Telnet example, you must provide your own password where id_password is indicated in the login command.

Tip: For IMAPDS, the command and output varies slightly.

(18줄짜리 예는 위 한글 본문에 그대로 실었습니다.)

  1. To test the configuration of the pop3d server, use Telnet to access the POP3 port, 110 (for POP3DS, Telnet port 995). When you connect using Telnet, you get the pop3d prompt. You can enter the POP commands that are defined in RFC 1725. To run one of the commands, type a period (.), followed by a space, and then the command name. For example:
text
. CommandName

Passwords are echoed when you Telnet into the pop3d server. In the following Telnet example, you must provide your own password where id_password is indicated in the pass command.

Tip: For POP3DS, the command and output varies slightly.

(17줄짜리 예는 위 한글 본문에 그대로 실었습니다.)

SYSLOG 기능으로 기록하기

IMAP(과 IMAPDS), POP(와 POP3DS) 서버 소프트웨어는 로그 메시지를 SYSLOG 기능으로 보냅니다.

  1. SYSLOG 기능으로 IMAP과 POP 로그를 남기도록 시스템을 구성하려면 root 사용자여야 합니다. /etc/syslog.conf 파일을 편집해 다음처럼 *.debug 항목을 더합니다.
text
*.debug /usr/adm/imapd.log
  1. syslogd 데몬이 /etc/syslog.conf 구성 파일을 읽기 전에 /usr/adm/imapd.log 파일이 있어야 합니다. 이 파일을 만들려면 명령줄 프롬프트에서 다음을 입력하고 Enter를 누릅니다.
text
touch /usr/adm/imapd.log
  1. syslogd 데몬이 구성 파일을 다시 읽도록 새로 고칩니다. 명령줄 프롬프트에서 다음을 입력하고 Enter를 누릅니다.
text
refresh -s syslogd
영어 원문

Logging in with the SYSLOG facility

The IMAP (and IMAPDS) and POP (and POP3DS) server software sends log messages to the SYSLOG facility.

  1. To configure the system for IMAP and POP logging through the SYSLOG facility, you must be the root user. Edit the /etc/syslog.conf file, and add an entry for *.debug as follows:
text
*.debug /usr/adm/imapd.log
  1. The usr/adm/imapd.log file must exist before the syslogd daemon reads the /etc/syslog.conf configuration file. To create this file, type the following at a command-line prompt and press Enter:
text
touch /usr/adm/imapd.log
  1. Refresh the syslogd daemon to read its configuration file again. Type the following at a command line prompt and press Enter:
text
refresh -s syslogd

메일 관리 명령

메일 관리 명령을 요약합니다.

명령 설명
bugfiler 버그 보고서를 특정 메일 디렉터리에 저장합니다.
comsat 메일이 들어왔음을 사용자에게 알립니다(데몬).
mailq 메일 큐의 내용을 출력합니다.
mailstats 메일 트래픽 통계를 보여 줍니다.
newaliases /etc/mail/aliases 파일로 별칭 데이터베이스를 새로 만듭니다.
rmail BNU의 uucp 명령으로 받은 원격 메일을 처리합니다.
sendbug 시스템 버그 보고서를 특정 주소로 메일로 보냅니다.
sendmail 로컬이나 네트워크 배달을 위해 메일을 라우팅합니다.
smdemon.cleanu 주기적 정리를 위해 sendmail 큐를 정리합니다.
영어 원문

Mail management commands

The mail management commands are summarized here.

  • bugfiler — Stores bug reports in specific mail directories.
  • comsat — Notifies users of incoming mail (daemon).
  • mailq — Prints the contents of the mail queue.
  • mailstats — Displays statistics about mail traffic.
  • newaliases — Builds a new copy of the alias database from the /etc/mail/aliases file.
  • rmail — Handles remote mail received through the uucp command of the Basic Networking Utilities (BNU).
  • sendbug — Mails a system bug report to a specific address.
  • sendmail — Routes mail for local or network delivery.
  • smdemon.cleanu — Cleans up the sendmail queue for periodic housekeeping.

메일 파일과 디렉터리

메일 파일과 디렉터리를 기능별로 정리합니다.

파일 설명
/usr/share/lib/Mail.rc mail 프로그램의 모든 사용자에게 적용되는 로컬 시스템 기본값을 설정합니다. mail 명령의 기본 특성을 정하도록 고칠 수 있는 텍스트 파일입니다.
$HOME/.mailrc 사용자가 메일 기능의 로컬 시스템 기본값을 바꾸게 합니다.
$HOME/mbox 사용자 개인의 처리된 메일을 저장합니다.
/usr/bin/Mail, /usr/bin/mail, /usr/bin/mailx 같은 프로그램에 링크된 세 이름입니다. mail 프로그램은 메일 시스템의 사용자 인터페이스 가운데 하나입니다.
/var/spool/mail 기본 메일 수신(drop) 디렉터리입니다. 기본으로 모든 메일은 /var/spool/mail/UserName 파일로 배달됩니다.
/usr/bin/bellmail 로컬 메일 배달을 합니다.
/usr/bin/rmail BNU의 원격 메일 인터페이스입니다.
/var/spool/mqueue 메일 큐의 메시지에 딸린 로그 파일과 임시 파일이 들어 있습니다.
/usr/sbin/sendmail sendmail 명령입니다.
/usr/ucb/mailq /usr/sbin/sendmail에 링크됩니다. mailq를 쓰는 것은 /usr/sbin/sendmail -bp 명령을 쓰는 것과 같습니다.
/usr/ucb/newaliases /usr/sbin/sendmail 파일에 링크됩니다. newaliases를 쓰는 것은 /usr/sbin/sendmail -bi 명령을 쓰는 것과 같습니다.
/etc/netsvc.conf 일부 이름 풀이 서비스의 순서를 지정합니다.
/usr/sbin/mailstats /etc/sendmail.st 파일이 있으면 그 안의 sendmail 통계를 서식화해 출력합니다. /etc/sendmail.st가 기본이지만 다른 파일을 지정할 수 있습니다.
/etc/mail/aliases sendmail 명령이 쓰는 별칭 파일의 텍스트 판입니다. 이 파일을 편집해 시스템의 별칭을 만들고, 고치고, 지울 수 있습니다.
/etc/aliasesDB sendmail -bi 명령을 실행하면 /etc/mail/aliases 파일로 만들어지는 별칭 데이터베이스 파일 DB.dir과 DB.pag가 든 디렉터리입니다.
/etc/mail/sendmail.cf sendmail 구성 정보가 텍스트 형식으로 들어 있습니다. 이 정보를 바꾸려면 파일을 편집합니다.
/usr/lib/smdemon.cleanu 메일 큐를 실행하고 /var/spool/mqueue 디렉터리의 sendmail 로그 파일을 관리하는 셸 파일입니다.
/etc/mail/statistics 메일 트래픽 통계를 모읍니다. 이 파일은 커지지 않습니다. /usr/sbin/mailstats 명령으로 내용을 봅니다. 이 정보를 모으고 싶지 않으면 파일을 지웁니다.
/var/spool/mqueue 큐의 메시지마다 딸린 임시 파일이 든 디렉터리입니다. 로그 파일이 들어 있을 수 있습니다.
/var/spool/cron/crontabs cron 데몬이 어떤 작업을 시작할지 정하려고 읽는 파일이 든 디렉터리입니다. root 파일에 smdemon.cleanu 셸 스크립트를 시작하는 줄이 들어 있습니다.
영어 원문

Mail files and directories

Mail files and directories can be arranged by function.

  • /usr/share/lib/Mail.rc — Sets local system defaults for all users of the mail program. A text file you can modify to set the default characteristics of the mail command.
  • $HOME/.mailrc — Enables the user to change the local system defaults for the mail facility.
  • $HOME/mbox — Stores processed mail for the individual user.
  • /usr/bin/Mail, /usr/bin/mail, or /usr/bin/mailx — Specifies three names linked to the same program. The mail program is one of the user interfaces to the mail system.
  • /var/spool/mail — Specifies the default mail drop directory. By default, all mail is delivered to the /var/spool/mail/UserName file.
  • /usr/bin/bellmail — Performs local mail delivery.
  • /usr/bin/rmail — Performs remote mail interface for BNU.
  • /var/spool/mqueue — Contains the log file and temporary files associated with the messages in the mail queue.
  • /usr/sbin/sendmail — The sendmail command.
  • /usr/ucb/mailq — Links to the /usr/sbin/sendmail. Using mailq is equivalent to using the /usr/sbin/sendmail -bp command.
  • /usr/ucb/newaliases — Links to the /usr/sbin/sendmail file. Using newaliases is equivalent to using the /usr/sbin/sendmail -bi command.
  • /etc/netsvc.conf — Specifies the ordering of certain name resolution services.
  • /usr/sbin/mailstats — Formats and prints the sendmail statistics as found in the /etc/sendmail.st file if it exists. The /etc/sendmail.st file is the default, but you can specify an alternative file.
  • /etc/mail/aliases — Describes a text version of the aliases file for the sendmail command. You can edit this file to create, modify, or delete aliases for your system.
  • /etc/aliasesDB — Describes a directory containing the aliases database files, DB.dir and DB.pag, that are created from the /etc/mail/aliases file when you run the sendmail -bi command.
  • /etc/mail/sendmail.cf — Contains the sendmail configuration information in text form. Edit the file to change this information.
  • /usr/lib/smdemon.cleanu — Specifies a shell file that runs the mail queue and maintains the sendmail log files in the /var/spool/mqueue directory.
  • /etc/mail/statistics — Collects statistics about mail traffic. This file does not grow. Use the /usr/sbin/mailstats command to display the contents of this file. Delete this file if you do not want to collect this information.
  • /var/spool/mqueue — Describes a directory containing the temporary files associated with each message in the queue. The directory can contain the log file.
  • /var/spool/cron/crontabs — Describes a directory containing files that the cron daemon reads to determine which jobs to start. The root file contains a line to start the smdemon.cleanu shell script.

IMAP과 POP 명령

IMAP과 POP에는 imapd와 pop3d 메일 명령을 씁니다.

명령 설명
/usr/sbin/imapd IMAP(Internet Message Access Protocol) 서버 프로세스
/usr/sbin/pop3d POP3(Post Office Protocol Version 3) 서버 프로세스
영어 원문

IMAP and POP commands

The imapd and pop3d mail commands are used for IMAP and POP.

  • /usr/sbin/imapd — The Internet Message Access Protocol (IMAP) server process.
  • /usr/sbin/pop3d — The Post Office Protocol Version 3 (POP3) server process.