标题: 用Thunderbird访问某邮件服务器 创建: 2022-04-14 14:05 更新: 2026-05-23 13:28 链接: https://scz.617.cn/misc/202204141405.txt -------------------------------------------------------------------------- 目录: ☆ 背景介绍 ☆ 配置Thunderbird 1) 下载 2) 安装 2.1) 升级 2.2) 绿色化 (2026-05-22) 3) 全局配置 4) 添加邮箱帐户 5) Local Folders 6) 远程邮箱 (未解决) ☆ 参考资源 -------------------------------------------------------------------------- ☆ 背景介绍 2022.3.4收到一封来自某邮件服务器的通知邮件,说是从今年6月开始,只用user/ pass进行POP3/IMAP登录的邮件客户端无法访问该邮件服务器了,得换支持OAuth登录 的邮件客户端。 搜了一下,至少如下软件支持 -------------------------------------------------------------------------- Microsoft Outlook Microsoft Outlook for Mac Mozilla Thunderbird Windows Mail (included in Windows) Apple Mail (available on macOS and iOS/iPadOS) -------------------------------------------------------------------------- 过去我一直用Becky,后来是Becky+Proxifier。Becky已经很老了,还是绿色版,肯 定不支持OAuth,为此需要寻找新的邮件客户端。简单搜索研究之后决定用 Mozilla Thunderbird。 我需要将软件和邮件置于加密盘中,绿色化后便于迁移。微软Outlook估计无法绿色 化,Thunderbird虽然没有明说可以绿色化,实测下来可以。 ☆ 配置Thunderbird 1) 下载 参[2] 2) 安装 缺省安装到 C:\Program Files\Mozilla Thunderbird\ 复制到 X:\Thunderbird\ X盘是个加密盘 2.1) 升级 只能阻止Thunderbird自动升级,没法阻止Thunderbird检查更新。 https://www.thunderbird.net/download/ 下载并安装最新版,复制安装目录到加密盘,卸载Thunderbird。原来配置好的邮箱 自动加载,暂不清楚这种关联如何建立的。 用Process Monitor监控,可能是这样定位的 %APPDATA%\Thunderbird %APPDATA%\Thunderbird\profiles.ini %APPDATA%\Thunderbird\Profiles\ %APPDATA%\Thunderbird\Profiles\...\blist.sqlite 迁移系统时应该备份迁移上述目录。 2.2) 绿色化 (2026-05-22) 过去只有 X:\somemail\ X:\Local\ 不足以完全绿色化(便携化)。还有两个目录在外面 %APPDATA%\Thunderbird\ %LOCALAPPDATA%\Thunderbird\ 缺省情况下,若这两个目录不存在,就会自动创建。最主要是第一个,下面有 Crash Reports\ Pending Pings\ Profiles\ installs.ini profiles.ini 这里面最主要是Profiles子目录,其余文件、目录都不重要。Profiles下有更细的子 目录,一般只有一个生效中,假设当前使用的是 Profiles/m7886cf6.default-release-1 -------------------------------------------------------------------------- Help More Troubleshooting Information Profile Folder Open Folder ...\Profiles\m7886cf6.default-release-1 -------------------------------------------------------------------------- 将原来的 %APPDATA%\Thunderbird\Profiles\m7886cf6.default-release-1 剪切到 X:\path\profile\ 然后这样启动 X:\Thunderbird\thunderbird.exe -profile "X:\path\profile" 只与-profile指定的目录相关,与installs.ini、profiles.ini没啥关系。绿色化, 不能只绿化X:\somemail\,还得绿化profile目录。 从91.9.0升级到151.0,替换X:\Thunderbird\目录即可。但151版会更新profile目录, 无法回滚降级。所以测试前,应备份旧版profile目录,我这次没备份,幸好没出幺 蛾子。 3) 全局配置 在顶部右键,把Menu Bar放出来。 -------------------------------------------------------------------------- Tools Preferences General Thunderbird Start Page When Thunderbird launches, show the Start Page in the message area 从缺省选中改成清空 Default Search Engine 缺省为Google System Integration Always check to see if Thunderbird is the default mail client on startup 清空 When Thunderbird is minimized, move it to the tray 选中 Allow Windows Search to search messages 清空 Fonts & Colors Default font Microsoft YaHei Size 16 Advanced Fonts for Simplified Chinese Date and Time Formatting Regional settings local: Chinese (China) When new messages arrive Show an alert 清空 Show a tray icon for unread messages 清空 Play a sound 清空 Files & Attachments PDF Always ask Always ask me where to save files Automatically mark messages as read 选中 Immediately on display Open messages in A new tab Plain Text Messages Display emoticons as graphics 清空 Preferred address display format Full name and email address Show only display name for people in my address book 选中 Return Receipts When sending messages, always request a return receipt 清空 When a receipt arrives Leave it in my Inbox When I receive a request for a return receipt Never send a return receipt Thunderbird Updates Check for updates, but let me choose whether to install them Connection Manual proxy configuration SOCKS Host: (略) Port: (略) SOCKS v5 Proxy DNS when using SOCKS v5 (很重要,必选) Offline Automatically follow detected online state 清空 Manual state when starting up Ask me for online state Send unsent messages when going online Ask me Download messages for offline use when going offline Ask me Compact folders when it will save over 200MB in total Ask every time before compacting 丨 Indexing Enable Global Search and Indexer 清空 Message Store Type for new accounts File per folder (mbox) Composition Addressing Automatically add outgoing e-mail addresses to my 清空 Privacy & Security Allow remote content in messages 清空 Remember websites and links I've visited 清空 Passwords Saved Passwords 可在此删除已保存的密码 Thunderbird Data Collection and Use Allow Thunderbird to send technical and interaction data to Mozilla 清空 Allow Thunderbird to send backlogged crash reports on your behalf 清空 Tell me if the message I'm reading is a suspected email scam 清空 Allow antivirus clients to quarantine individual incoming messages 清空 When a server requests my personal certificate Ask me every time Chat When Thunderbird starts Keep my Chat Accounts offline Let my contacts know that I am Idle after 5 minutes of inactivity 清空 Send typing notifications in conversations 清空 When messages directed at you arrive 下面几项全部清空 -------------------------------------------------------------------------- Thunderbird直接支持SOCKS5,不需要Proxifier,而且实测下来,Proxifier也Hook 不住Thunderbird。 4) 添加邮箱帐户 假设要添加"nobody@somemail.com",提前创建目录 X:\somemail\nobody\ -------------------------------------------------------------------------- Tools Account Settings Account Actions Add Mail Account Your full name Nobody Email address nobody@somemail.com Password 让它空着 Continue Configure manually INCOMING SERVER Protocol IMAP Hostname imap.somemail.com Port 993 Connection security SSL/TLS Authentication method OAuth2 Username nobody@somemail.com OUTGOING SERVER Hostname smtp.somemail.com Port 465 Connection security SSL/TLS Authentication method OAuth2 Username nobody@somemail.com Advanced config -------------------------------------------------------------------------- Tools Account Settings nobody@somemail.com Server Settings Server Type IMAP Mail Server Server Name imap.somemail.com Port 993 User Name nobody@somemail.com Connection security SSL/TLS Authentication method OAuth2 Check for new messages at startup 清空 Check for new messages every 10 minutes 清空 Allow immediate server notifications when new messages arrive 清空 When I delete a message Move it to this folder Trash on nobody@somemail.com (最开始没有,回头调整成这样) Empty Trash on Exit Message Store Type File per folder (mbox) Local Directory X:\somemail\nobody\ Copies & Folders When sending messages, automatically Place a copy in Other Sent Mail on nobody@somemail.com (最开始没有,回头调整成这样) -------------------------------------------------------------------------- 5) Local Folders -------------------------------------------------------------------------- Tools Account Settings Local Folders Message Storage Empty Trash on Exit Local Directory X:\Local\ -------------------------------------------------------------------------- 我不知道这是干啥用的,但将存储目录指定到X盘,绿色化。 6) 远程邮箱 (未解决) Becky、Foxmail支持远程邮箱,可以远程看标题,无需下载直接删除。Thunderbird 不知如何达到同样效果? ☆ 参考资源 [2] Installing Thunderbird on Windows https://support.mozilla.org/en-US/kb/installing-thunderbird-windows https://www.thunderbird.net/en-US/ https://www.thunderbird.net/download/