JohnConn has asked for the wisdom of the Perl Monks concerning the following question:
Good day, gracious monks. ;)
I am trying to build a simple program to send mail. Were I on a Unix box, it wouldn't be an issue, but Windows baffles me!
I'm using Active Perl 5.8.8 and the Net:smtp module. My code looks almost exactly like the sample code, with my particulars included.
Everything appears fine in the debug output; my outbound virus scanning even fires up! Still, I have yet to receive a single email.
Could my ISP (Comcast) be the source of the trouble? Is there more information I can send along such that they know it's an authentic email?
Please bear in mind that I am *weak* on smtp and networking, in general.
Thanks much,
The Humble Acolyte, John
Re: Net::smtp sends, but I'm not receiving...
by pfaut (Priest) on Dec 15, 2007 at 18:02 UTC
|
Net::SMTP allows you to talk to an SMTP server as a client. It does not allow you to establish yourself as an SMTP server.
Aside from that, setting up an SMTP server is not for the weak. You're probably better off allowing your ISP to handle your incoming mail unless you have the time to become very knowledgeable about SMTP, DNS, and network security.
90% of every Perl application is already written. ⇒ | dragonchild |
| [reply] |
Re: Net::smtp sends, but I'm not receiving...
by NetWallah (Canon) on Dec 15, 2007 at 19:43 UTC
|
Most likely, you are being impeded by one or more firewalls.
The first suspect would be the Windows firewall, which exists on WinXP-SP2 onwards. Next, there may be NAT issues, and company firewall/IDS impediments. The ISP may also limit you to sending outbound SMTP from only specified IP addresses, or having specific source and destination domain names in the message.
With this many variables, tackling this is not for the feint of heart. You need decent sniffing tools, and administrative cooperation.
A starting point would be to look at the Windows event log (run eventvwr from a command line, for *nix geeks).
"As you get older three things happen. The first is your memory goes, and I can't remember the other two... "
- Sir Norman Wisdom
| [reply] |
|