Perl Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming LanguagesPerl Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old April 26th, 2001, 12:14 AM
birdsky birdsky is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2001
Location: Hong Kong or Austin, Texas
Posts: 14 birdsky User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Unhappy

*I don't know to which Message Board I should post this message. Maybe there's a need for general Sys Admin forum or something?*

My problem is with my mail server.
Cannot send email out (using pine or within Perl script), but I can receive email sent to my server.

The following is the error log.
Apr 26 12:12:18 birdsky postfix/smtp[13348]: connect to mx2.mail.yahoo.com[216.136.129.18]: No route to host (port 25)
Apr 26 12:12:21 birdsky postfix/smtp[13348]: connect to mta-v1.mail.yahoo.com[128.11.68.59]: No route to host (port 25)

Don't know if it's my setting problem or my ISP blocks the mail sent from user's server due to spamming issue.

Can anyone help?

Reply With Quote
  #2  
Old April 26th, 2001, 11:06 PM
pieux pieux is offline
Seņor Member
Dev Shed Beginner (1000 - 1499 posts)
 
Join Date: Aug 2000
Posts: 1,156 pieux User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 17 m 59 sec
Reputation Power: 10
Yahoo! does not permit relaying. In other words, you cannot connect to their SMTP server unless you have an IP within their domain. Many ISPs do this. You will need to use the SMTP server of the ISP that provides your access and only use the Yahoo! POP3 server.

Oh, and this is a forum for developers, not SAs. However, out of all the possible places, "beginners" would probably have been more appropriate. I'm not suggesting anything, but this just has absolutely nothing to do with perl.
__________________
Michael

Reply With Quote
  #3  
Old April 26th, 2001, 11:17 PM
birdsky birdsky is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2001
Location: Hong Kong or Austin, Texas
Posts: 14 birdsky User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Thanks.

But I am using my own SMTP mail server, not Yahoo's.

I use Mail::Sendmail and have the SMTP setting set to "localhost" (if I change it to the SMTP server provided by my ISP, ie. smtp.someisp.com, then it works fine)

The above "No Route to Host" message is generated by the mail server on localhost. It looks up the ip and recipient MTA address by itself.

Yes, this is my mail server's setting problem but not Perl's. Just wondering if anyone knows what goes wrong.

Reply With Quote
  #4  
Old April 27th, 2001, 12:30 AM
pieux pieux is offline
Seņor Member
Dev Shed Beginner (1000 - 1499 posts)
 
Join Date: Aug 2000
Posts: 1,156 pieux User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 17 m 59 sec
Reputation Power: 10
What happens when you try to mail yourself (not through localhost, but the fully qualified domain)? Also, do you have a static IP and a domain associated with said IP? Finally, who is your ISP? Road Runner, for instance, specifically blocks traffic to port 25.

Reply With Quote
  #5  
Old April 27th, 2001, 01:37 AM
birdsky birdsky is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2001
Location: Hong Kong or Austin, Texas
Posts: 14 birdsky User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
I can receive emails from both outside hosts and localhost, but I don't have a static IP. I got a domain name from no-ip.com (birdsky.no-ip.com) and it works fine.

The problem is at sending (outgoing emails). My ISP is hknet.com, which is at Hong Kong (used to be Road Runner at USA, and they scanned the network to see who has relay open for other)

So I guess it's the ISP who blocks the outgoing emails orginated from my own mail server (doesn't allow us to be the spammers)...

Reply With Quote
  #6  
Old April 27th, 2001, 09:34 AM
pieux pieux is offline
Seņor Member
Dev Shed Beginner (1000 - 1499 posts)
 
Join Date: Aug 2000
Posts: 1,156 pieux User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 17 m 59 sec
Reputation Power: 10
I realize the problem is outgoing mail. You are missing the point. If you send to yourself, you are creating both an outgoing and incoming connection. How else do you think the mail is going to get to you?!

On an aside, hknet (at least in the past) has been a haven for spammers. It's interesting to note that this is changing?

Reply With Quote
  #7  
Old April 27th, 2001, 10:30 AM
birdsky birdsky is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2001
Location: Hong Kong or Austin, Texas
Posts: 14 birdsky User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Yes, it works if I send an email to myself thru with an FQDN.

I guess when it looks up the destination server, it found that is actually itself, right? Or something like that...

I am not really sure how this works... Just guessing.

Reply With Quote
  #8  
Old April 27th, 2001, 12:49 PM
pieux pieux is offline
Seņor Member
Dev Shed Beginner (1000 - 1499 posts)
 
Join Date: Aug 2000
Posts: 1,156 pieux User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 17 m 59 sec
Reputation Power: 10
When you use an FQDN, it leaves your machine and goes to your gateway (probably ISP's router). The router is the device that sends it back. I bet you they have blocked calls to port 25. Ask them. What could it hurt?

Reply With Quote
  #9  
Old April 27th, 2001, 08:28 PM
birdsky birdsky is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2001
Location: Hong Kong or Austin, Texas
Posts: 14 birdsky User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Thanks!

Reply With Quote
  #10  
Old April 28th, 2001, 11:44 AM
pieux pieux is offline
Seņor Member
Dev Shed Beginner (1000 - 1499 posts)
 
Join Date: Aug 2000
Posts: 1,156 pieux User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 17 m 59 sec
Reputation Power: 10
You're welcome.

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming LanguagesPerl Programming > No route to host (port 25)


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 2 hosted by Hostway
Stay green...Green IT