Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

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 have a Linux server that has local mail service. There are few user accounts on this server. User may send the mail to each other but that only restrict to LAN environment only.

For example, I may

# mail user1

to send mail to user1. User are not able to send mail to public. Some service like hylafax using this local mail service to send notification of fax status.

I don't want to manage and maintain local mail service anymore. I have subscribed a package from ISP to host a public domain of my own. I wish to have my hylafax service to able to send the notification mails to public mail server, is that possible to do it? It is great if all mails that send to local mail server may forward to public mail server. That makes the local mail service serve mail forward only.

share|improve this question

If you already have the user home directories the easiest way to do that is to put a ~/.forward file in the directory with the proper destination.

However, you may be in for more problems. Most ISPs now block outgoing port 25. Hopefully your mail domain provider also provides a mail submission port (587).

share|improve this answer
I have few hundreds local accounts here. It would be tedious to put a ~/.forward file into each account. Also I don't want to leave a copy of mail in local mail server. – Chau Chee Yang Jan 1 '11 at 2:46
When forwarding the mail is not left in the local mailbox. In that case, use your MTA aliases. – Keith Jan 1 '11 at 2:59

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .