in reply to Authenticate email

The error No unauthenticated relaying permitted. sounds like a message from the email server being used to send the mail. It is probably configured to require you to authenticate before use.

--MidLifeXis

Replies are listed 'Best First'.
Re^2: Authenticate email
by dylinn (Novice) on Mar 04, 2015 at 17:36 UTC

    Thanks for those links, I had not found them in my searches. Also, sorry for the lack of needed information. I'm flying blind here and was trying to keep it short. : )

    IPowerWeb is my host. They say the Net/SMTP.pm module is already installed. I have included the part of the script I was instructed to modify with my information, which is done. I believe I just need to add the code to point to / use the Net/SMTP.pm module. Or would I need to edit the Module as well??

    #!/usr/bin/perl #First released with snap 10 $port = 25; #SMTP PORT NUMBER $smtpServer = 'smtp.ipower.com'; $domain = 'mydoman.biz'; $sWebMaster='survey@mydomain.biz'; $sReturnURL='http://mydomain.biz'; $sReturnText='Submit';

      Or would I need to edit the Module as well?

      No need to edit the module.

      The snippet of code shows some variable declaration.

      What it does not declare is the username and password declaration that would be needed for authentication. (never post real world usernames or passwords on the net)

      Also it is not the part that would do the actual authentication.

      When cross-checking Net::SMTP's auth method against the module list provided I noticed Authen::SASL is missing in there.

      Cheers, Sören

      Créateur des bugs mobiles - let loose once, run everywhere.
      (hooked on the Perl Programming language)

        "The Snippet of code" ?? Is that the code/script I provided or the "Module" Ipower provided?

        Authen::SASL? Does that mean I need to tell IPower to install that before I can use my script?

      More and more providers change the rules for how they accept mails from their clients. SMTP on port 25 is reserved for communication with other systems (i.e. to deliver mails to the provider's clients), clients should deliver their mails to port 587 (submission service) to send mail.

      Try changing $port = 25; to $port = 587;. This may give you the same results, because usually the port 587 requires a login, too. Try contacting the ipower support for mail delivery account name and password.

      Alexander

      --
      Today I will gladly share my knowledge and experience, for there are no sweeter words than "I told you so". ;-)
        Thank you. Didn't work, but I had hopes! :)
      Further clarification: the module is supposed to Authenticate the email so I can use IPower Host. (And thanks Sören for the links!)