Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8488441
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T21:32:13+00:00 2026-06-10T21:32:13+00:00

Recently changes were made to my server by my host regarding email due to

  • 0

Recently changes were made to my server by my host regarding email due to spam.

I have found that a large number of spam is being sent from your
server:

root@server2 [~]# exiqgrep -r *****.com -c 5814 matches out
of 6122 messages

This means that the *****.com is the recipient of 5,814
messages being sent from your server. I have removed these messages
from the queue and increased the level of mail logging and security on
your server. I have also disabled your server from being an open
relay, which appears to be how the mail was being sent out. There is a
good chance that this was causing the delay, however the issue remains
that you have a hijacked script/account that is trying to send mail at
this rate. The server is now set to NOT send mail from any user other
than an SMTP user, root, and mailman; As such you will have to ensure
that any mail scripts are properly using SMTP authentication. You can
find more information on how to do so here:

http://email.about.com/od/emailprogrammingtips/qt/PHP_Email_SMTP_Authentication.htm

I would also strongly suggest turning on DKIM and SPF records (which
can be done in cPanel under “Mail Authentication”) for any and all
domains on this server as it will reduce the chance of
bouncebacks/rejected mail as well as being blacklisted for the spam
that has been going out. I am also running a malware scan on the
***** account, and have turned off the default email address. I
will let you know as soon as the scan is complete whether or not there
were any hits.

My scripts now have to use SMTP Authentication. Now I’m getting errors after updating my code.

Warning: fsockopen() [function.fsockopen]: php_network_getaddresses:
getaddrinfo failed: Name or service not known in
/home/*/public_html/fkg/lib/phpmailer/class.SMTP.php on line 89

Warning: fsockopen() [function.fsockopen]: unable to connect to
mail..*****.com:25 (php_network_getaddresses: getaddrinfo
failed: Name or service not known) in
/home/*/public_html/fkg/lib/phpmailer/class.SMTP.php on line 89
SMTP -> ERROR: Failed to connect to server: php_network_getaddresses:
getaddrinfo failed: Name or service not known (0) Mailer Error

Description: SMTP Error: could not connect to SMTP host server(s)

here is my code

$mail = new phpmailer();
$mail->SMTPDebug = 1;
$mail->IsSMTP();  // telling the class to use SMTP
$mail->Host = "mail.***.************.com"; // SMTP server
$mail->Port = "25"; 
$mail->SMTPAuth  = true;   //we need to autenticate to the server
//$mail->SMTPSecure = "ssl";  //we use ssl to protected the flow of info
$mail->Username = "noreply+*****.com"; //account 
$mail->Password = "********"; //password

any ideas on what is happening. Thanks in advance.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-10T21:32:15+00:00Added an answer on June 10, 2026 at 9:32 pm

    Ok, in the end of the day, after a long chat session…

    Few issues. In this case, server on the other side was exim, which only allows you to authenticate after you hit it with an EHLO command. PHPMailer, that was used, doesn’t allow you to force a EHLO, so authentication against exim server didn’t work.

    Switching to PEAR::Mail + PEAR::Net_SMTP + PEAR::Net_Socket “fixed” the issue.

    References:

    1. http://pear.php.net/package/Mail/download/
    2. http://pear.php.net/package/Net_SMTP/download
    3. http://pear.php.net/package/Net_Socket/download
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have recently made changes in some code that makes a char name field
Recently, we made some changes to some SQL Server views that had the potential
We have recently migrated some 30 DTS packages in SQL Server 2000 to SSIS
I have been recently writing a UDP server for a 2D shooter game I
I have recently installed and activated APC cache on a web server (Centos 5.7,
I recently made some changes to my development environment and came across a problem.
I recently moved website to a new host. The server setup is very similar.
I have a .net 2.0 web application that is running on Windows server 2003
All - I have recently upgraded our production environment from Sql Server Reporting Services
I have a web application which displays pdf's in an IFrame. I recently made

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.