The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Relay Hosts

Discussion in 'E-mail Discussions' started by davestacey, Aug 19, 2008.

  1. davestacey

    davestacey Member

    Joined:
    Nov 10, 2005
    Messages:
    13
    Likes Received:
    0
    Trophy Points:
    1
    Hi everyone,

    For some reason an email script (that uses phpmailer) which has worked perfectly fine for the past 8 months, suddenly decided to stop working the other day. This is an extract of the php script....

    Code:
    require(ROOT . 'includes/class.phpmailer.php');
    require(ROOT . 'includes/class.pop3.php');
    $pop = new POP3();
    $pop->Authorise('mail.domain.com', 110, 30, 'username', 'password', 1);
    $mail = new PHPMailer();
    $mail->IsSMTP();
    $mail->SMTPDebug = 2;
    $mail->IsHTML(true);
    $mail->Host     = 'mail.domain.com';
    $mail->From     = test@example.com;
    $mail->FromName = 'Firstname Lastname';
    $mail->Subject  = $subject;
    $mail->Body     = $body;
    $mail->AddAddress($to, $fullname);
    
    if (!$mail->Send())
    {
    	echo $mail->ErrorInfo;
    	exit;
    }

    We couldn't use the standard mail() function as it was a windows server (IIS), so we used the phpmailer script, which worked perfectly fine.

    Then it suddenly gave these errors:


    In the end i had to modify the script so it didnt use that relay server and emailed it direct to the host mx records of the senders email domain name.

    This worked, however, i couldn't give my client a responsable explanation as to why it suddenly stopped working in the first place.

    After checking the Advanced Exim Configuration Editor, i noticed it uses the following file:

    domainlist relay_domains = lsearch;/etc/localdomains

    I then opened up that file and added the ip address of the server that script was hosted on, and low and behold the orignal script worked.


    So my question is, how could this of happened in the first place? (Was there a cpanel upgrade that could of caused the relay to be mass blocked?)


    Thanks for your answers & time!
     
  2. elma

    elma Member

    Joined:
    Aug 13, 2003
    Messages:
    15
    Likes Received:
    0
    Trophy Points:
    1
    I'm having the exact problem today.. well I don't use a relay but phplist stopped working today. This was the second time and in both occasions switching phpmailer on and off temporarily solved the problem.

    I'm too looking for ideas.
     
  3. omidi

    omidi Member

    Joined:
    Sep 7, 2008
    Messages:
    10
    Likes Received:
    0
    Trophy Points:
    1
    hi
    i had similar problem but no one can help me!
    so turn off sender verification on exim, if the problem solved so you have same problem as me and no one can help you! you can read my posts.
    thanks
     
  4. NiLUX

    NiLUX Registered

    Joined:
    Sep 23, 2008
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    1
    same problem, can not send mails via mail() or via remote smtp - any solution to fix this?
     
Loading...

Share This Page