Sign up ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I'm trying to set up a tool that emails me periodically (in my case, psad). It allows by default to define just a destination email for reports.

Is there a general way to get this or similar tools to use a non-default SMTP server, with TLS? (e.g. gmail's SMTP)

share|improve this question

1 Answer 1

mailx can use SMTP. It's configure file is ~/.mailrc

Mailx using Gmail's SMTP:

(The configure can even be in one command)

mailx -v -s "$EMAIL_SUBJECT" \
-S smtp-use-starttls \
-S ssl-verify=ignore \
-S smtp-auth=login \
-S smtp=smtp:// \
-S smtp-auth-user=$FROM_EMAIL_ADDRESS \
-S smtp-auth-password=$EMAIL_ACCOUNT_PASSWORD \
-S ssl-verify=ignore \
-S nss-config-dir=~/.mozilla/firefox/xxxxxxxx.default/ \
share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.