Compare commits

..

No commits in common. "88660cdd78809af937f3718ef5df817cc3d3881d" and "66a06c9bf40da700095c6101b84dab6ef6aeb034" have entirely different histories.

4 changed files with 3 additions and 21 deletions

View File

@ -3,6 +3,6 @@
/vendor
/data
/bin
/misc/docker/Dockerfile
/misc/docker
/.env
/.env.dist

View File

@ -43,9 +43,7 @@ func (b *Backend) AnonymousLogin(state *smtp.ConnectionState) (smtp.Session, err
return nil, smtp.ErrAuthRequired
}
ctx := context.WithValue(context.Background(), container.KeyServiceContainer, b.ctn)
return &Session{ctx, b.ctn, "anonymous"}, nil
return nil, nil
}
// A Session is returned after successful login.
@ -107,11 +105,6 @@ func startSMTPServer(conf *config.Config, ctn *service.Container) {
s.MaxMessageBytes = conf.SMTP.MaxMessageBytes
s.MaxRecipients = conf.SMTP.MaxRecipients
s.AllowInsecureAuth = conf.SMTP.AllowInsecureAuth
if conf.SMTP.Username == "" && conf.SMTP.Password == "" {
s.AuthDisabled = true
}
if conf.SMTP.Debug {
s.Debug = os.Stdout
}

View File

@ -14,13 +14,8 @@ COPY . /src
WORKDIR /src
RUN cp -f misc/docker/config-patch.yml misc/release/config-patch.yml
RUN go get github.com/krishicks/yaml-patch/cmd/yaml-patch
RUN npm install \
&& make vendor \
&& echo "---" > ./misc/release/config-patch.yml \
&& make ARCH_TARGETS=amd64 release
FROM busybox
@ -29,6 +24,4 @@ COPY --from=build /src/release/fake-smtp-linux-amd64 /app
WORKDIR /app
RUN mkdir -p /app
CMD ["bin/fake-smtp", "--config", "config.yml"]
CMD ["bin/fake-smtp", "--config", "fake-smtp.yml"]

View File

@ -1,4 +0,0 @@
---
- op: replace
path: /smtp/debug
value: false