-1

I want to host my own (postfix) mailserver for my domain "mydomain.com". For the unlikely event that my server is down, I would like to have gmail.com receive all mail and forward it to my domain.

Complicating factor is that my ISP does not allow incoming traffic on port 25. So I managed to set-up via Zoneedit that mail from domain 2555 is forwarded to 25 via a separate domain "myseconddomain.com"

So I set it up in the following way:

  1. I have a forward all mail from mydomain.com to my gmail account
  2. I set up gmail to forward my mail to myself@myseconddomain.com
  3. Mail from myseconddomain.com is via a special set-up sent to my server on ip-address w.x.y.z port 2555.
  4. My local firewall makes sure that traffic from port 2555 is forwarded to port 25.

In theory (and partial in practice), this whole chain works. The problem is that some mail is not delivered to my mail server, but other mail is. I can see this in my gmail account because it saves copies of all my mail.

Why is that?

Roalt
  • 183
  • 1
  • 1
  • 7

1 Answers1

1

Postfix should tell you why it's rejecting mail. Check /var/log/syslog.

If postfix isn't giving you enough information you can set two variables to increase logging:

debug_peer_list
debug_peer_level

The debug_peer_list is a list of IP addresses to debug. You'll want to put Google's addresses here.

The debug_peer_level is the verbosity of logs. This one goes to 9.

bahamat
  • 6,193
  • 23
  • 28