您的位置:首页 > 大数据 > 人工智能

打造你的办公环境-email篇

2016-03-04 14:58 489 查看

1. 配置安装 procmailr 和 getmail

///////////////////////////////// ignore the follow /////////////////////////////////////////

$ mkdir mail-setup

$ cd mail-setup/

$ tar xpfv muttrc-out-of-box.tgz

$ cd .mutt/

$ rm muttrc-out-of-box.tgz
$ cd .mutt/
$ cd scripts/
$ cd ..
$ cd misc
$ cd ..
$ cd scripts/
$ vi bootstrapping-mutt.sh
$ ./bootstrapping-mutt.sh

$ cd .mail/
$ cd ..
$ rm .muttrc
$ cd .mail
$ cd ..
$ rm .lbdbrc
$ cat .mailcap
$ rm .mailcap

///////////////////////////////////////////////////////////////////

configure getmail

$ sudo apt install getmail
$ sudo apt install procmail
$ apt search getmail
$ sudo apt install getmail4
$ dpkg -L getmail4
$ getmail
$ mkdir .getmail
$ cd .getmail/
$ ls
$ cp ~/mail-setup/.mutt/misc/getmailrc.template.sample .
$ vi getmailrc.template.sample
$ getmail
$ mv getmailrc.template.sample getmailrc

$ cat ~/.getmail/getmailrc

# 2.2.9: /etc/dovecot/dovecot.conf
# OS: Linux 3.16.0-33-generic x86_64 Ubuntu 14.04.3 LTS
mail_location = maildir:~/Mail/2016:LAYOUT=fs:INBOX=~/Mail/2016/Inbox:INDEX=~/Mail/.dovecot/indexes:CONTROL=~/Mail/.dovecot/control
maildir_very_dirty_syncs = yes
namespace inbox {
inbox = yes
location =
mailbox Drafts {
special_use = \Drafts
}
mailbox Junk {
special_use = \Junk
}
mailbox Sent {
special_use = \Sent
}
mailbox "Sent Messages" {
special_use = \Sent
}
mailbox Trash {
special_use = \Trash
}
prefix =
}
passdb {
driver = pam
}
protocols = " imap"
ssl_cert = </etc/dovecot/dovecot.pem
ssl_key = </etc/dovecot/private/dovecot.pem
userdb {
driver = passwd
}


View Code
$ doveadm

debug dovecot

http://www.anta.net/misc/telnet-troubleshooting/imap.shtml

http://webcache.googleusercontent.com/search?q=cache:iGfa6OFcHGcJ:wiki.dovecot.org/TestInstallation+&cd=1&hl=zh-CN&ct=clnk&gl=us

3. 配置domainname

$ domainname
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: