Mail Server setup question

I have an Ubuntu server setup as an email server running postfix. This server sits on a public IP address and handles mail for several domains. I also have a Windows server inside my firewall running Mail Enable as a list server for some of our alarm systems. Our internal alarm systems email an address on the Mail Enable server and that email gets sent to all the facilities personnel.

I need to be able to forward/relay mail from my public mail server to my internal mail server so it can go to a distribution list.

What I would like to happen is: all mail go to my public mail server (lets call it and if the user exist on that server it is delivered to their mailbox. If the user is not located on that server I would like for the mail to be forwarded to my internal list server. So when mail comes to and Bills account is located on the server it is delivered to his mailbox. But if an inbound email comes into for the user and her account is not located on that server then it gets forwarded or relayed to

I know I'll need to open a port on my firewall to the internal server and I'll need to setup and A record for that server but after that I'm lost.

Can someone point me in the right direction??

Tony TurnerIT MangerAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

I'm assuming you're using sendmail configured to use virtusertable

Utilizing virtusertable , you could create an alias that would send all mail sent to
"" to "jane@barfoo.server2"

If editing "/etc/mail/virtusertable" by hand you will need to remember to run
"makemap hash /etc/mail/virtusertable.db < /etc/mail/virtusertable"

Hope this helps


Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Tony TurnerIT MangerAuthor Commented:
Not what I had in mind but you're right... that will work.

Thanks for your help,
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Email Servers

From novice to tech pro — start learning today.