-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
76 lines (59 loc) · 1.64 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
deps:
go mod download
go mod verify
go mod tidy
test: check
# https://go.dev/blog/govulncheck
# install it by go install golang.org/x/vuln/cmd/govulncheck@latest
vuln:
which govulncheck
govulncheck ./...
lint:
gofmt -w=true -s=true -l=true ./
golint ./...
go vet ./...
check: lint
go test -v ./...
clean:
go clean
start_minimal:
go run example/minimal/main.go
check_minimal:
--from [email protected] \
--server localhost --port 1025 \
--timeout 600
start_simple:
go run example/simple/main.go
check_simple:
swaks --to [email protected] \
--from [email protected] \
--server localhost --port 1025 \
--timeout 600
start_smtp_proxy:
go run example/smtp_proxy/main.go
check_smtp_proxy:
swaks --to [email protected] \
--from [email protected] \
--server localhost --port 1025 \
--tls --timeout 600
start_dovecot_inbound:
go run example/dovecot_inbound/main.go
check_dovecot_inbound:
swaks --to [email protected] \
--from [email protected] \
--helo localhost \
--server localhost --port 1025 \
--tls --timeout 600
start_dovecot_outbound:
go run example/dovecot_outbound/main.go
check_dovecot_outbound:
swaks --to [email protected] \
--from [email protected] \
--helo localhost \
--auth-user vodolaz095 --auth-password thisIsNotAPassword \
--server localhost --port 1587 \
--tls-on-connect --timeout 600
docs:
which godoc
godoc -http=localhost:6060