-
Notifications
You must be signed in to change notification settings - Fork 115
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
doc: Full Usage Guide w/ Working Examples #149
Comments
This is great, thanks! Also, if you want to test SMTP directly, swaks is a great tool for this, comes in most distro repositories I believe. When using startls (port 587 etc), you need to add
When testing user authentication:
When testing a specific IP/interface, add |
@coolaj86 How are you shipping logs? This is the first time i've used serviceman and |
If it works with systemd you could just use StandardOutput/Standard error in your service file to log to file. Depending what you mean by shipping logs but depending what you're trying to do it might be easier to hook into joirnalctl vs writing to file. |
Thanks! Here's what I did if it helps other people: [Service]
StandardOutput=append:/var/log/smtprelay/service.log
StandardError=append:/var/log/smtprelay/service_error.log
Then added /var/log/smtprelay/*.log as a folder to look for in my collector configuration and it started picking it up |
I just set this up for a client. This is the config we ended up going with.
Directory Structure
caddy
(for automated TLS certificates via Let's Encrypt)smtprelay
Let's Encrypt TLS Certs via caddy
go
,xcaddy
, and (optional)serviceman
via https://webinstall.devcaddy
with DNS support (no webserver required). Example w/ DNSimple:~/.config/caddy/Caddyfile
:~/.config/caddy/caddy.env
:DNSIMPLE_OAUTH_TOKEN='dnsimple_a_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
caddy
as a service withserviceman
(Linux, macOS, & Windows)--cap-net-bind
is only necessary if using default ports 80 & 443)smtprelay config
smtprelay --config ~/.config/smtprelay/smtprelay.ini
~/.config/smtprelay/smtprelay.ini
:~/.config/smtprelay/allowed_users.txt
:smtprelay --config ~/.config/smtprelay/smtprelay.ini
serviceman
:The text was updated successfully, but these errors were encountered: