Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Server
User Name
Linux - Server This forum is for the discussion of Linux Software used in a server related context.


  Search this Thread
Old 01-17-2018, 11:18 PM   #1
Registered: Sep 2007
Location: Folsom, California
Distribution: Ubuntu, Mint, Debian, Suse
Posts: 307

Rep: Reputation: 32
How to configure postfix to forward emails to a 2nd mail server on the LAN and then send to Gmail account.

I tried to find a similar answer but wasn't having luck. I assume some of the answers already given probably have hints of my solution inside them... But I need a little guidance.

I have 2 "servers" in my LAN. One does the brunt of the work. The second is primarily a backup server for long term storage. I want Server#1 to forward emails to Server#2 and Server#2 to forward mail to an external email account (Gmail).

I'm not really sure how to go about this. I've tried forwarding messages and they just disappear into the ether.

I have no problem looking deeper if someone could just breakdown what I need to look into or if there are any "gotchas" I need to look out for.

Thank you guys and gals in advance!
Old 01-22-2018, 06:36 PM   #2
Registered: Mar 2016
Location: Boston
Distribution: Arch Linux, Debian, Ubuntu Server, FreeBSD, FreeNAS
Posts: 53

Rep: Reputation: Disabled
One step at a time

Not sure how to do what your asking but the Fist thing I would do would be to Setup Server#2 to send e-mail stright to Gmail
I've heard some people have problems going directly to Gmail or other big e-mail providers( due to spam filters?) I think you have to go from Server #2 to your local ISP SMTP Mail server and then they forward it on your behalf and Gmail will take it.

Once you know you can send it to Gmail direct then find out how to forward from one local server to the next(Sever#1 -> Server#2). In the end it should look like Server#1 -> Server#2 -> ISP -> Gmail. I've never tried this myself. Look up "how to send e-mail to gmail with postfix" #"EASY tutorial for sending email to gmail account"

If these help please click Yes in the Bottom right corner of this post, trying to get some rep.
1 members found this post helpful.


2 mail servers, lan, postfix forward

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: How to : Configure Thunderbird in Ubuntu 11.10 to Send & Receive Mails of Gmail Account LXer Syndicated Linux News 0 12-04-2011 11:30 PM
The simplest solution to forward incoming emails to my gmail account ? Argancel Linux - Server 2 04-01-2011 10:30 AM
how to configure postfix (FD5) to send mails to gmail or any different domains subramanyabs1984 Linux - Server 3 02-26-2009 02:27 AM
how to send mail to my gmail account through sendmail shridhar005 Linux - Newbie 5 01-22-2009 06:52 AM
Postfix: Need to deliver all local mail to 1 account, then forward OneBinary Linux - Software 3 01-05-2006 05:49 PM > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 04:21 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration