ニュース村上や

“TOP”へ

 

 

平成26年2月23日

 

本日も“Raspberry Piで、遊んでいます。

 

先ずは、PostfixDovecotでメールサーバの構築です。

固定IPアドレス(ASAHIネット)を持っていますので、ISPGmailSMTPサーバにリレーしません。

 

外からはWebメールを使うので、SquirrelMailもインストールします。

 

 

【忘備録】

(1)SSHでの作業(root権限)

(1)Postfix

# apt-get install postfix

@インターネットサイトを選択

Aドメインを入力

Broot postmaster のメール受け取りユーザ: pi(例)

Curakami-8.com, raspberrypi, localhost.localdomain, localhost

Dメールキューの同期更新を強制しますか?<いいえ>

Eローカルネットワーク: 127.0.0.0/8, 192.168.24.0/24

Fメールボックスのサイズの制限 (バイト):0

Gローカルアドレス拡張文字:+

H利用するインターネットプロトコル:IPv4

 

/etc/postfix/main.cfの修正】

myhostname = murakami-8.com ←修正

mynetworks = 127.0.0.0/8, 192.168.24.0/24 ←修正

inet_protocols = ipv4 ←追加

home_mailbox = Maildir/ ←追加

 

# service postfix restart

 

(2)Dovecot

# apt-get install dovecot-pop3d

# apt-get install dovecot-imapd

 

/etc/dovecot/dovecot.confの修正】

listen = *  ←修正(IPv4 のみ)

disable_plaintext_auth = no ←追加(平文を許可)

 

/etc/dovecot/conf.d/10-mail.confの修正】

 # mail_location = mbox:~/mail:INBOX=/var/mail/%u ←修正(コメントアウト)

mail_location = maildir:~/Maildir ←追加

 

# service dovecot restart

 

(3)メール転送(エイリアスの設定)

/etc/aliasesの修正】

postmaster:    pi ←修正(例)

 

# postalias /etc/aliases

 

(4)SquirrelMail

# apt-get install squirrelmail

# ln -s /etc/squirrelmail/apache.conf /etc/apache2/conf.d/squirrelmail.conf

# squirrelmail-configure

SquirrelMail Configuration : Read: config.php (1.4.0)

---------------------------------------------------------

Main Menu --

1.  Organization Preferences

2.  Server Settings

3.  Folder Defaults

4.  General Options

5.  Themes

6.  Address Books

7.  Message of the Day (MOTD)

8.  Plugins

9.  Database

10. Languages

 

D.  Set pre-defined settings for specific IMAP servers

 

C   Turn color on

S   Save data

Q   Quit

 

Command >>

 

 

# service apache2 restart

 

 

(2)メーラーの設定

こんな感じです。

 

次は、Apache(Webサーバ)の設定です。

 

 

【バックナンバー】

* 平成26年2月11日

* 平成26年2月9日

* 平成26年2月2日

* 平成26年1月26日

* 平成26年1月12日

* 平成26年1月5日

* 平成26年1月3日

* 平成25年

* 平成24年

* 平成23年