How do I set up e-mail forwarding?

I want to create email IDs (with my domain name) with my backend web application (PHP/ROR). Also I want to set a default forwarding address for the email IDs I have created. How do I proceed with it?

  • Answer:

    If you're handling emails first you need to get to grips with an MTA (Mail Transfer Agent). This will receive the incoming emails and send them where you want. Postfix and Exim are both good choices for this given the need to interact with a database. If you want people to be able to collect email via IMAP or POP3 you will also need to look into something like Dovecot. Then you need to figure out a database structure for configuring the mail users. Implement that structure in your Rails models, e.g. you will want an Account model that has an email address, maybe is linked to a Domain model etc. Then you need to configure your MTA/POP3/IMAP to look at your database, so that it can (a) verify correct addresses (b) send mail to the right place (c) Allow people to login to collect their mail. If this sounds like a lot of work, it can be if you don't already know an MTA, and I'm assuming from your question that you don't. It's not impossible though and you will learn a lot in the process.

Richard Watson at Quora Visit the source

Was this solution helpful to you?

Other answers

Aswin Murugesh

Just Added Q & A:

Find solution

For every problem there is a solution! Proved by Solucija.

  • Got an issue and looking for advice?

  • Ask Solucija to search every corner of the Web for help.

  • Get workable solutions and helpful tips in a moment.

Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.