Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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

1 Answer 1

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

 
discard

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.