in reply to Mail::Sender Problems.

depending on the setup (ie ISP/router), sometimes it works and sometimes the connection times out (Error connect() failed: Connection timed out.

Could it be the port number the mail server is using? Many SMTP servers are now using something other than port 25 to get around some ISP's who block port 25.


I'm not really a human, but I play one on earth.
Old Perl Programmer Haiku ................... flash japh

Replies are listed 'Best First'.
Re^2: Mail::Sender Problems.
by flexvault (Monsignor) on Aug 09, 2012 at 10:49 UTC

    zentara,

    Most ISPs give an alternate port( i.e. 587, ... ) to their own users.

    MTA to MTA traffic is on port 25, but many ISPs firewall port 25 to a spam/virus scanning machine(s), and use DNS 'MX' magic to make it work!

    If an ISP completely blocked port 25, they wouldn't have many emails to worry about.

    "Well done is better than well said." - Benjamin Franklin

      Hi Flex, Hi Zentara, Hi rpnoble419,

      Well the general advice seems to be try another port, it sounds like good advice. I'll try one later today.

      Another piece of info is that my current router is a '3' MyFi router (ie a sim card), so I guess ISP's spamming restrictions maybe harsher, I recall that when I used a t-mobile data card, they had to provide me with an smtp server, maybe 3 is the same, I'll check it out.

      Regrads

      Steve

        Steve_BZ,

        Are you trying to connect directly to a MTA?

        The preferred method is to send the email to your mail machine ( MTA ), and let that machine (MTA) deliver the mail for you.

        When using a dynamic IP address most ISPs will require Pop-before-SMTP or SMTP authentication before allowing you to send mail to their users

        Thank you

        "Well done is better than well said." - Benjamin Franklin

        As you are using a myfi router, your host may be blocking your ip address as it is a dynamic ip. When I travel in the US and use hotel ip addresses or my Verizon mifi I get blocked. I need to copy the task to my server inorder to send email.

        use this url to see if your ip address has been blocked. http://postmaster.rr.com/amIBlockedByRR

        Hi Guys,

        Well port => 587 seemed to do the trick.

        Thanks for all your help.

        Mail::Sender really is a nice little tool try it out if you haven't already.

        Regards

        Steve.