没有不值得去解决的问题,也没有不值得去学习的技术!

Ubuntu 26.04 Email Client Journey: From NetEase Mail Master to Thunderbird With 8 Accounts Added at Once

Figure 15: After completing the authorization, the Gmail account was successfully added. In the end, a total of 8 email accounts were added to Thunderbird's account list.

From NetEase Mail Master to Thunderbird, from dependency conflicts to proxy failures, here is a record of a full day of tinkering with a Linux email client.


How It Started

I recently upgraded my main system to Ubuntu 26.04 and wanted to centrally manage my scattered email accounts. NetEase Mail Master has a good reputation in China, and I was familiar with its interface, so I opened the GNOME Software Center and searched for it—

Figure 1: The search results were completely empty, showing “No applications found”. It seems it is not included in the official repositories.

Figure 1: The search results were completely empty, showing "No applications found". It seems it is not included in the official repositories.

Since it wasn’t in the Software Center, I went to the official website to download it. I visited https://dashi.163.com/ and found that NetEase provides a Linux installation package, but it is a .deb package for Ubuntu 22.04.

Figure 2: I downloaded the mail.deb file, labeled “NetEase Mail Master 64-bit deb package for Ubuntu 22.04”.

Figure 2: I downloaded the mail.deb file, labeled "NetEase Mail Master 64-bit deb package for Ubuntu 22.04".

I found the downloaded package in the file manager, right-clicked, and selected “Open with Software Install”—Figure 3.

I found the downloaded package in the file manager, right-clicked, and selected "Open with Software Install"—Figure 3.

Figure 4: The software installation interface displayed “NetEase Mail Master – Efficient and powerful cross-platform email client”, and everything looked normal. I clicked “Install”.

Figure 4: The software installation interface displayed "NetEase Mail Master - Efficient and powerful cross-platform email client", and everything looked normal. I clicked "Install".

Figure 5: However, the installation failed. Error details:

Figure 5: However, the installation failed. Error details:

Unable to install mailmaster
Details: The following packages have unmet dependencies:
mailmaster: Depends: libgconf-2-4 but it is not installable

Ubuntu 26.04 has already removed this legacy GConf library, but NetEase’s .deb package still depends on it. I tried manually installing the dependency to no avail, so I decisively gave up on NetEase Mail Master.

Tip: If you insist on using NetEase Mail Master, you can install it in an Ubuntu 22.04 environment or try the Flatpak version (if it exists). But for 26.04 users, this path is essentially a dead end.


Why Choose Thunderbird?

Since NetEase Mail Master wasn’t an option, I had to switch to something else. I ultimately chose Thunderbird. Here is a comparative analysis to help you understand why it is currently the best choice.

Comparison of Mainstream Linux Email Clients

ClientPositioningProsConsTarget Audience
ThunderbirdAll-around PIMComprehensive features, rich plugins, continuous updates, cross-platformSlightly traditional interface, many settingsVast majority of users
GearyGNOME MinimalistModern interface, conversation view, seamless GNOME integrationStreamlined features, slower updatesGNOME desktop, light email users
EvolutionEnterpriseCalendar/contacts/tasks integration, excellent Exchange supportInterface looks like old OutlookEnterprise users, those needing Exchange
KMailKDE NativeHigh KDE integration, feature-richDepends on many KDE librariesKDE desktop users
Claws MailLightweightExtremely fast, very low resource usagePlain interface, steep learning curveOlder hardware, speed-focused users
MailspringModern CommercialBeautiful interface, modern featuresSome features are paid, closed sourceUsers willing to pay

Why Did I Ultimately Choose Thunderbird?

1. Stable, reliable, and continuously updated

Thunderbird originated from the Mozilla Foundation, sharing the same roots as Firefox, and has a development history of over 20 years. After becoming independent in 2020, it established MZLA Technologies Corporation, gaining greater autonomy and more focused development resources. In recent years, especially with the major “Supernova” update in 2023, Thunderbird underwent a transformative modernization.

2. Comprehensive features, an all-in-one solution

It is not just an email client, but a Personal Information Manager (PIM) that integrates calendar, task management, RSS subscriptions, Matrix chat, and more. For users who need to manage multiple email accounts, this all-in-one solution is extremely convenient.

3. Native Gmail OAuth2 support

Starting in 2024, Google began requiring all third-party clients to use OAuth2 authentication, rendering the standard username/password method completely obsolete. Thunderbird has full native support for OAuth2, which is a fundamental prerequisite for using Gmail.

4. Ubuntu default, massive community

As the default pre-installed email client on Ubuntu, Thunderbird boasts a massive user base and abundant documentation, making it easier to find solutions when you run into problems.

5. Excellent multi-account management

Thunderbird can easily manage multiple email accounts and supports the IMAP/POP3 protocols. It also features a built-in calendar, contacts, OpenPGP encryption, and more. Its high extensibility makes it the safest and most reliable choice for the vast majority of users.

In summary: Thunderbird might not be the lightest or the best-looking, but it is the most reliable choice—comprehensive features, a massive community, and continuous updates make it suitable for the vast majority of Ubuntu users.


Switching to Thunderbird

Figure 6: I searched for Thunderbird in the Software Center, clicked install, and the installation completed smoothly.

Figure 6: I searched for Thunderbird in the Software Center, clicked install, and the installation completed smoothly.

Figure 7: I opened Thunderbird and started adding email accounts. After entering the email address and password, the automatic configuration wizard was very smart. It automatically identified imap.163.com and smtp.163.com, set the connection security to SSL/TLS, and finished in one step.

Figure 7: I opened Thunderbird and started adding email accounts. After entering the email address and password, the automatic configuration wizard was very smart. It automatically identified imap.163.com and smtp.163.com, set the connection security to SSL/TLS, and finished in one step.

📌 Authorization Code Configuration for NetEase Emails (126/163/yeah)

Figure 8, here is a key point: if you are using NetEase emails like 126, 163, or yeah.net, you cannot log in directly with your email password. You need to obtain an authorization code first.

Figure 8, here is a key point: if you are using NetEase emails like 126, 163, or yeah.net, you cannot log in directly with your email password. You need to obtain an authorization code first.

Specific steps:

  1. Log in to the NetEase email web version and go to the Settings → POP3/SMTP/IMAP settings page.
  2. Enable the IMAP/SMTP service (IMAP is recommended because it syncs email status across multiple devices).
  3. The system will prompt: “Your email authorization code may have been leaked. We recommend disabling third-party login services immediately and then generating a new authorization code”—follow the instructions to generate a new authorization code.
  4. Each account can have a maximum of 2 authorization passwords. With a premium membership, this increases to 10.
  5. Copy the generated authorization code. When you return to Thunderbird to add the account, paste this authorization code into the password field.

Tip: Set the IMAP protocol port to 993 (SSL/TLS) and the SMTP port to 994 or 465 (SSL/TLS). Enter your full email address as the username.


Gmail’s OAuth2 and Proxy Configuration

When adding a Gmail account, the real challenge began.

Figure 9: After entering shuijingwanwq@gmail.com, Thunderbird prompted: “Waiting for authorization in the login popup”.

Figure 9: After entering shuijingwanwq@gmail.com, Thunderbird prompted: "Waiting for authorization in the login popup".

Since Google mandated OAuth2 authentication starting in 2024, the standard password login method no longer works. Thunderbird pops up a Google authorization window, allowing you to complete the login and authorization process in a browser-style interface.

However, after waiting for nearly a minute, the popup finally appeared, only to show a “Connection timed out” error—Figure 10.

However, after waiting for nearly a minute, the popup finally appeared, only to show a "Connection timed out" error—Figure 10.

Figure 11: I am using the Clash Verge proxy client. In the Clash Verge settings, the mixed proxy port is 7897, and the SOCKS5 port is not enabled by default.

Figure 11: I am using the Clash Verge proxy client. In the Clash Verge settings, the mixed proxy port is 7897, and the SOCKS5 port is not enabled by default.

🧪 First Attempt: SOCKS5 Proxy—Failed Outright

Figure 12: I first tried configuring a SOCKS5 proxy. In Thunderbird’s “Connection Settings”, I selected manual proxy configuration, entered 127.0.0.1 as the SOCKS host, entered Clash Verge’s SOCKS5 port (e.g., 7898) as the port, and checked “Proxy DNS when using SOCKS v5”.

Figure 12: I first tried configuring a SOCKS5 proxy. In Thunderbird's "Connection Settings", I selected manual proxy configuration, entered 127.0.0.1 as the SOCKS host, entered Clash Verge's SOCKS5 port (e.g., 7898) as the port, and checked "Proxy DNS when using SOCKS v5".

Result: After saving, I restarted Thunderbird and tried adding the Gmail account again. This time, the popup didn’t even appear, and it directly showed an “Authentication error”.

Cause Analysis: In a SOCKS5 proxy environment, Thunderbird’s OAuth2 authorization flow can be blocked. Some users have found that IMAP can work normally through a SOCKS5 proxy, but the SMTP part fails. More critically, Thunderbird’s OAuth popup is essentially a built-in browser page. It communicates via the HTTPS protocol, using a different network channel than standard email protocols (IMAP/SMTP). Under SOCKS5, the HTTPS requests from this built-in browser likely cannot be processed correctly, causing the authorization process to hang.

✅ Second Attempt: HTTP Proxy—Success!

Figure 13: I switched to an HTTP proxy solution. In Thunderbird’s connection settings:

Figure 13: I switched to an HTTP proxy solution. In Thunderbird's connection settings:
  • HTTP Proxy: 127.0.0.1, Port 7897 (Clash Verge’s mixed proxy port)
  • HTTPS Proxy: 127.0.0.1, Port 7897
  • Leave the SOCKS host blank
  • Uncheck “Proxy DNS when using SOCKS v5”

After saving, I restarted Thunderbird and added the Gmail account again.

Figure 14: This time, the Google authorization page popped up successfully! I entered my email or phone number, clicked Next, entered my password, and then authorized Thunderbird to access my Google account.

Figure 14: This time, the Google authorization page popped up successfully! I entered my email or phone number, clicked Next, entered my password, and then authorized Thunderbird to access my Google account.

Figure 15: After completing the authorization, the Gmail account was successfully added. In the end, a total of 8 email accounts were added to Thunderbird’s account list.

Figure 15: After completing the authorization, the Gmail account was successfully added. In the end, a total of 8 email accounts were added to Thunderbird's account list.

📋 Final Result: 8 Email Accounts United

Including:

  • shuijingwanwq@163.com
  • shuijingwanwq@126.com
  • shuijingwanwq@yeah.net
  • shuijingwanwq@gmail.com
  • 13980074657@139.com
  • 958104607@qq.com
  • hi50186795@aliyun.com
  • shuijingwanwq@sina.com

All email accounts can now send and receive emails normally. With Thunderbird managing everything centrally, I no longer have to log into each web portal individually to check my mail.


💎 Lessons Learned

ProblemCauseSolution
NetEase Mail Master installation failedDependency libgconf-2-4 removed in the new systemAbandon NetEase, switch to Thunderbird
NetEase email login failedAuthorization code required instead of passwordEnable IMAP/SMTP on the web version and generate an authorization code
Gmail authorization timed outImproper proxy configuration, OAuth traffic bypassed the proxyUse an HTTP proxy instead of SOCKS5
No popup under SOCKS5HTTPS requests from the OAuth built-in browser were blockedSwitch to HTTP proxy + mixed port
Gmail OAuth2 authenticationGoogle mandates OAuth2Ensure Thunderbird’s authentication method is set to OAuth2

🚀 Final Thoughts

If you are also configuring an email client on Ubuntu 26.04, my advice is:

  1. Make Thunderbird your first choice: It is Ubuntu’s default recommendation, offers comprehensive features, receives continuous updates, and has a massive community, making it the safest choice for the vast majority of users.
  2. NetEase emails: Remember to log in using an authorization code, not your direct password.
  3. Gmail: OAuth2 is the only way. If you encounter proxy issues, try an HTTP proxy (mixed port) instead of SOCKS5.
  4. Configure once, benefit long-term: Now I just open Thunderbird every day to check emails across all my accounts, without having to log into each web portal individually anymore.

I hope this record helps those of you who are also tinkering with email clients on Ubuntu. If you have a better solution, feel free to share and discuss~

关于作者 · 持续学习与技术实践

我是一名拥有 15 年以上开发经验的技术从业者,自 2013 年起持续运营个人技术博客,记录工作与个人项目中遇到的真实问题,以及解决问题过程中的探索、实践和思考。

除了技术写作,我也在持续开发和维护自己的独立项目,探索新技术和新工具在实际场景中的应用。我始终相信,没有不值得去解决的问题,也没有不值得去学习的技术。

如果这篇文章对你有所帮助,欢迎浏览博客中的其他文章,也欢迎交流技术经验与想法。

关于我  ·  GitHub  ·  邮件联系