Need to configure relay mailboxes under Sendmail

Posted on 2006-04-03
Last Modified: 2010-04-20
Hello Experts !

I have the following configuration:

1- RH Linux server configured with Sendmail to host email accounts from the company's foreign domain.
2- Fetchmail as POP3 client to download messages from the company's foreign domain into the local Sendmail (Linux) accounts.
3- Sendmail as MTA to send messages inside the local network and to the internet as well.

What happens ? Everything works fine: messages are downloaded and distributed to the Linux accounts. Users interact with internal Linux server to download or send email from their mail client. Messages to outside domains are queued and sent by Sendmail. The problem is that some mailboxes are for the company's remote users that do not have a Linux account. Those messages bounce back when an internal user sends it with an unknown mailbox message. Of course, this happens because the account does not exist on the Linux server.

Question is, how can I configure relaying mailboxes to forward those messages to an external MTA so they can reach the server hosting the company's domain ? I tried using Smart host bit it didn't work.
Question by:agubaira
    LVL 17

    Accepted Solution

    You could set up mailboxes for the remote users on the RH box and use .forward files to send them on to their remote accounts.
    LVL 22

    Assisted Solution

    You can set up a virtual domain for those individuals that are not on the host in question:

    or another alternative that is really quick and easy to set up is Xmail:

    For this you would set up the server so that all email accounts are 'virtual'. You can have multiple virtual domains with this server very easily as part of the basic install - its main strength. After that, all users would 'fetchmail' their mail from the Xmail server.

    Author Comment

    I will be trying both solutions next week. Sorry for the delay.
    LVL 1

    Assisted Solution

    Use Postfix and save yourself the headaches.

    Featured Post

    Find Ransomware Secrets With All-Source Analysis

    Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

    Join & Write a Comment

    If you have a server on collocation with the super-fast CPU, that doesn't mean that you get it running at full power. Here is a preamble. When doing inventory of Linux servers, that I'm administering, I've found that some of them are running on l…
    Join Greg Farro and Ethan Banks from Packet Pushers ( and Greg Ross from Paessler ( for a discussion about smart network …
    Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
    Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…

    729 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    20 Experts available now in Live!

    Get 1:1 Help Now