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

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I installed sSMTP for sending emails from command line.
I want to create some alias for cron jobs:

$ sudo vim /etc/aliases
    # append this line at the end
    myname: root

$ newaliases 
newaliases: Aliases are not used in sSMTP

So I cannot use /etc/aliases any more.
I noticed that there is a /etc/ssmtp/revaliases config file.
What's used for? Is it a aliases file for sSMTP?

share|improve this question

The revaliases file is used to determine the From header of emails based on the user sending it. The only aliases which sSMTP supports is a single destination for UIDs less than 1000. This post suggests setting up aliases with the mail command, but I'm not sure if cron uses this or executes /usr/sbin/sendmail directly.

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.