[GH-ISSUE #249] Suggestion: IMAP/POP server #165

Closed
opened 2026-03-15 12:56:12 +03:00 by kerem · 6 comments
Owner

Originally created by @oliveiraev on GitHub (Feb 20, 2024).
Original GitHub issue: https://github.com/axllent/mailpit/issues/249

Is it possible to implement an IMAP or POP server in the project? So I can test the emails in my favorite client, instead of the web UI.

I know I can forward the messages to a real SMTP server, but the reason to use Mailpit is just avoid flooding my mailserver with crap 😕

Originally created by @oliveiraev on GitHub (Feb 20, 2024). Original GitHub issue: https://github.com/axllent/mailpit/issues/249 Is it possible to implement an IMAP or POP server in the project? So I can test the emails in my favorite client, instead of the web UI. I know I can forward the messages to a real SMTP server, but the reason to use Mailpit is just avoid flooding my mailserver with crap 😕
kerem 2026-03-15 12:56:12 +03:00
Author
Owner

@axllent commented on GitHub (Feb 21, 2024):

Hi @oliveiraev . This has been asked already a year ago in #72 - which I declined as I had another 100 development priorities at the time. IMAP is very complicated as one deals with various states of email, folders etc (which Mailpit does not have), but POP3 might potentially be a new feature now. I'll have to think about this a bit more and do some research before saying yes or no. Please leave this with me for now.

<!-- gh-comment-id:1955512752 --> @axllent commented on GitHub (Feb 21, 2024): Hi @oliveiraev . This has been asked already a year ago in #72 - which I declined as I had another 100 development priorities at the time. IMAP is very complicated as one deals with various states of email, folders etc (which Mailpit does not have), but POP3 _might_ potentially be a new feature now. I'll have to think about this a bit more and do some research before saying yes or no. Please leave this with me for now.
Author
Owner

@oliveiraev commented on GitHub (Feb 21, 2024):

Thanks for the reply and sorry about the duplicated request.

<!-- gh-comment-id:1957545393 --> @oliveiraev commented on GitHub (Feb 21, 2024): Thanks for the reply and sorry about the duplicated request.
Author
Owner

@axllent commented on GitHub (Feb 24, 2024):

@oliveiraev This ended up being more complicated that I had anticipated because I had to write a complete POP3 server from scratch. Fortunately POP3 is one of the most simple protocols around so it wasn't that bad....

I have released this feature in v1.14.0 and the documentation can be found on the website. Please read the notes in the documentation and let me know if you have any questions, and confirm whether this works as you expected? Thanks.

<!-- gh-comment-id:1962323913 --> @axllent commented on GitHub (Feb 24, 2024): @oliveiraev This ended up being more complicated that I had anticipated because I had to write a complete POP3 server from scratch. Fortunately POP3 is one of the most simple protocols around so it wasn't that bad.... I have released this feature in [v1.14.0](https://github.com/axllent/mailpit/releases/tag/v1.14.0) and the documentation can be found on [the website](https://mailpit.axllent.org/docs/configuration/pop3/). Please read the notes in the documentation and let me know if you have any questions, and confirm whether this works as you expected? Thanks.
Author
Owner

@axllent commented on GitHub (Mar 5, 2024):

@oliveiraev I would really appreciate if you could confirm that this is working for you. Thanks.

<!-- gh-comment-id:1978261955 --> @axllent commented on GitHub (Mar 5, 2024): @oliveiraev I would really appreciate if you could confirm that this is working for you. Thanks.
Author
Owner

@Novapixel1010 commented on GitHub (Apr 24, 2025):

@axllent So far via cli it works. Thanks so much for this project it really saved lot of headache 🤯 of setting up a whole server. When all need to do is test before production. I can test it more if you would like?

frappe@crm5-dev:~/frappe-bench$ telnet pop.in.com 1110
Trying 192.168.1.213...
Connected to pop.in.com.
Escape character is '^]'.
+OK Mailpit POP3 server
quit
+OK goodbye
Connection closed by foreign host.

<!-- gh-comment-id:2826485111 --> @Novapixel1010 commented on GitHub (Apr 24, 2025): @axllent So far via cli it works. Thanks so much for this project it really saved lot of headache 🤯 of setting up a whole server. When all need to do is test before production. I can test it more if you would like? ```shell frappe@crm5-dev:~/frappe-bench$ telnet pop.in.com 1110 Trying 192.168.1.213... Connected to pop.in.com. Escape character is '^]'. +OK Mailpit POP3 server quit +OK goodbye Connection closed by foreign host. ```
Author
Owner

@axllent commented on GitHub (Apr 24, 2025):

Thanks for the feedback @Novapixel1010 , I'm glad to hear you find it useful!

<!-- gh-comment-id:2826539068 --> @axllent commented on GitHub (Apr 24, 2025): Thanks for the feedback @Novapixel1010 , I'm glad to hear you find it useful!
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/mailpit#165
No description provided.