携帯電話用webメーラー(mobileimap)携帯電話に対応したIMAP対応webメーラ(mobileimap)をインストールします。筆者の環境では、IMAPサーバは稼動中です。 もしあなたの環境にIMAPサーバがインストールされていなければ、IMAPサーバの導入から始める必要があります。 mobileimapのインストールmobileimapを実行させるためにはRubyが必要です。 筆者の環境にRubyはインストールされていなかったので、いつものコマンドでRubyインストールします。 # apt-get install rubymobileimapをここから適当なディレクトリへダウンロードし、展開&makeを実行します。 # tar zxfv mobileimap-2.7.tar.gz.tar
これで、mobileimapのインストールは終了です。 |
mobileimapのパラメータ説明 | |
IMAP認証方法 | -a login(平文のlogin認証) |
IMAPユーザ名 | -u alk |
IMAPホスト名 | -s alk.dip.jp |
メール送信時のFrom | -f "alk <alk@alk.dip.jp>" |
/ets/apache2/mods-avaible/proxy.conf ファイル | |
修正前 | 修正後 |
<IfModule mod_proxy.c> #turning ProxyRequests on and allowing proxying from all may allow #spammers to use your proxy to send email. ProxyRequests Off <Proxy *> Order deny,allow Deny from all #Allow from .your_domain.com </Proxy> # Enable/disable the handling of HTTP/1.1 "Via:" headers. # ("Full" adds the server version; "Block" removes all outgoing Via: headers) # Set to one of: Off | On | Full | Block ProxyVia On # To enable the cache as well, edit and uncomment the following lines: # (no cacheing without CacheRoot) CacheRoot "/var/cache/apache2/proxy" CacheSize 5 CacheGcInterval 4 CacheMaxExpire 24 CacheLastModifiedFactor 0.1 CacheDefaultExpire 1 # Again, you probably should change this. #NoCache a_domain.com another_domain.edu joes.garage_sale.com </IfModule> |
<IfModule mod_proxy.c> #turning ProxyRequests on and allowing proxying from all may allow #spammers to use your proxy to send email. ProxyRequests Off <Proxy *> Order deny,allow Allow from all #Allow from .your_domain.com </Proxy> # Enable/disable the handling of HTTP/1.1 "Via:" headers. # ("Full" adds the server version; "Block" removes all outgoing Via: headers) # Set to one of: Off | On | Full | Block #ProxyVia On # To enable the cache as well, edit and uncomment the following lines: # (no cacheing without CacheRoot) CacheRoot "/var/cache/apache2/proxy" CacheSize 5 CacheGcInterval 4 CacheMaxExpire 24 CacheLastModifiedFactor 0.1 CacheDefaultExpire 1 # Again, you probably should change this. #NoCache a_domain.com another_domain.edu joes.garage_sale.com </IfModule> |
/ets/apache2/sites-avaible/sslへ追加記述 | |
追加記述内容 | 意味 |
ProxyRequests Off | フォワードプロキシを使用しない |
ProxyPass /alk http://localhost:8143/ | https://alk.dip.jp/alk→http://localhost:8143/へ転送 |
ProxyPassReverse /alk http://localhost:8143/ | http://localhost:8143/からのリダイレクトの要求を調整する |
/ets/apache2/sites-avaible/sslへ追加記述 | |
追加記述内容 | 意味 |
<Location /alk> | https://alk.dip.jp/alkの設定開始 |
AuthType Basic | 認証方式:Basic |
AuthName "Secret Area" | |
AuthUserFile /mnt/var/pass/.htpasswd | パスワードファイルの指定 |
AuthGroupFile /dev/null | グループでの認証許可は行わない |
require user alk | ユーザalkのみ認証を許可 |
</Location> | 設定終了 |
/ets/apache2/sites-avaible/sslへ追加記述した全体 |
ProxyRequests Off ProxyPass /alk http://localhost:8143/ ProxyPassReverse /alk http://localhost:8143/ <Location /alk> AuthType Basic AuthName "Secret Area" AuthUserFile /mnt/var/pass/.htpasswd AuthGroupFile /dev/null require user alk </Location> |
:imap_password => "xxxxxx", ←IMAP用パスワードを設定 |
/ets/apache2/sites-avaible/sslへhoge用を追加 |
ProxyPass /hoge http://localhost:8144/ ProxyPassReverse /hoge http://localhost:8144/ <Location /hoge> AuthType Basic AuthName "Secret Area" AuthUserFile /mnt/var/pass/.htpasswd_hoge AuthGroupFile /dev/null require user hoge </Location> |
https://alk.dip.jp/hoge |