C.imap

Last-modified: 2006-09-27 (水) 01:24:50
[root@swisspc ~]# yum -y install dovecot
Setting up Install Process
Setting up repositories
update                    100% |=========================|  951 B    00:00
base                      100% |=========================| 1.1 kB    00:00
addons                    100% |=========================|  951 B    00:00
extras                    100% |=========================| 1.1 kB    00:00
Reading repository metadata in from local files
Parsing package install arguments
Resolving Dependencies
--> Populating transaction set with selected packages. Please wait.
---> Downloading header for dovecot to pack into transaction set.
dovecot-0.99.11-4.EL4.i38 100% |=========================|  15 kB    00:00
---> Package dovecot.i386 0:0.99.11-4.EL4 set to be updated
--> Running transaction check
--> Processing Dependency: libmysqlclient.so.14(libmysqlclient_14) for package: dovecot
--> Processing Dependency: libpq.so.3 for package: dovecot
--> Processing Dependency: libmysqlclient.so.14 for package: dovecot
--> Restarting Dependency Resolution with new changes.
--> Populating transaction set with selected packages. Please wait.
---> Downloading header for postgresql-libs to pack into transaction set.
postgresql-libs-7.4.13-2. 100% |=========================|  11 kB    00:00
---> Package postgresql-libs.i386 0:7.4.13-2.RHEL4.1 set to be updated
---> Downloading header for mysql to pack into transaction set.
mysql-4.1.20-1.RHEL4.1.i3 100% |=========================|  35 kB    00:00
---> Package mysql.i386 0:4.1.20-1.RHEL4.1 set to be updated
--> Running transaction check
--> Processing Dependency: perl(DBI) for package: mysql
--> Restarting Dependency Resolution with new changes.
--> Populating transaction set with selected packages. Please wait.
---> Downloading header for perl-DBI to pack into transaction set.
perl-DBI-1.40-8.i386.rpm  100% |=========================|  11 kB    00:00
---> Package perl-DBI.i386 0:1.40-8 set to be updated
--> Running transaction check
Dependencies Resolved
=============================================================================
 Package                 Arch       Version          Repository        Size
=============================================================================
Installing:
 dovecot                 i386       0.99.11-4.EL4    base              612 k
Installing for dependencies:
 mysql                   i386       4.1.20-1.RHEL4.1  base              2.9 M
 perl-DBI                i386       1.40-8           base              466 k
 postgresql-libs         i386       7.4.13-2.RHEL4.1  base              146 k
Transaction Summary
=============================================================================
Install      4 Package(s)
Update       0 Package(s)
Remove       0 Package(s)
Total download size: 4.1 M
Downloading Packages:
(1/4): dovecot-0.99.11-4. 100% |=========================| 612 kB    00:00
(2/4): postgresql-libs-7. 100% |=========================| 146 kB    00:00
(3/4): mysql-4.1.20-1.RHE 100% |=========================| 2.9 MB    00:01
(4/4): perl-DBI-1.40-8.i3 100% |=========================| 466 kB    00:00
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
  Installing: perl-DBI                     ######################### [1/4]
  Installing: mysql                        ######################### [2/4]
  Installing: postgresql-libs              ######################### [3/4]
  Installing: dovecot                      ######################### [4/4]
Installed: dovecot.i386 0:0.99.11-4.EL4
Dependency Installed: mysql.i386 0:4.1.20-1.RHEL4.1 perl-DBI.i386 0:1.40-8 postgresql-libs.i386 0:7.4.13-2.RHEL4.1
Complete!
[root@swisspc ~]# vi /etc/dovecot.conf
# Protocols we want to be serving:
#  imap imaps pop3 pop3s
protocols = imap imaps
default_mail_env = maildir:~/Maildir
[root@swisspc ~]# vi /etc/aliases
# Person who should get root's mail
root:           serverに変更
[root@swisspc ~]# newaliases
[root@swisspc ~]# telnet localhost 25
Trying 127.0.0.1...
Connected to localhost.localdomain (127.0.0.1).
Escape character is '^]'.
220 skier-ch.info ESMTP Postfix
ehlo localhost
250-skier-ch.info
250-PIPELINING
250-SIZE 10485760
250-VRFY
250-ETRN
250-AUTH LOGIN CRAM-MD5 DIGEST-MD5 PLAIN
250 8BITMIME
^]
telnet> quit
Connection closed.
[root@swisspc ~]# telnet localhost 143
Trying 127.0.0.1...
Connected to localhost.localdomain (127.0.0.1).
Escape character is '^]'.
* OK dovecot ready.
^]
telnet> quit
Connection closed.

[root@swisspc ~]# telnet relay-test.mail-abuse.org
Trying 168.61.4.13...
Connected to relay-test.mail-abuse.org (168.61.4.13).
Escape character is '^]'.
Connecting to 58.138.37.77 ...

220 skier-ch.info ESMTP Postfix (2.0.20)

HELO cygnus.mail-abuse.org

250 skier-ch.info
:Relay test: #Quote test

mail from: <spamtest@77.37.138.58.dy.bbexcite.jp>

250 Ok

rcpt to: <"nobody@mail-abuse.org">

554 <nobody@mail-abuse.org>: Recipient address rejected: Relay access denied

rset

250 Ok
:Relay test: #Test 1

mail from: <nobody@mail-abuse.org>

250 Ok

rcpt to: <nobody@mail-abuse.org>

554 <nobody@mail-abuse.org>: Recipient address rejected: Relay access denied

rset

250 Ok
:Relay test: #Test 2

mail from: <spamtest@maps1.pa.vix.com>

250 Ok

rcpt to: <nobody@mail-abuse.org>

450 <spamtest@maps1.pa.vix.com>: Sender address rejected: Domain not found

rset

250 Ok
:Relay test: #test 3

mail from: <spamtest@localhost>

250 Ok

rcpt to: <nobody@mail-abuse.org>

554 <nobody@mail-abuse.org>: Recipient address rejected: Relay access denied

rset

250 Ok
:Relay test: #Test 4

mail from: <spamtest>

250 Ok

rcpt to: <nobody@mail-abuse.org>

554 <nobody@mail-abuse.org>: Recipient address rejected: Relay access denied

rset

250 Ok
:Relay test: #Test 5

mail from: <>

250 Ok

rcpt to: <nobody@mail-abuse.org>

554 <nobody@mail-abuse.org>: Recipient address rejected: Relay access denied

rset

250 Ok
:Relay test: #Test 6

mail from: <spamtest@77.37.138.58.dy.bbexcite.jp>

250 Ok

rcpt to: <nobody@mail-abuse.org>

554 <nobody@mail-abuse.org>: Recipient address rejected: Relay access denied

rset

250 Ok
:Relay test: #Test 7

mail from: <spamtest@[58.138.37.77]>

250 Ok

rcpt to: <nobody@mail-abuse.org>

554 <nobody@mail-abuse.org>: Recipient address rejected: Relay access denied

rset

250 Ok
:Relay test: #Test 8

mail from: <spamtest@77.37.138.58.dy.bbexcite.jp>

250 Ok

rcpt to: <nobody%mail-abuse.org@77.37.138.58.dy.bbexcite.jp>

554 <nobody%mail-abuse.org@77.37.138.58.dy.bbexcite.jp>: Recipient address rejected: R

554 <nobody%mail-abuse.org@77.37.138.58.dy.bbexcite.jp>: Recipient address rejected: Relay access denied

rset

250 Ok
:Relay test: #Test 9

mail from: <spamtest@77.37.138.58.dy.bbexcite.jp>

250 Ok

rcpt to: <nobody%mail-abuse.org@[58.138.37.77]>

554 <nobody%mail-abuse.org@[58.138.37.77]>: Recipient address rejected: Relay access d

554 <nobody%mail-abuse.org@[58.138.37.77]>: Recipient address rejected: Relay access denied

rset

250 Ok
:Relay test: #Test 10

mail from: <spamtest@77.37.138.58.dy.bbexcite.jp>

250 Ok

rcpt to: <"nobody@mail-abuse.org">

554 <nobody@mail-abuse.org>: Recipient address rejected: Relay access denied

rset

250 Ok
:Relay test: #Test 11

mail from: <spamtest@77.37.138.58.dy.bbexcite.jp>

250 Ok

rcpt to: <"nobody%mail-abuse.org">

554 <nobody%mail-abuse.org>: Recipient address rejected: Relay access denied

rset

250 Ok
:Relay test: #Test 12

mail from: <spamtest@[58.138.37.77]>

250 Ok

rcpt to: <nobody@mail-abuse.org@77.37.138.58.dy.bbexcite.jp">

501 Bad address syntax

rset

250 Ok
:Relay test: #Test 13

mail from: <spamtest@77.37.138.58.dy.bbexcite.jp>

250 Ok

rcpt to: <"nobody@mail-abuse.org"@[58.138.37.77]>

554 <nobody@mail-abuse.org@[58.138.37.77]>: Recipient address rejected: Relay access d

554 <nobody@mail-abuse.org@[58.138.37.77]>: Recipient address rejected: Relay access denied

rset

250 Ok
:Relay test: #Test 14

mail from: <spamtest@77.37.138.58.dy.bbexcite.jp>

250 Ok

rcpt to: <nobody@mail-abuse.org@[58.138.37.77]>

554 <nobody@mail-abuse.org@[58.138.37.77]>: Recipient address rejected: Relay access d

554 <nobody@mail-abuse.org@[58.138.37.77]>: Recipient address rejected: Relay access denied

rset

250 Ok
:Relay test: #Test 15

mail from: <spamtest@[58.138.37.77]>

250 Ok

rcpt to: <@77.37.138.58.dy.bbexcite.jp:nobody@mail-abuse.org>

554 <nobody@mail-abuse.org>: Recipient address rejected: Relay access denied

rset

250 Ok
:Relay test: #Test 16

mail from: <spamtest@77.37.138.58.dy.bbexcite.jp>

250 Ok

rcpt to: <@[58.138.37.77]:nobody@mail-abuse.org>

554 <nobody@mail-abuse.org>: Recipient address rejected: Relay access denied

rset

250 Ok
:Relay test: #Test 17

mail from: <spamtest@[58.138.37.77]>

250 Ok

rcpt to: <mail-abuse.org!nobody>

554 <mail-abuse.org!nobody>: Recipient address rejected: Relay access denied

rset

250 Ok
:Relay test: #test 18

mail from: <spamtest@77.37.138.58.dy.bbexcite.jp>

250 Ok

rcpt to: <mail-abuse.org!nobody@[58.138.37.77]>

554 <mail-abuse.org!nobody@[58.138.37.77]>: Recipient address rejected: Relay access d

554 <mail-abuse.org!nobody@[58.138.37.77]>: Recipient address rejected: Relay access denied

rset

250 Ok
:Relay test: #test 19

mail from: <postmaster@77.37.138.58.dy.bbexcite.jp>

250 Ok

rcpt to: <nobody@mail-abuse.org>

554 <nobody@mail-abuse.org>: Recipient address rejected: Relay access denied

rset

421 Error: too many errors
Connecting to 58.138.37.77 ...

220 skier-ch.info ESMTP Postfix (2.0.20)

HELO cygnus.mail-abuse.org

250 skier-ch.info

QUIT

221 Bye
Tested host banner: 220 skier-ch.info ESMTP Postfix (2.0.20)
System appeared to reject relay attempts
Connection closed by foreign host.

[root@swisspc ~]# vi /etc/postfix/virtual
swisspc.info anything
server@swisspc.info server

root@swisspc ~]# postmap /etc/postfix/virtual
[root@swisspc ~]# vi /etc/postfix/main.cf
virtual_maps = hash:/etc/postfix/virtual

[root@swisspc ~]# /etc/rc.d/init.d/postfix restart
Shutting down postfix: [ OK ]
Starting postfix: [ OK ]