After deploying gitea, email notifications failed to send automatically. The user resolved this by configuring SMTP based on advice from a foreign forum, as official documentation was unclear. Key changes included setting PROTOCOL to smtps instead of smtp, using port 465 for QQ mailbox instead of 587, and adding ENABLE_HELO as false to fix EOF errors during testing.
Configuring Gitea's Mail
After deploying Gitea, I could never get automatic notification emails to work. Since it's meant to be our future collaboration platform, I decided to fix this today.
Neither the official documentation nor the various Chinese tutorials explained this clearly. In my environment, I had to piece together the correct configuration from a forum post by a foreign user.
The configuration block is:
There are three key points:
PROTOCOLshould besmtps, notsmtp.SMTP_PORTshouldn't be set to 587; use 465 instead.ENABLE_HELOfield and set it tofalse. -