Results 1 to 3 of 3

Thread: Email relay

  1. #1
    Join Date
    Jun 2007
    Location
    Athens , Greece
    Beans
    25
    Distro
    Ubuntu 10.04 Lucid Lynx

    Exclamation Email relay

    I am running a site on an external web server with a static IP address and domain name (xxxxx.gr). On this server I have the possibility of setting up email accounts. The server does have POP and IMAP capabilities.

    I have also set up a computer to act as a home server.
    I have installed Ubuntu 12.10 sevrer with a non static public IP (and I must say everything is working fine).

    Now the question is if it is possible to set up the home server as a mail server but use the wwwww.gr domain and email accounts for traficing the emails for my local users.
    So the idea is that I store and handle emails locally using email accounts of the form user@xxxxxx.gr.

    I did some reading on my own and I come up with the term email relay. But Is it possible to relay emails for all users?

    Can some one point me to a step by step how-to?

    Thank you in advance for the help,
    Spyros

  2. #2
    Join Date
    Jun 2007
    Location
    Porirua, New Zealand
    Beans
    Hidden!
    Distro
    Ubuntu

    Re: Email relay

    Thread moved to Server Platforms.

    An email relay accepts email and passes it on to another server. This might not be what you need for incoming mail, but certainly can be done for outgoing mail.

    If you're using Postfix as your MTA, you can tell it to forward all outgoing email via another server. One option is the relayhost option in its main.cf file.
    Forum DOs and DON'Ts
    Never assume that information you find using a search engine is up-to-date.
    Please use CODE tags.
    A low-volume blog

  3. #3
    Join Date
    Nov 2008
    Location
    Metro Boston
    Beans
    11,508
    Distro
    Kubuntu 14.04 Trusty Tahr

    Re: Email relay

    Yes, I do exactly this, though I use sendmail. Mail for two of my domains is forwarded to my home server for local delivery, while mail for other domains is placed in mailboxes on the server itself.

    In sendmail, I use a "mailertable" to route mail to different locations depending on the domain name. I presume Postfix has a similar facility, but my knowlege of that program is rudimentary at best. The mailertable has a pretty easy syntax:
    Code:
    example.com         relay:[mail.example.com]
    domain.name         relay:[10.10.10.10]
    That routes mail for "example.com" to mail.example.com for further processing and delivery. Mail for "domain.name" is sent to a server identified solely by its IP address. The square brackets around the addresses are mandatory; see the linked document for details.
    Last edited by SeijiSensei; May 5th, 2013 at 03:50 PM.
    If you ask for help, please have the courtesy to check for responses and thank the people who helped you.

    Blog · Linode System Administration Guides · Android Apps for Ubuntu Users

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •