This is not a Perl problem. It is a networking problem. SMTP is blocked to keep you or a trojan on your system from spamming from Comcast's IP ranges.

Check to see if you can instead use the SMTP submission port (587) which is meant for new message submissions. That may be blocked as well.

If you must use a local MTA (which you shouldn't need to do) then remember that SMTP is not a direct peer-to-peer protocol. It is a store and forward protocol that can use any number of servers along the path. The proper thing to do would be one of two options. You could connect to the proper designated outbound mail server and authenticate (using Net:SMTP, Net::SMTP::TLS, Mail::Sender, ...) to send mail through the ISP's server. You also could set up your mail server to smart forward and send to Comcast's server (agaiun, with authentication if you're sending to other than their recipients).

I'm not going to give you a lot of free help on configuring your mail server, especially not on Perlmonks. You can totally make your program configurable to send through different servers and accounts as needed, though.

By the way, if your other connection will allow any client machine open access to send SMTP traffic to anywhere in the world then that's a problem. Spam costs billions a year. Don't be a dirty spammer, and don't use companies that make being a dirty spammer easy.


In reply to Re^3: Sendmail issue by mr_mischief
in thread Sendmail issue by arete

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.