Server Fault is a question and answer site for system and network administrators. 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 configured the SSMTP in a ubuntu server 13.04.

Configured the root user email address.

Everything works correctly.

But, now I want to configure the "~/.forward" to send all emails to another address.

I created the file at the root user home /root/.forward, and added to it:

But this isn't working. When I sent a email to root, only the root email receives the email.

I'm sending emails with:

echo Msg body | mail -s Subject root

What I need to do to get the .forward file working?

share|improve this question
I could be wrong, but I didn't think SSMTP support .forwards. Did you see some document somewhere saying that it did? If you really nead that, then you probably need a different MTA. – Zoredache Oct 18 '13 at 19:38

Unfortunately, ssmtp does not read ~/.forward. Here is a quote from the ssmtp manpage:

It does not do aliasing, which must be done either in the user agent or on the mailhub. Nor does it honor .forwards, which have to be done on the recieving host. It especially does not deliver to pipelines.

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.