mail

How to I forward mail using sendmail?

If you are using a server running sendmail, create a ~/.forward file with your e-mail address in it.

1. vi ~/.forward
2. Type in your e-mail address admin@somedomain.com
3. Save and quit
4. Send a test message to the user.
i.e. mail -s “Test Message” unixuser < /tmp/file The mail should now be delivered to the forwarding address instead of on the local server.

2 Comments

2 Comments

  1. Free Pc Optimizer

    August 25, 2010 at 10:52 pm

    Thank you for the useful info!

  2. computer running slow

    August 26, 2010 at 6:02 am

    Hey, awesome site! Keep it up! I will be difinatley be coming back in the near future =)

Leave a Reply

Your email address will not be published. Required fields are marked *

To Top