I am having some confusion on finalizing my mail server. This is what I've done so far. I gave my computer a Static IP address on the router and I forwarded ports 25 and 110 to my computers static IP address.
Now I setup Xeams, created the admin account and my personal account and an additional account for testing purposes.
I then setup Outlook to grab its emails from the Xeams server under my account name. Now so far, everything works within the network. I can send emails to and from all the other emails accounts from within the network through outlook. The issue comes when I attempt to send emails to web based email provides such as gmails and from gmail to my web server. Now I do not have my ISP's IP address assoicated with a domain name but I thought THEORETICALLY I could send an email by sending it to "account name"@"ISP IP Address" and gmail would send it via port 25 or port 110 and it would get to my mail server then I would access it through Outlook.
However everytime I try and do this i get the error 550 5.7.1 Relaying denied. I attempted to turn off my firewall to see if that was for some reason blocking port 25 and or 110 but the same issue occured.
Please educate me on what I am not understanding about setting up a mail server, because I really want to learn how to do this.
Thank you all in advance.