1
0
mirror of https://github.com/jhillyerd/inbucket.git synced 2025-12-20 19:17:01 +00:00
Files
go-inbucket/etc/swaks-tests
James Hillyerd 1f1a8b4192 Handle IP address domains (#285)
* Add basic TestRecipientAddress tests

* Handle forward-path route spec

* Validate IP addr "domains"

* Forward-path test cases

* Add integration test

* Add IPv4 recip swaks test

* Special case domain mailbox extraction

* add IPv6 swaks test

* Formatting

Signed-off-by: James Hillyerd <james@hillyerd.com>

* Update changelog
2022-08-07 20:13:58 -07:00
..
2018-04-07 17:22:44 -07:00
2018-04-07 17:22:44 -07:00
2018-04-07 17:22:44 -07:00
2018-04-07 17:22:44 -07:00
2022-08-07 20:13:58 -07:00
2018-04-07 17:22:44 -07:00

swaks-tests

Swaks - Swiss Army Knife for SMTP

Swaks gives us an easy way to generate mail to send into Inbucket. You will need to install Swaks before you can use the provided scripts.

Usage

To deliver a batch of test email to the swaks mailbox, assuming Inbucket SMTP is listening on localhost:2500:

./run-tests.sh

To deliver a batch of test email to the james mailbox:

./run-tests.sh james

You may also pass swaks options to deliver to a alternate host/port:

./run-tests --server inbucket.mydomain.com:25

To specify the mailbox with an alternate server, use --to with a local and host part:

./run-tests --server inbucket.mydomain.com:25 --to james@mydomain.com

To Do

Replace Swaks with a native Go solution.