There's no such thing as a stupid question, but they're the easiest to answer.
JoinTour
Login
 
Tag Cloud
access audio avg avg 8 bios blue screen boot bsod computer connection cpu crash css dell desktop dma driver drivers dvd email error excel explorer firefox firefox 3 freeze gimp graphics hard drive hardware hijackthis hjt install internet internet explorer itunes keyboard laptop macro malware monitor motherboard network networking outlook outlook 2003 outlook 2007 outlook express pio problem problems router seo server slow sound sp3 spyware trojan usb video virtumonde virus vista vundo windows windows vista windows xp winxp wireless
Web Design & Development
Search
Search in:
 
Advanced Search
Tech Support Guy Forums > Internet & Networking > Web Design & Development >
Any way to install SMTP when port 25 is blocked?


HELLO AND WELCOME! Before you can post your question, you'll have to register -- it's completely free! Click here to join today! We highly recommend that you print a copy of our Guide for New Members. Enjoy!

 
Thread Tools
jcbarr's Avatar
Member with 41 posts.
 
Join Date: Dec 2003
16-Oct-2007, 01:43 PM #1
Any way to install SMTP when port 25 is blocked?
My ISP blocks port 25 and of course we know that SMTP uses port 25 to send mail and communicate with other mail servers.

Does anyone know of any way to actually install SMPT and allow my server to send mail out when port 25 is blocked?

I have been searching the internet but I have yet to find anything that is easily followed.
tomdkat's Avatar
Computer Specs
Distinguished Member with 3,515 posts.
 
Join Date: May 2006
Location: S.F. Bay Area, CA
Experience: Intermediate
16-Oct-2007, 01:56 PM #2
You want to install your own SMTP server and have it send your mail to get around port 25 blocking? I would see if you could opt-out of port 25 blocking. AT&T/SBC DSL provides an opt-out of port 25 blocking and other ISPs might do the same. Comcast, apparently, doesn't. Alternatively, if the mail server you wanna use can accept connections via TLS or SSL, you could switch to using either of those and connect to the server on those default ports (587 for SSL I think and I forget what the port is for TLS, 465 or something like that).

Peace...
zacke's Avatar
Computer Specs
Senior Member with 151 posts.
 
Join Date: Oct 2007
Experience: Advanced
17-Oct-2007, 08:39 AM #3
Is the server Linux or Windows?
What daemon are you using?
jcbarr's Avatar
Member with 41 posts.
 
Join Date: Dec 2003
17-Oct-2007, 10:38 PM #4
Windows server using IIS 6.

What I want to do is simple. I'm running a phpnuke site, and in order for users to get their confirmation emails when they sign up I have to have a mail server running. I have gone round and round trying to figure out how to get the php mail() function to work, but have come to the conclusion that the server on which the site is hosted must at the very least have the SMTP service installed and running so that the function can send out the mail.

I don't want to "get around" port 25 blocking, I just want my scripts to be able to send mail. And with the way that my ISP is set up it won't work. They block any port 25 traffic to stop spammers.
Daredeval756's Avatar
Computer Specs
Senior Member with 205 posts.
 
Join Date: Dec 2006
Location: Ohio
Experience: I know my way around....
18-Oct-2007, 10:55 AM #5
no-ip.org offers a service to allow you to get around it, or change the ports that it uses?

Im assuming your using xampp, so mercury, its very easy to change them.
Memnoch322's Avatar
Senior Member with 882 posts.
 
Join Date: May 2005
Location: San Diego
Experience: Advanced
18-Oct-2007, 04:55 PM #6
Use the ISP's smtp server as a relay. You probably already have a username and password from the ISP, use these to authenticate with there smtp server and send away.
tomdkat's Avatar
Computer Specs
Distinguished Member with 3,515 posts.
 
Join Date: May 2006
Location: S.F. Bay Area, CA
Experience: Intermediate
19-Oct-2007, 06:17 PM #7
Quote:
Originally Posted by jcbarr
What I want to do is simple. I'm running a phpnuke site, and in order for users to get their confirmation emails when they sign up I have to have a mail server running. I have gone round and round trying to figure out how to get the php mail() function to work, but have come to the conclusion that the server on which the site is hosted must at the very least have the SMTP service installed and running so that the function can send out the mail.
Ok.

Quote:
I don't want to "get around" port 25 blocking, I just want my scripts to be able to send mail. And with the way that my ISP is set up it won't work. They block any port 25 traffic to stop spammers.
Gotcha. The problem is, if your SMTP server tries to connect to some other SMTP server on port 25, the port 25 block by your ISP will still be a problem for you.

Here is the PHP doc on the mail() function. It describes these two options which sound like they should work for you:

Quote:
Here's a short explanation of the configuration directives.

SMTP string
Used under Windows only: host name or IP address of the SMTP server PHP should use for mail sent with the mail() function.

smtp_port int
Used under Windows only: Number of the port to connect to the server specified with the SMTP setting when sending mail with mail(); defaults to 25. Only available since PHP 4.3.0.
What happens if you configure SMTP to be your ISPs SMTP server and smtp_port as 25?

Peace...
Memnoch322's Avatar
Senior Member with 882 posts.
 
Join Date: May 2005
Location: San Diego
Experience: Advanced
19-Oct-2007, 06:29 PM #8
This is a simple solution, you have to use the ISP's SMTP server. I have encountered this many times before. If they will not unblock it to your IP, you must relay through theres.
tomdkat's Avatar
Computer Specs
Distinguished Member with 3,515 posts.
 
Join Date: May 2006
Location: S.F. Bay Area, CA
Experience: Intermediate
19-Oct-2007, 06:33 PM #9
Quote:
Originally Posted by Memnoch322
This is a simple solution, you have to use the ISP's SMTP server. I have encountered this many times before. If they will not unblock it to your IP, you must relay through theres.
Hopefully, the PHP SMTP options above will allow him to do just that if he decides not to or can't opt out of port 25 blocking.

Peace...
jcbarr's Avatar
Member with 41 posts.
 
Join Date: Dec 2003
25-Oct-2007, 07:24 AM #10
I have set PHP to use my ISP's mail server which, ironically does not require any sort of authentication to send mail. I have set it to use port 25 but still no mail flows outside of the server.

I also tried to load Argosoft Mail Server and play around with that. PHP sends the mail, I see it sit in the queue but it cannot get out anywhere. The problem is that if you are not using port 25 for SMTP service then the majority of other mail servers out there will not talk to yours, essentially making it impossible to send mail.

The weirdest thing about this whole problem is that I uninstalled windows SMTP service, and I have no mail server loaded at all, but gmail accounts can receive the confirmation email...
tomdkat's Avatar
Computer Specs
Distinguished Member with 3,515 posts.
 
Join Date: May 2006
Location: S.F. Bay Area, CA
Experience: Intermediate
25-Oct-2007, 04:48 PM #11
Quote:
Originally Posted by jcbarr
I have set PHP to use my ISP's mail server which, ironically does not require any sort of authentication to send mail. I have set it to use port 25 but still no mail flows outside of the server.
Ok., Do you get any kind of message (error or otherwise) returned or does the message just not go through?

Quote:
I also tried to load Argosoft Mail Server and play around with that. PHP sends the mail, I see it sit in the queue but it cannot get out anywhere. The problem is that if you are not using port 25 for SMTP service then the majority of other mail servers out there will not talk to yours, essentially making it impossible to send mail.
Makes sense. What if you found another mail server that listens on some other port and use that as a SMTP relay of some kind. If you can't use your ISP's mail server as a SMTP relay, you're probably gonna be stuck.

Quote:
The weirdest thing about this whole problem is that I uninstalled windows SMTP service, and I have no mail server loaded at all, but gmail accounts can receive the confirmation email...
Really? How is the mail being sent? The gmail accounts can receive e-mail sent my your PHP app?

Peace...
rainforest123's Avatar
Distinguished Member with 3,810 posts.
 
Join Date: Dec 2004
Experience: Advanced
26-Oct-2007, 05:42 AM #12
For this issue, are you on the same classified network as you are on for your issue of accessing a site on a classified network using IE 6?

RF123
jcbarr's Avatar
Member with 41 posts.
 
Join Date: Dec 2003
31-Oct-2007, 06:59 AM #13
Nope, this issue is a completely personal one from home. You wouldn't have an ISP on a classified network...

Anyhow, I think I am stuck. I can't get around the port 25 blockage, I don't think.

I did however just change ISPs so now I guess I will have to find out if this one does the same thing. I'm assuming so as I had to set my outgoing mail server to the ISPs server in order to get my outlook to be able to send mail.

If I do come up with some sort of solution I will post it back here.
jcbarr's Avatar
Member with 41 posts.
 
Join Date: Dec 2003
31-Oct-2007, 07:01 AM #14
Quote:
Originally Posted by tomdkat
Really? How is the mail being sent? The gmail accounts can receive e-mail sent my your PHP app?

Peace...
To be honest I have no idea. But it does work. I saw that a user had signed up successfully and then I asked him if he had gotten the confirmation email and he stated that he did.

So I went and signed up using my gmail account and low and behold I got the email as well. Absolutely no idea how in the world that worked.
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

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 On
HTML code is Off
Trackbacks are On
Pingbacks are Off
Refbacks are Off

You Are Using:
Server ID
Advertisements do not imply our endorsement of that product or service.
All times are GMT -4. The time now is 09:34 AM.
Copyright © 1996 - 2008 TechGuy, Inc. All rights reserved.
Powered by vBulletin, Copyright © 2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0
Powered by Cermak Technologies, Inc.