Change port 25 to 2525

I have a small program which monitors the UPS. If the power fails, it can send an email. It is doing so through port 25.
My ISP is blocking it, and offers port 2525 as an alternative.

In my Draytek router I can map port 2525 to 25, but that is INBOUND. I need Outboud.

Is there a way, to change the outbound port to 2525, or another solution? (a commercial VPN like Strong VPN, and send the mail there, is an option, but not preferred yet).

WinXP as  a OS.

(wild idea: Run Linux mail server in a virtual box, and have it relayed to port 25)?
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.

Dave HoweSoftware and Hardware EngineerCommented:
that would be a solution, but its overkill - you can run a mailserver on windows too of course, but all you really need is some sort of portmapper.

I am assuming given you mention your need to run linux in virtua, that you are on windows, so might I suggest this one:

just map 25 to <upstreamhost>:2525 and point your alert software to localhost - it will automatically forward that to 2525 on the server you specified.

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
veermanhAuthor Commented:
Perfect. I will try it, and see if it works.

In the description it seems to do what I want.

Now I need to be sure, it can do outbound as well....
Dave HoweSoftware and Hardware EngineerCommented:
that would be outbound only, really. you are connecting to port 25 on "localhost" and the software forwards to port 2525 on your target mailhost (unusual though. normally an isp will supply a smarthost on 25; lots of mail clients can't specify a non-port-25 host.

which ISP is it?
Big Business Goals? Which KPIs Will Help You

The most successful MSPs rely on metrics – known as key performance indicators (KPIs) – for making informed decisions that help their businesses thrive, rather than just survive. This eBook provides an overview of the most important KPIs used by top MSPs.

veermanhAuthor Commented:
It is an ISP in Ukraine. For them it seems "easier" to block port 25 in stead of using other means (read: costing money)...

And yes, this specific application cannot specify other port than 25.
Dave HoweSoftware and Hardware EngineerCommented:
Well, yes, a lot do that (in the uk for example, the dominant telephony provider Brutish Telecomm block port 25 outbound. But they allow 25 to their own mail server ( so that their own customers can send email.

I would pick one at random and look, but given you have more than 250 ISPs in the Ukraine, the odds of me getting the right one are low :)
Qlemo"Batchelor", Developer and EE Topic AdvisorCommented:
I've requested that this question be deleted for the following reason:

Not enough information to confirm an answer.
Dave HoweSoftware and Hardware EngineerCommented:
not seeing why this is unconfirmed? I gave an answer, and several follow-up comments. a quick check would show the utility recommended can port forward to other ports as requested by OP?
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 Protocols

From novice to tech pro — start learning today.