Announcement

Collapse
No announcement yet.

SMTP problems suddenly appeared

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    #61
    Karen,

    If you haven't already done so, try the settings posted earlier in this thread here: http://community.actinic.com/showpos...8&postcount=39

    They appear to work consistently.

    Mike
    -----------------------------------------

    First Tackle - Fly Fishing and Game Angling

    -----------------------------------------

    Comment


      #62
      It Worked for Us

      We have had 4 sites without confirmation messages being sent for orders since Tuesday morning.

      All sites now working again - very many thanks to Duncan Rounding and the advice in the link above.

      Relief all around!

      Hurrah!

      Comment


        #63
        It worked for me too, thanks so much THis forum is a life saver! I emailed 1and1 a link to this thread, and this is their reply:

        Thank you for contacting us.

        We have already double checked and there were no issues found on our end that could cause this problem.
        We are also unable to view the forum which you have sent since it is blocked by our server. Please consider the following reasons why you are having issues with your Actinic site:
        1)Problem with Actinic.
        2)Problem with your ISP.

        We would advise that you contact Actinic support to confirm this.

        If you have any further questions please do not hesitate to contact us.

        --
        Sincerely,
        Christine Joyce Tulabing
        Technical Support
        1&1 Internet



        I really don't know what to say in reply!

        Comment


          #64
          In an earlier post to this thread it was suggested by 1and1 that Actinic should use PHP to send mail from the server.

          I have taken a look at how PHP would send mail and it uses an email client such as sendmail on linux but still specifies which server and port to use.

          PHP mail uses settings in the php.ini file to indicate the server and port. There is as far as I can see no parameters to use authenticated SMTP therefore it should not be necessary in Actinic to use the SMTP Authentication options.

          Here is a simple PHP script which can be used to determine what PHP is configured to use for the SMTP server and SMTP Port

          Code:
          <?php
          echo 'SMTP Server = ' . ini_get('SMTP') . "<br>";
          echo 'SMTP Port = ' . ini_get('smtp_port') . "<br>";
          echo 'sendmail path = ' . ini_get('sendmail_path') . "<br>";
          ?>
          • copy the code to a file with a php extension e.g. smtp.php
          • upload the file to the web server root folder
          • open your browser and browse to to the page e.g. http://www.mydomain.co.uk/smtp.php

          You should see a response showing the SMTP server and port.

          If the server and port are not what you have been using in Actinic then try the following:-

          Enter the server address in the Actinic 'Network Settings | SMTP server'.
          Make sure 'Username and Password required' is not ticked.

          If the port is anything other than 25 then change the port in the actinic scripts:-
          • Edit the Actinic.pm file in the site folder with Notepad
          • Search for '$nSmtpPort'
          • Replace the default port number 25 with the number returned from the smtp.php script

          Upload the site and see if emails are working.

          If the SMTP details being used by PHP are the same as you have configured in Actinic then we can try another PHP script to see if PHP can send an email:-

          Code:
          <?php
          $to = "someone@example.com";
          $subject = "Test mail";
          $message = "Hello! This is a simple email message.";
          $from = "someonelse@example.com";
          $headers = "From:" . $from;
          mail($to,$subject,$message,$headers);
          echo "Mail Sent.";
          ?>
          • copy the code to a file with a php extension e.g. sendmail.php
          • change someone@example.com to the email address used by Actinic in 'settings | Business Settings | Company/Contact'
          • upload the file to the web server root folder
          • open your browser and browse to to the page e.g. http://www.mydomain.co.uk/sendmail.php

          You should just see Mail sent and an email should arrive. If it doesn't then the indications are that even PHP mail is broken so notify 1and1.

          If PHP is working and Actinic is still not working then 1and1 are trying to force us to use whatever is returned above for sendmail path. Post here what is returned by this parameter. This path is only defined on Linux systems, presumably on Windows it will use whatever is registered as the mail client.

          The 2 php files should be removed from the server once the tests are completed.

          I hope that the above will at least help in determining what 1and1 have done but are unwilling to tell to anybody.

          Gordon Camley

          3rd Line Support
          SellerDeck.

          Comment


            #65
            Hi Gordon,

            I have tried both php files.

            The smtp.php file produces the following result:-

            SMTP Server = localhost
            SMTP Port = 25
            sendmail path = /usr/sbin/sendmail -t -i


            I then tried the sendmail.php and that worked.

            Produced below is the header file. As you can see the test was succesful.

            Andrew

            From: orders@ospre-success.co.uk (save address)
            To: <socrates1963@o2.co.uk>
            Subject: Test mail
            Date: Jun 7, 2012 23:22


            Header:
            Return-Path: <orders@ospre-success.co.uk>
            Received: from mail.o2.co.uk (82.132.130.218) by mail.o2.co.uk (8.5.124.08)
            id 4F955D9300C894D9 for socrates1963@o2.co.uk; Thu, 7 Jun 2012 23:22:06 +0100
            Received: from moutng.kundenserver.de (212.227.126.186) by mail.o2.co.uk (8.5.119.05)
            id 4FBCC91D032FF6DF for socrates1963@o2.co.uk; Thu, 7 Jun 2012 23:22:06 +0100
            Received: from icpu757.kundenserver.de (infong301.kundenserver.de [212.227.109.144])
            by mrelayeu.kundenserver.de (node=mreu4) with ESMTP (Nemesis)
            id 0LrUvB-1Rxx7B3C3R-013uiA; Fri, 08 Jun 2012 00:22:04 +0200
            Received: from 81.179.68.103 (IP may be forged by CGI script)
            by icpu757.kundenserver.de with HTTP
            id 49llxW-1Ri3sF2gTr-00wHAP; Fri, 08 Jun 2012 00:22:04 +0200
            X-Sender-Info: <168099358@icpu757.kundenserver.de>
            Date: Jun 7, 2012 23:22
            Message-Id: <49llxW-1Ri3sF2gTr-00wHAP@icpu757.kundenserver.de>
            Precedence: bulk
            To: socrates1963@o2.co.uk
            Subject: Test mail
            Fromrders@ospre-success.co.uk
            X-Provags-ID: V02:K0:5oJYaZCm5yqYPvbGBytuxLzqKsKtboNOrfvWx/AviFN
            LnCcydK+kfkbLHla5se6C8Y07Be6RsWjCh9creEdEUCev5d8I6
            odY6cbdeIondb1HGhDE2jqIcvb+o4MD5Q/davDkDzBW21ttbd5
            zMQTAUtAKw9Fy5lVVb/eWDQrTNxITXIk8h5ewYCKNL0V+xzw6n
            NjLY/bJbbcQC2odl8fEmFVqjwoBRb2lTWNSIkjlJQvC0N4naZN
            gMAa44foXNR7zDTvt1euhO1bQhYe5hWiXTyjy1MdJK9RIFk4uM
            l0RL6huxQ0gBzPypmoJOGkdmyJuNZgp2/IzBMkuAAbS0nep+cl
            6t3O3Ruj6bKFZOiaoWiWcbwt+86dE1IjHpsORvwQ2PzyaUkk/R
            njALhF1+P+mwo1Y3+17TGeybCSBNqv6y7cOBg9Xcg6MFz9uhGI
            xyvGW






            Hello! This is a simple email message.

            Comment


              #66
              Just to continue from my previous post I examined the header file when mrvnet.kundenserver.de is used as the mail server.

              It is interesting to note that using the php sendmail the ip address is flagged as may be forged and that the server is ESMTP (Nemesis)

              A little research shows that this ESMTP system is a bespoke email system

              ESMTP (Nemesis) is the mailserver of Schlund & Partner: (1and1)

              Nemesis - Schlund+Partner entwickelt sein eigenes Mailsystem
              (Linux-Magazin, 08/05)

              and looks like their bulk emailer.

              Using the fix of mrvnet.kundenserver.de would appear to use the exim emailer
              and providers a tidier header file.


              From: orders@ospre-success.co.uk (save address)
              To: <socrates1963@o2.co.uk>
              Subject: Order Number: AA8AAA00000432
              Date: Jun 7, 2012 23:36


              Header:
              Return-Path: <orders@ospre-success.co.uk>
              Received: from mail.o2.co.uk (82.132.130.218) by mail.o2.co.uk (8.5.124.08)
              id 4FA94B3400848DB1 for socrates1963@o2.co.uk; Thu, 7 Jun 2012 23:36:29 +0100
              Received: from moutng.kundenserver.de (212.227.126.190) by mail.o2.co.uk (8.5.119.05)
              id 4EEB66401B3B9517 for socrates1963@o2.co.uk; Thu, 7 Jun 2012 23:36:29 +0100
              Message-ID: <4EEB66401B3B9517@> (added by '')
              Received: from [212.227.109.144] (helo=ospre-success.co.uk ident=4797267)
              by mrvnet.kundenserver.de with smtp (Exim 4.69)
              (envelope-from <orders@ospre-success.co.uk>)
              id 1SclJc-00023O-Qw
              for socrates1963@o2.co.uk; Fri, 08 Jun 2012 00:36:28 +0200
              Date: Jun 7, 2012 23:36
              From: orders@ospre-success.co.uk
              Subject: Order Number: AA8AAA00000432
              To: socrates1963@o2.co.uk
              Reply-To: orders@ospre-success.co.uk
              Content-Type: text/plain; charset=ISO-8859-1
              Content-Transfer-Encoding: 8bit
              X-Provags-ID: kundenserver.de abuse@kundenserver.de ident:4797267@212.227.109.144

              Comment


                #67
                1and1 support wrote this to me:

                It seems that the software that you are using send report using auth.smtp.1and1.co.uk or any smtp server.
                However, for shared hosting server, connections to the smtp server is not allowed.
                You use a sendmail instead of smtp connection.
                It explains why our dedicated managed 1and1 server had no problem...
                - are everyone having a problem on a shared host with 1and1?

                Tak.

                Comment


                  #68
                  Here's some code I wrote in the Actinic V6 days that replaces the Actinic SMTP code in Actinic.pm with a call to sendmail. Tested just now using V11 on 1&1 shared business / linux.

                  Note that this doesn't patch the Network Test module so the network test would fail but the code used in the Network Test is standalone and not used on the live site.

                  ************************
                  Sending e-mail via sendmail (or whatever the host supports) instead of SMTP

                  This needs a host with Perl that supports the Mail::Mailer module (OneAndOne does).

                  Patching instructions for Actinic.pm (back it up first - use a text editor - not a word processor):-

                  Look about 25 lines down from the top. You should see a line
                  Code:
                  use strict;
                  ADD the following line immediately after this
                  Code:
                  use Mail::Mailer;
                  Search for the line (there is only one instance)
                  Code:
                  sub SendRichMail
                  If using V6 onwards - DELETE the above line and everything following it down to the line above the following fragment
                  Code:
                  #######################################################
                  #
                  # GetScriptUrl - retrieve an url to the specified script
                  REPLACE the stuff you just deleted with the following new routine:-
                  Code:
                  sub SendRichMail
                  	{
                  #? ACTINIC::ASSERT($#_ >= 4, "Invalid argument count in SendRichMail ($#_)", __LINE__, __FILE__);
                  
                  	#
                  	# !!!!!! This is a function commonly used by many utilities.  Any changes to its interface will
                  	# !!!!!! need to be verified with the various utility scripts.
                  	#
                  
                  	if ($#_ < 4)
                  		{
                  		return($::FAILURE, GetPhrase(-1, 12, 'Actinic::SendRichMail'), 0, 0);
                  		}
                  
                  	my ($sSmtpServer, $sEmailAddress, $sLocalError, $sSubjectText, $sMessageText, $sMessageHTML, $sBoundary, $sReturnAddress);
                  	($sSmtpServer, $sEmailAddress, $sSubjectText, $sMessageText, $sMessageHTML, $sReturnAddress) = @_;
                  	#
                  	# Check message content for bare LFs and repair if there are some
                  	#
                  
                  	$sMessageText =~ s/\r\n/\n/g;        		# CRLF -> LF
                  	$sMessageText =~ s/\r/\n/g;          		# remaining CR -> LF
                  	$sMessageText =~ s/\n/\r\n/g;        		# all LF -> CRLF
                  							# and check the HTML content as well
                  	$sMessageHTML =~ s/\r\n/\n/g;        		# CRLF -> LF
                  	$sMessageHTML =~ s/\r/\n/g;          		# remaining CR -> LF
                  	$sMessageHTML =~ s/\n/\r\n/g;        		# all LF -> CRLF
                  	#
                  	# Check the return address
                  	#
                  	if (!$sReturnAddress)						# if no return address defined
                  		{
                  		$sReturnAddress = $sEmailAddress;			# use the destination email address
                  		}
                  
                  	# (V11) use systems sendmail program
                  	my $mailer = Mail::Mailer->new();
                  	if ( ! $mailer->open({ From    => $sReturnAddress,
                   	                To      => $sEmailAddress,
                                          Subject => $sSubjectText,
                                        })
                  	  )
                  		{
                  		return($::FAILURE, "SendMail failure! $!", 0, 0);
                  		}
                  
                          print $mailer $sMessageText;
                          $mailer->close();
                  
                  	return($::SUCCESS, '', 0, 0);
                  	}
                  Save and do a site update and that's that.

                  Bugs / Quirks.

                  Some users have reported that the e-mail is sent on one long line.
                  If this happens open the (patched)Actinic.pm and look for the line
                  Code:
                  	$sMessageText =~ s/\n/\r\n/g;        		# all LF -> CRLF
                  and comment it out by adding "#" at the beginning. I.e.
                  Code:
                  	#	$sMessageText =~ s/\n/\r\n/g;        		# all LF -> CRLF
                  Save and see if that fixes it.

                  Remember that if you update Actinic the updater will overwrite patched scripts with new
                  version and you'll have to redo the patch.
                  Norman - www.drillpine.biz
                  Edinburgh, U K / Bitez, Turkey

                  Comment


                    #69
                    Using mrvnet.kundenserver.de for smtp seems to work so there should be no need to start hacking the perl scripts with Norman's sendmail patches (which I can confirm work as I have used them years ago before moving to 1and1.)

                    Is there anyone who's tried mrvnet.kundenserver.de (and refreshed) who finds it isn't working for them?

                    Mike
                    -----------------------------------------

                    First Tackle - Fly Fishing and Game Angling

                    -----------------------------------------

                    Comment


                      #70
                      As Mike says, my code may not be needed but I've posted it just in case this quote from 1&1 becomes true for mrvnet.kundenserver.de (as it has for auth.smtp.oneandone.co.uk):
                      However, for shared hosting server, connections to the smtp server is not allowed.
                      You use a sendmail instead of smtp connection.
                      Norman - www.drillpine.biz
                      Edinburgh, U K / Bitez, Turkey

                      Comment


                        #71
                        Each time I email 1and1 a different support team member replies The latest one suggest changing the port to 587.


                        Karen

                        Comment


                          #72
                          Originally posted by Mike Hughes View Post
                          Using mrvnet.kundenserver.de for smtp seems to work so there should be no need to start hacking the perl scripts with Norman's sendmail patches (which I can confirm work as I have used them years ago before moving to 1and1.)

                          Is there anyone who's tried mrvnet.kundenserver.de (and refreshed) who finds it isn't working for them?

                          Mike
                          If this does not work for everybody on 1and1 but Norman's patch does then we shall review our email interface but it is unlikely we shall change it to suit a single ISP. ISPs are often reluctant to install individual perl modules so Actinic has always tried to avoid using Perl modules which are not installed as standard. If we require non-standard modules then some parts of the system will work on one system while other parts may be broken. However if other major ISPs adopt the same policy as 1and1 then of course we shall need to make changes.

                          Gordon Camley

                          3rd Line Support
                          SellerDeck.

                          Comment


                            #73
                            Yes. I saw that note but couldn't decide on quite what it applies to. Given the lack of knowledge on this in 1&1 support I'm assuming that this probably only applies to using auth.smtp.1and1.co.uk (or auth.smtp.oneandone.co.uk).

                            From what I've been told by 1and1 support (and read here):

                            - mrvnet.kundenserver.de is the correct smtp server for shared hosting.

                            - Dedicated servers are fine using smtp authorisation on the 1and1 smtp server.

                            Mike
                            -----------------------------------------

                            First Tackle - Fly Fishing and Game Angling

                            -----------------------------------------

                            Comment


                              #74
                              Originally posted by zgap111 View Post
                              1and1 support wrote this to me:



                              It explains why our dedicated managed 1and1 server had no problem...
                              - are everyone having a problem on a shared host with 1and1?

                              Tak.
                              Interesting, that managed servers are still working, I have a dedicated unmanaged server with 1and1 and actinic emails have been failing on that one as well as shared hosting.

                              I also found that a simple PHP script sending an email as part of a custom job I did a year ago was also failing. I had to rewrite the code to use port 587 and set it to use secure transmission, but it now works fine so this is not just an Actinic problem, it appears to affect all email scripts that try to use auth.smtp.1and1.co.uk without authentication and secure transmission (SSL or TSL), but not on all 1and1 products so far !!!.

                              this is from Wikipedia
                              Some servers are set up to reject all relaying on port 25, but valid users authenticating on port 587 are allowed to relay mail to any valid address.

                              Sending emails from a script is essentially a relay operation.

                              Malcolm

                              SellerDeck Accredited Partner,
                              SellerDeck 2016 Extensions, and
                              Custom Packages

                              Comment


                                #75
                                Originally posted by gcamley View Post
                                You should just see Mail sent and an email should arrive. If it doesn't then the indications are that even PHP mail is broken so notify 1and1.
                                .
                                I tried out these files on two different 1and1 packages, firstly a dedicated server where the tests failed, however I do know I can use a emails from a php script using port 587 and TLS secure connection on this server.

                                On a 1and1 shared server (Business) the test worked fine, even though I used an email account that was not one that was set up on that server, so relaying is open on shared servers. The result of the test was the same for both versions, as these are the default php settings this is not suprising.

                                SMTP Server = localhost
                                SMTP Port = 25
                                sendmail path = /usr/sbin/sendmail -t -i

                                Malcolm

                                SellerDeck Accredited Partner,
                                SellerDeck 2016 Extensions, and
                                Custom Packages

                                Comment

                                Working...
                                X