Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 4 of 4
  1. #1
    Member
    Join Date
    Nov 2005
    Posts
    13

    Default Relay Hosts

    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:

    550-(webserver) [1.2.3.4] is currently not permitted to relay through
    550-this server. Perhaps you have not logged into the pop/imap server in the
    550-last 30 minutes or do not have SMTP Authentication turned on in your email 550 client.

    SMTP -> ERROR: RCPT not accepted from server:
    550-(webserver) [1.2.3.4] is currently not permitted to relay through
    550-this server. Perhaps you have not logged into the pop/imap server in the
    550-last 30 minutes or do not have SMTP Authentication turned on in your email
    550 client.

    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. #2
    Member
    Join Date
    Aug 2003
    Posts
    11

    Default

    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. #3
    Member
    Join Date
    Sep 2008
    Posts
    10

    Default

    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. #4
    Registered User
    Join Date
    Sep 2008
    Posts
    1

    Default

    same problem, can not send mails via mail() or via remote smtp - any solution to fix this?

Similar Threads & Tags
Similar threads

  1. always permitted relay hosts
    By srhoffman in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 10-17-2005, 04:35 PM
  2. Exim Relay Hosts
    By trparky in forum cPanel and WHM Discussions
    Replies: 6
    Last Post: 06-08-2005, 11:21 AM
  3. How do you correctly close an Open Relay? Failed abuse.net mail relay test
    By Vatoloco in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 10-08-2004, 07:00 PM
  4. Allow Relay Hosts IP Ranges
    By viet in forum New User Questions
    Replies: 0
    Last Post: 09-16-2004, 09:02 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube