]> src.bluestatic.org Git - mailpopbox.git/log
mailpopbox.git
4 years agoClean up tests to use `if want, got := X, Y; want != got {`.
Robert Sesek [Tue, 9 Jun 2020 02:54:53 +0000 (22:54 -0400)]
Clean up tests to use `if want, got := X, Y; want != got {`.

This reduces a lot of duplictaive expressions in tests.

4 years agoAdd more verbose pop3 connection logging.
Robert Sesek [Sun, 7 Jun 2020 17:09:12 +0000 (13:09 -0400)]
Add more verbose pop3 connection logging.

4 years agoConvert some TODOs to log statements.
Robert Sesek [Sun, 7 Jun 2020 16:14:49 +0000 (12:14 -0400)]
Convert some TODOs to log statements.

4 years agoRename smtp.Server.OnMessageDelievered to DeliverMessage.
Robert Sesek [Sun, 7 Jun 2020 16:04:24 +0000 (12:04 -0400)]
Rename smtp.Server.OnMessageDelievered to DeliverMessage.

4 years agoAdd missing license header to smtp/server_test.go. v2.0.0
Robert Sesek [Sun, 7 Jun 2020 04:29:55 +0000 (00:29 -0400)]
Add missing license header to smtp/server_test.go.

4 years agoMerge branch 'outbound'
Robert Sesek [Sun, 7 Jun 2020 04:26:43 +0000 (00:26 -0400)]
Merge branch 'outbound'

 Conflicts:
smtp_test.go

4 years agoAdd simple Makefile for common tasks.
Robert Sesek [Sun, 7 Jun 2020 04:21:37 +0000 (00:21 -0400)]
Add simple Makefile for common tasks.

4 years agoAdd some basic tests for the SMTP server component.
Robert Sesek [Sun, 7 Jun 2020 04:15:49 +0000 (00:15 -0400)]
Add some basic tests for the SMTP server component.

4 years agoAdd tests for the pop3 server component.
Robert Sesek [Sun, 7 Jun 2020 03:54:47 +0000 (23:54 -0400)]
Add tests for the pop3 server component.

4 years agoFix TLS connection in relayMessageToHost. v2.0.0-beta.2
Robert Sesek [Sat, 6 Jun 2020 19:15:51 +0000 (15:15 -0400)]
Fix TLS connection in relayMessageToHost.

The host had the port joined, which caused the cert verification to fail.

4 years agoFormat the Reporting-MTA in DSN messages per the spec.
Robert Sesek [Sat, 6 Jun 2020 18:46:43 +0000 (14:46 -0400)]
Format the Reporting-MTA in DSN messages per the spec.

4 years agoFix incorrect delivery-status Content-Type.
Robert Sesek [Sat, 6 Jun 2020 18:38:34 +0000 (14:38 -0400)]
Fix incorrect delivery-status Content-Type.

4 years agoUpdate smtp.connection.getTransportString cipher map.
Robert Sesek [Sat, 6 Jun 2020 16:11:27 +0000 (12:11 -0400)]
Update smtp.connection.getTransportString cipher map.

4 years agoProduce delivery-status failure notifications when failing to relay a message.
Robert Sesek [Sat, 6 Jun 2020 16:06:32 +0000 (12:06 -0400)]
Produce delivery-status failure notifications when failing to relay a message.

4 years agoUpdates for the latest zap. v2.0.0-beta.1
Robert Sesek [Sun, 24 May 2020 05:41:24 +0000 (01:41 -0400)]
Updates for the latest zap.

4 years agoMerge branch 'master' into outbound
Robert Sesek [Sun, 24 May 2020 05:39:12 +0000 (01:39 -0400)]
Merge branch 'master' into outbound

4 years agoEnable Go modules and upgrade zap to 1.15.0.
Robert Sesek [Sun, 24 May 2020 05:31:33 +0000 (01:31 -0400)]
Enable Go modules and upgrade zap to 1.15.0.

4 years agoUpgrade zap to the 1.0.0 release.
Robert Sesek [Sun, 24 May 2020 05:23:37 +0000 (01:23 -0400)]
Upgrade zap to the 1.0.0 release.

The current version was pre-release!

4 years agoStop using smtp.SendMail to relay messages.
Robert Sesek [Sun, 24 May 2020 04:51:30 +0000 (00:51 -0400)]
Stop using smtp.SendMail to relay messages.

Instead, dial the SMTP server and manage the protocol manually.

4 years agoAdd license information.
Robert Sesek [Sat, 23 May 2020 19:25:24 +0000 (15:25 -0400)]
Add license information.

4 years agoChange the send-as functionality to use a string in the Subject.
Robert Sesek [Thu, 30 Apr 2020 05:37:40 +0000 (01:37 -0400)]
Change the send-as functionality to use a string in the Subject.

Using the RCPT TO for BCCs does not work if mailpopbox is not the
original MTA to accept the message. The originating MTA creates two
envelopes with 1 RCPT TO each, rather than 1 envelope with 2 RCPT TO.

Editing the subject breaks Gmail threading on the send-side, but it
works. An alternative was to search the body of the message for a
string, but that gets more complex with complex message Content-Types.

4 years agoHandle initial responses for AUTH PLAIN.
Robert Sesek [Thu, 30 Apr 2020 03:15:36 +0000 (23:15 -0400)]
Handle initial responses for AUTH PLAIN.

See RFC 4954, Section 4.

4 years agoAdd support for outbound SMTP delivery.
Robert Sesek [Thu, 30 Apr 2020 02:17:03 +0000 (22:17 -0400)]
Add support for outbound SMTP delivery.

Messages can be sent through the SMTP server to other MTAs. In a reverse
of the catch-all inbound mail server, a message can be made to appear
From any address at the domain by BCCing <sameas+ANYTHING@DOMAIN> on the
message.

5 years agoSet OOM properties on mailpopbox.service. v1.2.1
Robert Sesek [Fri, 13 Sep 2019 06:10:36 +0000 (02:10 -0400)]
Set OOM properties on mailpopbox.service.

6 years agoIn smtp/conn_test.go, testServer.verifyAddress should check a common domain.
Robert Sesek [Thu, 6 Sep 2018 00:56:27 +0000 (20:56 -0400)]
In smtp/conn_test.go, testServer.verifyAddress should check a common domain.

6 years agoImplement AUTH PLAIN authentication extensions in SMTP.
Robert Sesek [Wed, 5 Sep 2018 04:59:11 +0000 (00:59 -0400)]
Implement AUTH PLAIN authentication extensions in SMTP.

This adds support for the AUTH extension (RFC 2554) and a single
SASL mechanism of PLAIN. This must be done after STARTTLS.

6 years agoRemove smtp.Server.OnEHLO.
Robert Sesek [Mon, 3 Sep 2018 05:14:08 +0000 (01:14 -0400)]
Remove smtp.Server.OnEHLO.

6 years agoAdd a SMTP test for STARTTLS.
Robert Sesek [Mon, 3 Sep 2018 05:03:59 +0000 (01:03 -0400)]
Add a SMTP test for STARTTLS.

6 years agoAdd smtp.DomainForAddress.
Robert Sesek [Mon, 3 Sep 2018 04:16:22 +0000 (00:16 -0400)]
Add smtp.DomainForAddress.

6 years agoMove the mailbox@ string to a MailboxAccount constant.
Robert Sesek [Mon, 3 Sep 2018 00:47:34 +0000 (20:47 -0400)]
Move the mailbox@ string to a MailboxAccount constant.

7 years agoSupport reloading the TLS config via SIGHUP. v1.2.0
Robert Sesek [Fri, 7 Apr 2017 04:06:12 +0000 (00:06 -0400)]
Support reloading the TLS config via SIGHUP.

- Breaks out running an Accept loop into a goroutine.
- Changes how the servers communicate back to the main event loop,
  using an enum instead of an error object.

7 years agoLower-case the addresses in smtp.conn.parsePath. v1.1.1
Robert Sesek [Tue, 17 Jan 2017 02:21:25 +0000 (21:21 -0500)]
Lower-case the addresses in smtp.conn.parsePath.

7 years agoEnsure stable message list order in pop3/conn_test.go. v1.1.0
Robert Sesek [Mon, 2 Jan 2017 08:21:40 +0000 (03:21 -0500)]
Ensure stable message list order in pop3/conn_test.go.

7 years agoImplement the POP3 CAPA command from RFC 2449.
Robert Sesek [Mon, 2 Jan 2017 08:14:15 +0000 (03:14 -0500)]
Implement the POP3 CAPA command from RFC 2449.

7 years agoAdd more logging for the POP3 server.
Robert Sesek [Mon, 2 Jan 2017 08:07:56 +0000 (03:07 -0500)]
Add more logging for the POP3 server.

7 years agoFix slice range panics in the POP3 USER and PASS commands.
Robert Sesek [Mon, 2 Jan 2017 06:47:32 +0000 (01:47 -0500)]
Fix slice range panics in the POP3 USER and PASS commands.

7 years agoFix pop3.Mailbox.Reset implementation.
Robert Sesek [Mon, 2 Jan 2017 06:42:52 +0000 (01:42 -0500)]
Fix pop3.Mailbox.Reset implementation.

7 years agoImplement the POP3 UIDL command.
Robert Sesek [Mon, 2 Jan 2017 06:32:26 +0000 (01:32 -0500)]
Implement the POP3 UIDL command.

7 years agoAdd better logging in the pop3 connection.
Robert Sesek [Mon, 2 Jan 2017 06:05:02 +0000 (01:05 -0500)]
Add better logging in the pop3 connection.

7 years agoAdd list of RFCs to the README.
Robert Sesek [Mon, 2 Jan 2017 05:56:46 +0000 (00:56 -0500)]
Add list of RFCs to the README.

7 years agoFix post-STARTTLS protocol bug.
Robert Sesek [Mon, 2 Jan 2017 01:22:00 +0000 (20:22 -0500)]
Fix post-STARTTLS protocol bug.

After the TLS handshake, the server should *not* reply with a greeting again,
but it should wait for an EHLO, per RFC 3207 ยง 4.2 & 5. Previously the server
would re-send the greeting, which un-syncs the protocol.

7 years agoDo not keep around the old net.Conn when doing SMTP STARTTLS.
Robert Sesek [Sun, 18 Dec 2016 21:47:34 +0000 (16:47 -0500)]
Do not keep around the old net.Conn when doing SMTP STARTTLS.

7 years agoAdd small program to help debug TLS issues using a non-Go stack.
Robert Sesek [Sun, 1 Jan 2017 06:37:40 +0000 (01:37 -0500)]
Add small program to help debug TLS issues using a non-Go stack.

7 years agoAllow additional parameters after the address in smtp.connection.parasePath. v1.0.0
Robert Sesek [Sun, 18 Dec 2016 20:26:51 +0000 (15:26 -0500)]
Allow additional parameters after the address in smtp.connection.parasePath.

7 years agoDo not break out of a switch, use return.
Robert Sesek [Sun, 18 Dec 2016 15:19:31 +0000 (10:19 -0500)]
Do not break out of a switch, use return.

7 years agoFix not handling invalid RCPT TO addresses.
Robert Sesek [Sun, 18 Dec 2016 07:45:12 +0000 (02:45 -0500)]
Fix not handling invalid RCPT TO addresses.

7 years agoAdd more logging to debug production issues.
Robert Sesek [Sun, 18 Dec 2016 07:37:58 +0000 (02:37 -0500)]
Add more logging to debug production issues.

7 years agoBreak out of the connection loops if EOF is reached.
Robert Sesek [Sun, 18 Dec 2016 06:26:35 +0000 (01:26 -0500)]
Break out of the connection loops if EOF is reached.

7 years agoAdd zap logging through the servers.
Robert Sesek [Sun, 18 Dec 2016 06:21:28 +0000 (01:21 -0500)]
Add zap logging through the servers.

7 years agoAdd a systemd unit file for the server.
Robert Sesek [Sun, 18 Dec 2016 05:07:50 +0000 (00:07 -0500)]
Add a systemd unit file for the server.

7 years agoFormat the TLS string in the receive-trace.
Robert Sesek [Sun, 18 Dec 2016 03:40:48 +0000 (22:40 -0500)]
Format the TLS string in the receive-trace.

7 years agoImplement STARTTLS in the SMTP server.
Robert Sesek [Sun, 18 Dec 2016 01:32:12 +0000 (20:32 -0500)]
Implement STARTTLS in the SMTP server.

7 years agoSupport TLS in POP3.
Robert Sesek [Sun, 18 Dec 2016 00:47:32 +0000 (19:47 -0500)]
Support TLS in POP3.

7 years agoStart saving SMTP messages in the maildrop.
Robert Sesek [Sat, 17 Dec 2016 23:22:14 +0000 (18:22 -0500)]
Start saving SMTP messages in the maildrop.

7 years agoWhen receiving a message, the SMTP server must add its trace information.
Robert Sesek [Sat, 17 Dec 2016 22:27:32 +0000 (17:27 -0500)]
When receiving a message, the SMTP server must add its trace information.

This also computes a Message-ID for the Envelope.

7 years agoAdd a test for POP3 RETR.
Robert Sesek [Sat, 17 Dec 2016 21:23:18 +0000 (16:23 -0500)]
Add a test for POP3 RETR.

Fixes a bug where the code line was not sent.

7 years agoFix case sensitivity in the POP3 sever.
Robert Sesek [Sat, 17 Dec 2016 21:16:41 +0000 (16:16 -0500)]
Fix case sensitivity in the POP3 sever.

7 years agoHandle case-insensitivity properly for SMTP commands.
Robert Sesek [Wed, 14 Dec 2016 05:52:14 +0000 (00:52 -0500)]
Handle case-insensitivity properly for SMTP commands.

7 years agoDo not implement SMTP VRFY.
Robert Sesek [Wed, 14 Dec 2016 05:23:01 +0000 (00:23 -0500)]
Do not implement SMTP VRFY.

7 years agoAdd a test for the POP3 server.
Robert Sesek [Wed, 14 Dec 2016 02:56:31 +0000 (21:56 -0500)]
Add a test for the POP3 server.

Fixes issues with trying to operate on deleted messages.

7 years agoGo back to using pop3.Message rather than IDs for most pop3.Mailbox methods.
Robert Sesek [Tue, 13 Dec 2016 19:26:02 +0000 (14:26 -0500)]
Go back to using pop3.Message rather than IDs for most pop3.Mailbox methods.

But also add a Mailbox.GetMessage method to make it easier to convert.

7 years agoImplement POP3 LIST, RETR, and DELE.
Robert Sesek [Tue, 13 Dec 2016 05:59:58 +0000 (00:59 -0500)]
Implement POP3 LIST, RETR, and DELE.

7 years agoInitial POP3 server.
Robert Sesek [Tue, 13 Dec 2016 05:27:13 +0000 (00:27 -0500)]
Initial POP3 server.

7 years agoComplete the unittest by adding smtp.Server.VerifyAddress.
Robert Sesek [Tue, 13 Dec 2016 03:48:20 +0000 (22:48 -0500)]
Complete the unittest by adding smtp.Server.VerifyAddress.

7 years agoAdd the first test for SMTP connections, based on the exchange in RFC 5321.
Robert Sesek [Tue, 13 Dec 2016 02:31:41 +0000 (21:31 -0500)]
Add the first test for SMTP connections, based on the exchange in RFC 5321.

This fixes a few bugs caught by the test.

7 years agoSupport SMTP along with ESMTP.
Robert Sesek [Mon, 12 Dec 2016 07:01:03 +0000 (02:01 -0500)]
Support SMTP along with ESMTP.

7 years agoDefine an smtp.Envelope that can be delivered to an smtp.Server.
Robert Sesek [Mon, 12 Dec 2016 06:30:16 +0000 (01:30 -0500)]
Define an smtp.Envelope that can be delivered to an smtp.Server.

Also introduce a smtp.ReplyLine rather than smpt.commnection.write*() methods.

7 years agoA basic SMTP server.
Robert Sesek [Mon, 12 Dec 2016 05:57:40 +0000 (00:57 -0500)]
A basic SMTP server.

7 years agoSimple accept/listen loop for the SMTP server.
Robert Sesek [Mon, 12 Dec 2016 04:35:56 +0000 (23:35 -0500)]
Simple accept/listen loop for the SMTP server.

7 years agoLay out basic config file structure.
Robert Sesek [Mon, 12 Dec 2016 04:05:57 +0000 (23:05 -0500)]
Lay out basic config file structure.

7 years agoThe mission statement.
Robert Sesek [Mon, 12 Dec 2016 03:42:38 +0000 (22:42 -0500)]
The mission statement.