タグアーカイブ pop3

Postfixの導入(Debian wheezy)

# apt-get install postfix
Reading package lists... Done
Building dependency tree
Reading state information... Done
Suggested packages:
  procmail postfix-mysql postfix-pgsql postfix-ldap postfix-pcre sasl2-bin dovecot-common resolvconf postfix-cdb
  ufw postfix-doc
The following NEW packages will be installed:
  postfix
0 upgraded, 1 newly installed, 0 to remove and 4 not upgraded.
Need to get 1591 kB of archives.
After this operation, 3549 kB of additional disk space will be used.
Get:1 http://http.debian.net/debian/ wheezy/main postfix amd64 2.9.6-2 [1591 kB]
Fetched 1591 kB in 3s (435 kB/s)
Preconfiguring packages ...

...

Postfix is now set up with a default configuration.  If you need to make
changes, edit
/etc/postfix/main.cf (and others) as needed.  To view Postfix configuration
values, see postconf(1).

After modifying main.cf, be sure to run '/etc/init.d/postfix reload'.

Running newaliases
[ ok ] Stopping Postfix Mail Transport Agent: postfix.
[ ok ] Starting Postfix Mail Transport Agent: postfix.

Dovecot(pop3,imap)の導入

インストール

# apt-get install dovecot-common dovecot-pop3d dovecot-imapd
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
  dovecot-core dovecot-gssapi dovecot-ldap dovecot-mysql dovecot-pgsql dovecot-sieve dovecot-sqlite
Suggested packages:
  dovecot-managesieved ntp dovecot-lmtpd dovecot-solr
The following NEW packages will be installed:
  dovecot-common dovecot-core dovecot-gssapi dovecot-imapd dovecot-ldap dovecot-mysql dovecot-pgsql dovecot-pop3d
  dovecot-sieve dovecot-sqlite
0 upgraded, 10 newly installed, 0 to remove and 4 not upgraded.
Need to get 6000 kB of archives.
After this operation, 9663 kB of additional disk space will be used.
Do you want to continue [Y/n]? y
Get:1 http://http.debian.net/debian/ wheezy/main dovecot-core amd64 1:2.1.7-7 [2866 kB]
Get:2 http://http.debian.net/debian/ wheezy/main dovecot-gssapi amd64 1:2.1.7-7 [340 kB]
Get:3 http://http.debian.net/debian/ wheezy/main dovecot-imapd amd64 1:2.1.7-7 [425 kB]
Get:4 http://http.debian.net/debian/ wheezy/main dovecot-ldap amd64 1:2.1.7-7 [355 kB]
Get:5 http://http.debian.net/debian/ wheezy/main dovecot-mysql amd64 1:2.1.7-7 [342 kB]
Get:6 http://http.debian.net/debian/ wheezy/main dovecot-pgsql amd64 1:2.1.7-7 [345 kB]
Get:7 http://http.debian.net/debian/ wheezy/main dovecot-pop3d amd64 1:2.1.7-7 [364 kB]
Get:8 http://http.debian.net/debian/ wheezy/main dovecot-sieve amd64 1:2.1.7-7 [598 kB]
Get:9 http://http.debian.net/debian/ wheezy/main dovecot-sqlite amd64 1:2.1.7-7 [340 kB]
Get:10 http://http.debian.net/debian/ wheezy/main dovecot-common all 1:2.1.7-7 [25.0 kB]
Fetched 6000 kB in 8s (672 kB/s)
Selecting previously unselected package dovecot-core.
(Reading database ... 23545 files and directories currently installed.)
Unpacking dovecot-core (from .../dovecot-core_1%3a2.1.7-7_amd64.deb) ...
Selecting previously unselected package dovecot-gssapi.
Unpacking dovecot-gssapi (from .../dovecot-gssapi_1%3a2.1.7-7_amd64.deb) ...
Selecting previously unselected package dovecot-imapd.
Unpacking dovecot-imapd (from .../dovecot-imapd_1%3a2.1.7-7_amd64.deb) ...
Selecting previously unselected package dovecot-ldap.
Unpacking dovecot-ldap (from .../dovecot-ldap_1%3a2.1.7-7_amd64.deb) ...
Selecting previously unselected package dovecot-mysql.
Unpacking dovecot-mysql (from .../dovecot-mysql_1%3a2.1.7-7_amd64.deb) ...
Selecting previously unselected package dovecot-pgsql.
Unpacking dovecot-pgsql (from .../dovecot-pgsql_1%3a2.1.7-7_amd64.deb) ...
Selecting previously unselected package dovecot-pop3d.
Unpacking dovecot-pop3d (from .../dovecot-pop3d_1%3a2.1.7-7_amd64.deb) ...
Selecting previously unselected package dovecot-sieve.
Unpacking dovecot-sieve (from .../dovecot-sieve_1%3a2.1.7-7_amd64.deb) ...
Selecting previously unselected package dovecot-sqlite.
Unpacking dovecot-sqlite (from .../dovecot-sqlite_1%3a2.1.7-7_amd64.deb) ...
Selecting previously unselected package dovecot-common.
Unpacking dovecot-common (from .../dovecot-common_1%3a2.1.7-7_all.deb) ...
Processing triggers for man-db ...
Setting up dovecot-core (1:2.1.7-7) ...

Creating config file /etc/dovecot/dovecot.conf with new version

Creating config file /etc/dovecot/dovecot-db.conf.ext with new version

Creating config file /etc/dovecot/dovecot-dict-sql.conf.ext with new version

Creating config file /etc/dovecot/dovecot-sql.conf.ext with new version

Creating config file /etc/dovecot/conf.d/10-auth.conf with new version

Creating config file /etc/dovecot/conf.d/10-director.conf with new version

Creating config file /etc/dovecot/conf.d/10-logging.conf with new version

Creating config file /etc/dovecot/conf.d/10-mail.conf with new version

Creating config file /etc/dovecot/conf.d/10-master.conf with new version

Creating config file /etc/dovecot/conf.d/10-ssl.conf with new version

Creating config file /etc/dovecot/conf.d/10-tcpwrapper.conf with new version

Creating config file /etc/dovecot/conf.d/15-lda.conf with new version

Creating config file /etc/dovecot/conf.d/15-mailboxes.conf with new version

Creating config file /etc/dovecot/conf.d/90-acl.conf with new version

Creating config file /etc/dovecot/conf.d/90-plugin.conf with new version

Creating config file /etc/dovecot/conf.d/90-quota.conf with new version

Creating config file /etc/dovecot/conf.d/auth-checkpassword.conf.ext with new version

Creating config file /etc/dovecot/conf.d/auth-deny.conf.ext with new version

Creating config file /etc/dovecot/conf.d/auth-master.conf.ext with new version

Creating config file /etc/dovecot/conf.d/auth-passwdfile.conf.ext with new version

Creating config file /etc/dovecot/conf.d/auth-sql.conf.ext with new version

Creating config file /etc/dovecot/conf.d/auth-static.conf.ext with new version

Creating config file /etc/dovecot/conf.d/auth-system.conf.ext with new version

Creating config file /etc/dovecot/conf.d/auth-vpopmail.conf.ext with new version
Creating generic self-signed certificate: /etc/dovecot/dovecot.pem
This certificate will expire in 10 years.
(replace with hand-crafted or authorized one if needed).
[ ok ] Starting IMAP/POP3 mail server: dovecot.
Setting up dovecot-gssapi (1:2.1.7-7) ...
Setting up dovecot-imapd (1:2.1.7-7) ...

Creating config file /etc/dovecot/conf.d/20-imap.conf with new version
[ ok ] Restarting IMAP/POP3 mail server: dovecot.
Setting up dovecot-ldap (1:2.1.7-7) ...

Creating config file /etc/dovecot/dovecot-ldap.conf.ext with new version

Creating config file /etc/dovecot/conf.d/auth-ldap.conf.ext with new version
[ ok ] Restarting IMAP/POP3 mail server: dovecot.
Setting up dovecot-mysql (1:2.1.7-7) ...
Setting up dovecot-pgsql (1:2.1.7-7) ...
Setting up dovecot-pop3d (1:2.1.7-7) ...

Creating config file /etc/dovecot/conf.d/20-pop3.conf with new version
[ ok ] Restarting IMAP/POP3 mail server: dovecot.
Setting up dovecot-sieve (1:2.1.7-7) ...

Creating config file /etc/dovecot/conf.d/90-sieve.conf with new version
[ ok ] Restarting IMAP/POP3 mail server: dovecot.
Setting up dovecot-sqlite (1:2.1.7-7) ...
Setting up dovecot-common (1:2.1.7-7) ...

dovecot.confの編集

# vi /etc/dovecot/dovecot.conf