Menu

1 / 2

Send email from any Linux server in 60 seconds — no SMTP config

DEV Community·Qasim Muhammad·6 months ago
#yVoX0qbD
#linux#bash#devops#nylas#send
Reading 0:00
15s threshold

You ssh'd into a fresh Linux box and you need to send an email. Maybe a backup completed. Maybe a deploy succeeded. Maybe a process crashed and you want a stack trace in your inbox.

The traditional path: install Postfix, edit main.cf , configure a smart relay, generate SASL credentials, restart the daemon, and pray nothing else on the box uses port 25. That is the 30-minute path.

The 60-second path:

curl -fsSL https://cli.nylas.com/install.sh | bash ~/.config/nylas/bin/nylas auth config --api-key YOUR_KEY ~/.config/nylas/bin/nylas email send --to [email protected] --subject hi --body "From $( hostname ) "

Enter fullscreen mode

Exit fullscreen mode

Three lines. Zero daemon.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.