Cent_ImapOfficeSync
をテンプレートにして作成
[
トップ
] [
新規
|
一覧
|
検索
|
最終更新
|
ヘルプ
]
開始行:
#contents
*** route の追加 [#gcb96e3e]
eth0 側(=社内LAN接続)から 会社メールサーバー(172.8.30...
尚、その他の通常パケットは eth1 側から流れるように設定す...
- &ref(add_eth0.sh,center,add_eth0.sh(route 追加スクリプ...
[root@localhost ~]# route add -net 172.30.0.0 gw 172.30....
[root@localhost ~]# route
Kernel IP routing table
Destination Gateway Genmask Flags Me...
192.168.84.0 * 255.255.255.0 U 0 ...
192.168.1.0 * 255.255.255.0 U 0 ...
172.30.8.0 * 255.255.255.0 U 0 ...
172.16.156.0 * 255.255.255.0 U 0 ...
192.168.56.0 * 255.255.255.0 U 0 ...
172.30.0.0 172.30.8.254 255.255.0.0 UG 20...
169.254.0.0 * 255.255.0.0 U 0 ...
default 192.168.1.60 0.0.0.0 UG 0 ...
この状態で、社内メールサーバーと自宅サーバーの両方に ping...
通常は eth0 側は活性化もしていないし、ケーブルそのものも...
[root@localhost ~]# ping mail.hmuna.com
PING mail.hmuna.com (122.249.122.231) 56(84) bytes of da...
64 bytes from x122231.ppp.asahi-net.or.jp (122.249.122.2...
64 bytes from x122231.ppp.asahi-net.or.jp (122.249.122.2...
64 bytes from x122231.ppp.asahi-net.or.jp (122.249.122.2...
64 bytes from x122231.ppp.asahi-net.or.jp (122.249.122.2...
64 bytes from x122231.ppp.asahi-net.or.jp (122.249.122.2...
--- mail.hmuna.com ping statistics ---
5 packets transmitted, 5 received, 0% packet loss, time ...
rtt min/avg/max/mdev = 7.624/7.982/8.388/0.252 ms
[root@localhost ~]# ping 172.30.8.202
PING 172.30.8.202 (172.30.8.202) 56(84) bytes of data.
64 bytes from 172.30.8.202: icmp_seq=1 ttl=64 time=0.298...
64 bytes from 172.30.8.202: icmp_seq=2 ttl=64 time=0.222...
64 bytes from 172.30.8.202: icmp_seq=3 ttl=64 time=0.281...
64 bytes from 172.30.8.202: icmp_seq=4 ttl=64 time=0.334...
--- 172.30.8.202 ping statistics ---
4 packets transmitted, 4 received, 0% packet loss, time ...
rtt min/avg/max/mdev = 0.222/0.283/0.334/0.045 ms
[root@localhost ~]#
*** &ref(imapsync-1.252.tgz,center,imapsync-1.252); イン...
- perl 関連モジュールのインストール
-- &ref(Mail-IMAPClient-2.2.9.tar.gz,center,Mail-IMAPClie...
[root@localhost Mail-IMAPClient-2.2.9]# perl Makefile.PL
[root@localhost Mail-IMAPClient-2.2.9]# make
[root@localhost Mail-IMAPClient-2.2.9]# make test
[root@localhost Mail-IMAPClient-2.2.9]# make install
-- &ref(Digest-MD5-2.36.tar.gz,center,Digest-MD5-2.36);
[root@localhost Digest-MD5-2.36]# perl Makefile.PL
[root@localhost Digest-MD5-2.36]# make
[root@localhost Digest-MD5-2.36]# make test
[root@localhost Digest-MD5-2.36]# make install
-- &ref(TermReadKey-2.30.tar.gz,center,TermReadKey-2.30);
[root@localhost TermReadKey-2.30]# perl Makefile.PL
[root@localhost TermReadKey-2.30]# make
[root@localhost TermReadKey-2.30]# make test
[root@localhost TermReadKey-2.30]# make install
-- &ref(IO-Socket-SSL-1.13.tar.gz,center,IO-Socket-SSL-1....
[root@localhost IO-Socket-SSL-1.13]# perl Makefile.PL
[root@localhost IO-Socket-SSL-1.13]# make
[root@localhost IO-Socket-SSL-1.13]# make test
[root@localhost IO-Socket-SSL-1.13]# make install
-- &ref(Date-Manip-5.54.tar.gz,center,Date-Manip-5.54);
[root@localhost Date-Manip-5.54]# perl Makefile.PL
[root@localhost Date-Manip-5.54]# make
[root@localhost Date-Manip-5.54]# make test
[root@localhost Date-Manip-5.54]# make install
-- imapsync 本体のインストール
[root@localhost imapsync-1.252]# perl -c imapsync
imapsync syntax OK
[root@localhost imapsync-1.252]# make install
*** imap-sync コマンド [#z308e709]
- &ref(sync_munakata.sh,center, sync_munakata.sh);
[root@localhost ~]# cat ./sync_munakata.sh
/usr/bin/imapsync \
--host1 sbmx --user1 munakata --passfile1 /...
--host2 mail.hmuna.com --user2 munakata --passfile2 /...
[root@localhost ~]#
- &ref(sync_stored.sh,center, sync_stored.sh);
[root@localhost script]# cat ./sync_stored.sh
/usr/bin/imapsync \
--host1 sbmx --user1 munakata.hisao --passf...
--host2 mail.hmuna.com --user2 stored_mail --passf...
終了行:
#contents
*** route の追加 [#gcb96e3e]
eth0 側(=社内LAN接続)から 会社メールサーバー(172.8.30...
尚、その他の通常パケットは eth1 側から流れるように設定す...
- &ref(add_eth0.sh,center,add_eth0.sh(route 追加スクリプ...
[root@localhost ~]# route add -net 172.30.0.0 gw 172.30....
[root@localhost ~]# route
Kernel IP routing table
Destination Gateway Genmask Flags Me...
192.168.84.0 * 255.255.255.0 U 0 ...
192.168.1.0 * 255.255.255.0 U 0 ...
172.30.8.0 * 255.255.255.0 U 0 ...
172.16.156.0 * 255.255.255.0 U 0 ...
192.168.56.0 * 255.255.255.0 U 0 ...
172.30.0.0 172.30.8.254 255.255.0.0 UG 20...
169.254.0.0 * 255.255.0.0 U 0 ...
default 192.168.1.60 0.0.0.0 UG 0 ...
この状態で、社内メールサーバーと自宅サーバーの両方に ping...
通常は eth0 側は活性化もしていないし、ケーブルそのものも...
[root@localhost ~]# ping mail.hmuna.com
PING mail.hmuna.com (122.249.122.231) 56(84) bytes of da...
64 bytes from x122231.ppp.asahi-net.or.jp (122.249.122.2...
64 bytes from x122231.ppp.asahi-net.or.jp (122.249.122.2...
64 bytes from x122231.ppp.asahi-net.or.jp (122.249.122.2...
64 bytes from x122231.ppp.asahi-net.or.jp (122.249.122.2...
64 bytes from x122231.ppp.asahi-net.or.jp (122.249.122.2...
--- mail.hmuna.com ping statistics ---
5 packets transmitted, 5 received, 0% packet loss, time ...
rtt min/avg/max/mdev = 7.624/7.982/8.388/0.252 ms
[root@localhost ~]# ping 172.30.8.202
PING 172.30.8.202 (172.30.8.202) 56(84) bytes of data.
64 bytes from 172.30.8.202: icmp_seq=1 ttl=64 time=0.298...
64 bytes from 172.30.8.202: icmp_seq=2 ttl=64 time=0.222...
64 bytes from 172.30.8.202: icmp_seq=3 ttl=64 time=0.281...
64 bytes from 172.30.8.202: icmp_seq=4 ttl=64 time=0.334...
--- 172.30.8.202 ping statistics ---
4 packets transmitted, 4 received, 0% packet loss, time ...
rtt min/avg/max/mdev = 0.222/0.283/0.334/0.045 ms
[root@localhost ~]#
*** &ref(imapsync-1.252.tgz,center,imapsync-1.252); イン...
- perl 関連モジュールのインストール
-- &ref(Mail-IMAPClient-2.2.9.tar.gz,center,Mail-IMAPClie...
[root@localhost Mail-IMAPClient-2.2.9]# perl Makefile.PL
[root@localhost Mail-IMAPClient-2.2.9]# make
[root@localhost Mail-IMAPClient-2.2.9]# make test
[root@localhost Mail-IMAPClient-2.2.9]# make install
-- &ref(Digest-MD5-2.36.tar.gz,center,Digest-MD5-2.36);
[root@localhost Digest-MD5-2.36]# perl Makefile.PL
[root@localhost Digest-MD5-2.36]# make
[root@localhost Digest-MD5-2.36]# make test
[root@localhost Digest-MD5-2.36]# make install
-- &ref(TermReadKey-2.30.tar.gz,center,TermReadKey-2.30);
[root@localhost TermReadKey-2.30]# perl Makefile.PL
[root@localhost TermReadKey-2.30]# make
[root@localhost TermReadKey-2.30]# make test
[root@localhost TermReadKey-2.30]# make install
-- &ref(IO-Socket-SSL-1.13.tar.gz,center,IO-Socket-SSL-1....
[root@localhost IO-Socket-SSL-1.13]# perl Makefile.PL
[root@localhost IO-Socket-SSL-1.13]# make
[root@localhost IO-Socket-SSL-1.13]# make test
[root@localhost IO-Socket-SSL-1.13]# make install
-- &ref(Date-Manip-5.54.tar.gz,center,Date-Manip-5.54);
[root@localhost Date-Manip-5.54]# perl Makefile.PL
[root@localhost Date-Manip-5.54]# make
[root@localhost Date-Manip-5.54]# make test
[root@localhost Date-Manip-5.54]# make install
-- imapsync 本体のインストール
[root@localhost imapsync-1.252]# perl -c imapsync
imapsync syntax OK
[root@localhost imapsync-1.252]# make install
*** imap-sync コマンド [#z308e709]
- &ref(sync_munakata.sh,center, sync_munakata.sh);
[root@localhost ~]# cat ./sync_munakata.sh
/usr/bin/imapsync \
--host1 sbmx --user1 munakata --passfile1 /...
--host2 mail.hmuna.com --user2 munakata --passfile2 /...
[root@localhost ~]#
- &ref(sync_stored.sh,center, sync_stored.sh);
[root@localhost script]# cat ./sync_stored.sh
/usr/bin/imapsync \
--host1 sbmx --user1 munakata.hisao --passf...
--host2 mail.hmuna.com --user2 stored_mail --passf...
ページ名: