Need to foward mail to another server

Hello.

My ISP is blocking port 25, mail can be sent and received. Is there a way how to relay to another server?

Have opened port 26, but still cant get mails to work!

Mail log have errors, mails are in queue:

host postfix/qmgr[2803]: 8FF0F240A35: to=<mail@gmail.com>, orig_to=, relay=none, delay=77, delays=0.03/77/0/0, dsn=4.3.0, status=deferred (mail transport unavailable)
Jul 13 14:45:41 host postfix/smtp[19518]: connect to alt2.gmail-smtp-in.l.google.com[173.194.72.26]:25: Connection timed out
Jul 13 14:45:41 host postfix/smtp[19518]: connect to alt3.gmail-smtp-in.l.google.com[74.125.25.26]:25: No route to host
Jul 13 14:45:41 host postfix/smtp[19524]: connect to alt3.gmail-smtp-in.l.google.com[74.125.25.26]:25: Connection timed out
Jul 13 14:45:44 host postfix/smtp[19518]: connect to alt4.gmail-smtp-in.l.google.com[74.125.198.26]:25: No route to host
Jul 13 14:45:44 host postfix/smtp[19518]: 675082408ED: to=<mail@gmail.com>, orig_to=, relay=none, delay=93, delays=0.09/0.06/93/0, dsn=4.4.1, status=deferred (connect to alt4.gmail-smtp-in.l.google.com[74.125.198.26]:25: No route to host)

Any ideas???

If you’re running a mail server at your site, then the ISP needs to allow port 25 for you, or you need a smarthost operating outside of the ISP’s network which listens on some other port that your local server is configured to use as well. There’s no way for your server to use a non-standard port to deliver mail to the world in general, because EVERYONE would need to be listening on that unstandard port.

When an ISP blocks port 25, normally they have a mail relay on their network that you are allowed to use as a smarthost.
Ask them the IP or name of that relay and configure it on your system.
When you really want to solve it in the router, you could of course setup a dstnat to map all outgoing port 25 connects to that IP address.
However, I would not advise to do that as it could result in difficult to debug problems and/or complaints from users/customers.

Another ISP(receive/send email, correct dns record). Create a tunnel between new isp and main isp.
From new isp->routeros->ip tunnel->old isp(if not block ipsec/gre)->routeros->mail server


Have a good day!