77;20202;0ccatbody - よくきたWiki

Loading ...



MUAMail User Agent*1
MTAMail Transfer Agent
MDAMail Deliver Agent
MRAMail Recieve Agent

SMTP

sendmail
exim
qmail
Postfix

POP3

uw-imap
qpopper
courier(courier-imap)

IMAP

uw-imap
cyrus-imapd
courier(courier-imap)

Postfixpostfix-2.0.11-4.i386.rpm
uw-imapimap-2002d-2.i386.rpm

# /bin/rpm -q postfix
# /bin/rpm -q imap
# /bin/rpm -ihv postfix-2.0.11-4.i386.rpm
# /bin/rpm -ihv imap-2002d-2.i386.rpm

# /usr/sbin/up2date -i postfix-2.0.11-4.i386.rpm
# /usr/sbin/up2date -i imap-2002d-2.i386.rpm

mail.example.com
example.com
192.168.0.1
192.168.0.0/24

/usr/sbin/lokkit -q --port smtp --port pop3 --port imap
-A RH-Firewall-1-INPUT -m state --state NEW -m tcp -p tcp --dport 25 -j ACCEPT
-A RH-Firewall-1-INPUT -m state --state NEW -m tcp -p tcp --dport 110 -j ACCEPT
-A RH-Firewall-1-INPUT -m state --state NEW -m tcp -p tcp --dport 143 -j ACCEPT

# /usr/sbin/useradd user1

$ /usr/bin/passwd
Changing password for user user1.
Changing password for user1
(current) UNIX password: 


passwd: all authentication tokens updated successfully.

# /usr/bin/passwd user1
Changing password for user user1
New password: 
Retype new password: 
passwd: all authentication tokens updated successfully.
# /usr/sbin/userdel olduser

/usr/sbin/alternatives --config mta

# /usr/sbin/alternatives --config mta

There are 2 programs which provide 'mta'.

  Selection    Command
-----------------------------------------------
*+ 1           /usr/sbin/sendmail.sendmail
   2           /usr/sbin/sendmail.postfix

Enter to keep the current selection[+], or type selection number: 2

$foo = var

myhostnamemail.example.dom
mydomainexample.com
myorigin$mydomain
inet_interfacesall
mydestination$myhostname, mail.$mydomain
mynetworks192.168.0.0/24, 127.0.0.0/8
relay_domains
myhostname
mydomain
myorigin
inet_interfaces
mydestination|
mynetworks
relay_domains

/usr/sbin/postconf
2bounce_notice_recipient = postmaster
access_map_reject_code = 554
alias_database = hash:/etc/postfix/aliases
alias_maps = hash:/etc/postfix/aliases
allow_mail_to_commands = alias,forward
allow_mail_to_files = alias,forward
                    :
                    :
                    :

"dd# Global Postfix configuration file. This file lists only a subset"

$ /usr/bin/telnet localhost smtp
Trying 127.0.0.1...
Connected to localhost.localdomain (127.0.0.1).
HELO localhost.localdomain
250 rhel30es.local.elf.no-ip.org
MAIL FROM: <user1@example.com>
250 Ok
RCPT TO: <user2@example.com>
250 Ok
DATA
354 End data with <CR><LF>.<CR><LF>
From: <user1@example.com>
To: <users@example.com>
Subject: Thanks mail
Date: Tue, 13 Apr 2004 01:37:35 +0900
Message-Id: <JBHDT4s65d%bnw@example.com>

Thanks!!

.
250 Ok: queued as 130B81805D
QUIT
221 Bye
Connection closed by foreign host.

dig -t mx example.com
# /bin/netstat -lpn|grep \:25
tcp        0      0 0.0.0.0:25              0.0.0.0:*               LISTEN      2651/master
/sbin/service iptables status
/sbin/chkconfig postfix on

/sbin/chkconfig ipop3 on
/sbin/chkconfig imap on
/sbin/chkconfig pop3s on
/sbin/chkconfig imaps on

$ /usr/bin/telnet localhost pop3
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
+OK POP3 localhost.localdomain v2001.78rh server ready
USER user2
+OK User name accepted, password please
PASS user2-pass
+OK Mailbox open, 2 messages
RETR 2
+OK 419 octets
Return-Path: <user1@example.com>
Delivered-To: user2@example.com
Received: from localhost.localdomain (localhost [127.0.0.1])
        by ns (Postfix) with SMTP id 5B6C9D801E
        for <user1@example.com>; Tue, 13 Apr 2004 05:22:51 +0900 (JST)
From: <user1@example.com>
To: <user2@example.com>
Subject: Thanks mail
Date: Tue, 13 Apr 2004 01:37:35 +0900
Message-Id: <JBHDT4s65d%bnw@example.com>
Status:   

Thanks!!

.

$ /usr/bin/telnet localhost imap
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.

IMAP4rev1 2001.315rh at Tue, 13 Apr 2004 05:41:38 +0900 (JST)
A CAPABILITY


STARTTLS  AUTH=LOGIN
A OK CAPABILITY completed
A LOGIN user2 user2-pass

THREAD=REFERENCES THREAD=ORDEREDSUBJECT MULTIAPPEND] User joe authenticated
A SELECT INBOX
* 2 EXISTS
* 0 RECENT
* OK [UIDVALIDITY 1048633263] UID validity status
* OK [UIDNEXT 2138] Predicted next UID
* FLAGS (\Answered \Flagged \Deleted \Draft \Seen)
* OK [PERMANENTFLAGS (\* \Answered \Flagged \Deleted \Draft \Seen)] Permanent flags
* OK [UNSEEN 2] first unseen message in /var/spool/mail/joe
A OK [READ-WRITE] SELECT completed
A FETCH 1:9 UID
* 1 FETCH (UID 561)
* 2 FETCH (UID 562)
A OK FETCH completed
A UID FETCH 561 RFC822
* 1 FETCH (UID 561 RFC822 {419}
Return-Path: <user1@example.com>
Delivered-To: user2@example.com
Received: from localhost.localdomain (localhost [127.0.0.1])
        by ns (Postfix) with SMTP id 5B6C9D801E
        for <user1@example.com>; Tue, 13 Apr 2004 05:22:51 +0900 (JST)
From: <user1@example.com>
To: <user2@example.com>
Subject: Thanks mail
Date: Tue, 13 Apr 2004 01:37:35 +0900
Message-Id: <JBHDT4s65d%bnw@example.com>
Status:   

Thanks!!

A OK UID FETCH completed
A LOGOUT
* BYE mail.example.com IMAP4rev1 server terminating connection
A OK LOGOUT completed
Connection closed by foreign host.

info@example.com



info: jokagi


root: admin


mktg: eigyo@keitai.example.com

# /usr/bin/newaliases

Writing/nikkei_net_server



*1

添付ファイル: filemain.cf-smart 1122件 [詳細] filemain.cf-full 1118件 [詳細]
リロード   新規 編集 凍結 差分 添付 複製 改名   トップ 一覧 検索 最終更新 バックアップ   ヘルプ   最終更新のRSS
最終修正日時: Mon, 09 May 2005 15:42:18 JST (5278d)
文字数(HTML): 5278
文字数(Wiki): 15067
人気ブログランキング - よくきた wiki