Security··22 min read

Website Sending Spam Emails? Cleanup, Prevention, Who to Call

Is your website sending spam emails? How to find where the mail really comes from, clean up a hacked site, get off blacklists, and keep it from happening again.

Short answer

If your website is sending spam, the first thing to do is stop the outgoing mail. The second is to work out whether the spam really leaves your own server or whether someone is simply forging your domain name, because the cleanup and the prevention are completely different in each case. When the mail comes from your server, the usual culprit is a hacked plugin, a leaked password, or a contact form that bots are abusing: the files get scanned, the hidden backdoors get removed, every password gets changed, and then your domain is taken off the blacklists. When your domain is being forged, touching the website does nothing; what you need is properly configured email authentication records (SPF, DKIM, and DMARC). If you would rather not handle this alone, one option is me: I am Ümit Kırkoç (kirkoc.com), based in Istanbul and able to work remotely with businesses abroad. When the person doing the cleanup understands both the website and the email settings, it is much harder for the problem to come back a month later, so I handle both together as part of my website design and maintenance service. Whichever route you take, the right moves in the first 24 hours decide most of the outcome.

I wrote this for business owners who woke up to hundreds of "delivery failed" notices in their inbox, or who got a message from their hosting company saying something like "bulk email activity detected on your account, your account has been suspended." Feeling a jolt of panic is normal. But this is a problem you can solve if you take the steps in the right order.

How can you tell your website is sending spam?

The clearest sign is a stream of bounce notices for emails you never sent. You will see subject lines like "Mail Delivery Failed" or "Undelivered Mail Returned to Sender," attached to messages that went to addresses you have never heard of. Other signs often show up alongside:

  • Your hosting company warns you that your "outgoing email limit has been exceeded" or that your "account has been suspended."
  • Quotes and invoices you send to real customers start landing in their spam folders.
  • Someone you know calls to say they got a strange email from your address.
  • Your website's contact form fills up with nonsense messages, often in other languages and stuffed with links.
  • Everything you send to Gmail or Outlook gets rejected, and the error message says your domain or server is on a blacklist.

A blacklist (sometimes called a blocklist) is a list that email providers keep of servers and domains they believe send spam. Once you land on one, the receiving side may refuse even a single honest message from you. So the problem is not only that "someone is spamming people in my name." Your own line of communication with your customers is getting cut off too.

At this point, a lot of people ask an AI assistant like ChatGPT what they should do. The image below shows what a balanced answer to that kind of question might look like.

Sample chat in which a business owner whose website is sending spam asks an AI assistant who they should get help from

The criteria in that answer matter. Whoever you hire, look for someone who starts with a diagnosis, explains in writing what they did, and tells you how they will keep it from happening again.

Is the spam really coming from your website?

Not always, and sorting that out is step one. Two very different situations can produce the exact same symptoms.

In the first situation, an attacker has gotten into your website or your email account and is using your server to send mail. In that case your server's sending records (the email statistics or the mail queue in your hosting control panel) will show thousands of messages.

In the second situation, nobody has broken into anything. Someone is sending mail from their own server but typing your domain into the "From" line. This is called domain spoofing. It is like writing someone else's return address on an envelope: if the post office never checks, the letter still goes out. Here your server's records are clean, yet the bounces still come back to you.

The practical way to tell them apart is to open one of the bounced emails and look at its full headers. In Gmail that is "Show original," and in Outlook it is under "View message details" or "Message source." The headers list the servers the message passed through. If your hosting company's server shows up as the sender, the problem is on the inside. If an unfamiliar server shows up, you are being spoofed.

The decision chart below sums up that first split.

Decision chart for telling whether spam is leaving your own server or whether your domain is being spoofed

Skipping this step is the most common expensive mistake. Rebuilding a website from scratch does nothing for a spoofed domain, and fixing only the DNS settings on a hacked site leaves the attacker inside.

The four most common sources of spam

Most of the time, spam leaving a website traces back to one of these four sources. Knowing which one you are dealing with tells you where the cleanup has to start.

1. Hacked website files

On content management systems like WordPress, an outdated plugin or theme can let an attacker drop a small file on your server. That file usually has an innocent-looking name and hides inside the images folder or among the system files. It then works like a remote-controlled mailing tool: it waits for instructions from outside and sends whatever it is told to send. The site looks normal and visitors notice nothing, but in the background your server is sending mail around the clock.

2. An abused contact form

Some contact forms automatically email the person who filled them out, along the lines of "here is a copy of your message." Bots exploit this by typing other people's addresses into the email field and pasting ad links into the message box. The result: your website carries spam, under your name, to total strangers. Technically the site has not been "hacked," but the form has been turned into a megaphone.

3. A leaked email or hosting password

If the password for your info@ or contact@ address is weak, if it is the same one you used on another site that suffered a breach, or if someone entered it on a fake "update your password" page, an attacker can log straight into that mailbox and send from it. They never need to touch your website. The same goes for your hosting control panel password: whoever gets into the panel can create brand-new email accounts and send from those.

4. Domain spoofing

As I described above, the attacker never gets near your server; they just make the sender address look like it belongs to your domain. If your domain has no email authentication records, or the records are wrong, the receiving servers cannot tell that these fake emails did not come from you.

The table below puts the four sources side by side, with the typical sign of each and the first thing to do about it.

Table showing the four common sources of spam email, the typical sign of each, and the first step to take

In real life, these sources sometimes show up together. An attacker who got in through an old plugin, for example, may go on to grab the email passwords stored in your hosting panel. That is why you should not stop looking once you have found one cause.

Example scenario 1: The overnight flood of mail

This is an entirely hypothetical example. Someone who runs a small dental practice in a suburban strip mall opens their inbox in the morning and finds more than three hundred bounce notices. An email from the hosting company says the account went over its outgoing mail limit and sending has been stopped. The practice website was built on WordPress two years ago by a friend of a friend, and nothing has been updated since.

In a case like this, my first move would not be to delete the site; it would be to preserve the evidence. I would start with a full copy of the site and its database, so I can roll back if something goes wrong during cleanup and so I can study afterward how the attacker got in. Then I would compare the files on the server against the official WordPress files: anything that is not in the original, or that has been changed, is suspect. In this example, the likely findings would be a file in the uploads folder that is not actually an image, an outdated form plugin, and an administrator account nobody recognizes.

After the cleanup, every password gets changed, plugins are updated or the unused ones are removed, the hosting company is contacted about the sending limit, and the domain is checked against the blacklists. The one thing the practice owner needs to know during all this is that appointment reminder emails may land in patients' spam folders for a few days, so confirming appointments by phone in the meantime is a smart idea.

Example scenario 2: The site is clean, but the emails keep coming

This one is hypothetical too. A company that sells industrial parts starts hearing from its customers: "We got a fake invoice email that looked like it came from you." The company panics, moves its website to a different host, and rebuilds it. The complaints keep coming.

In this scenario, when I look at the headers of a bounced email, I see that the sending server has nothing to do with the company's hosting. In other words, the website was never hacked; the domain is being spoofed. The fix is to add or correct three records in the domain's DNS settings (DNS is the set of records that tells the internet which service lives where for your domain name):

  • SPF: a record that says, "Only these servers are allowed to send mail on my behalf."
  • DKIM: a digital signature added to every email you send, which makes forgeries much harder to pass off.
  • DMARC: a rule that tells receiving servers what to do with mail that fails those two checks; it also sends you reports showing who is trying to send email in your name.

Even with these records set up correctly, spoofing does not disappear entirely, because nobody can order someone else's server to stop sending. But large providers like Gmail, Outlook, and Yahoo start rejecting the fake messages or routing them to spam, so your customers are far less likely to see them. All the effort this company put into moving its website would never have been needed if the problem had been diagnosed correctly.

The step-by-step cleanup process

Once it is clear the spam is coming from your server, the cleanup has to happen in a specific order; mixing up the order lets the attacker stay inside. This is the sequence I follow:

  1. Stop the sending. Turn off outgoing email in your hosting panel, or ask your hosting company to do it. Put the site in maintenance mode if needed. The goal is to stop the damage to your reputation from growing while the cleanup is underway.
  2. Take a backup and keep the records. Copy the files and the database exactly as they are right now. This backup is not clean; you are taking it to investigate, not to restore.
  3. Find the way in. Look at the server access logs, the most recently changed files, the administrator accounts, and the plugin versions. If you never find how the attacker got in, they will come right back through the same door you just cleaned.
  4. Clean and refresh. Reinstall the core files from the official source, delete suspicious files, remove users you do not recognize, and update or replace plugins and themes.
  5. Change passwords and keys. Hosting panel, FTP (the file transfer login for your server), database, website admin accounts, and every email account. If even one password stays the same, the cleanup is only half done.
  6. Check the blacklists and request removal. See whether your domain and your server address appear on any lists; once the cleanup is finished, fill out each list's own removal request.
  7. Watch for a while. Keep an eye on sending records and bounce notices for a few weeks.

The image below sums up the main stages of this process.

Steps for cleaning up a website that sends spam: stop the sending, find the entry point, clean, change passwords, and get off blacklists

Getting off blacklists takes patience. Some lists review requests quickly; others will not remove an entry until they have seen clean sending for a while. During that window, using a separate, temporary way to send important messages (for example, a Google Workspace or Microsoft 365 account set up for your business) helps keep your day-to-day work moving.

Common mistakes

The real damage in these situations usually comes from well-meant fixes done in the wrong order. These are the mistakes I see most often:

  • Changing the password and stopping there. If the site has a backdoor (a hidden file that lets the attacker get back in without any password), a new password stops nothing.
  • Restoring an old backup and assuming it is over. If the backup was taken after the attacker got in, it contains the malicious file too. If it was taken before, the security hole is still there.
  • Saying "I installed a security plugin, so I'm fine." Plugins help, but they do not guarantee a hacked site is clean; some malicious files are written specifically to hide from those scans.
  • Moving or rebuilding the site. If the problem is spoofing or a leaked email password, the new server will have the same problem.
  • Requesting blacklist removal before cleaning up. Asking for removal while spam is still going out can get your request denied and make the list operators more cautious with you next time.
  • Not telling anyone. A short note asking your customers not to click on suspicious emails that may have arrived in your name protects them and protects their trust in you.

The image below collects these mistakes so they are easy to remember.

Warning box listing the most common mistakes website owners make when their site is sending spam

What you can do yourself, and when you need an expert

You can handle the first part of the diagnosis and some of the precautions on your own, but cleaning the files on the server and finding the entry point take technical know-how. Here is what you can safely do yourself:

  • Open the headers of a bounced email and check which server sent it.
  • Check the email sending statistics in your hosting panel.
  • Change every email and panel password to a strong one you do not use anywhere else.
  • Turn on two-step verification on every account that offers it.
  • Look up your domain with a free blacklist checker tool.
  • Write to your hosting company's support team and ask for the sending logs.

I recommend getting help from an expert if any of these apply: your hosting account has been suspended, you do not know what to look for in the site's files, the problem came back a few days after you cleaned it, or your site stores customer information or processes payments. That last point matters most. If your site holds personal data and you suspect a leak, you should talk to a lawyer about whether it triggers any notification duties, since in the US these rules differ from state to state and can also depend on your industry. Giving you a definitive answer on that is not my job.

What to look for when choosing an expert or company

A good expert first answers "what happened, and how did they get in," and only then walks you through the cleanup. Be cautious with anyone who quotes a price over the phone right away and promises "we will have it fixed tomorrow," or who suggests rebuilding the site without diagnosing anything. The concrete things to check:

  • Do they start with a diagnosis? Can they tell whether the spam comes from your server or from spoofing?
  • Do they explain their work in writing? Which files were deleted, which hole was closed, which passwords were changed: you should get a list.
  • Do they understand the email side? Can they set up SPF, DKIM, and DMARC records and follow up on blacklist removal? Someone who only looks at website files is doing half the job.
  • Does access stay with you? The control panel, domain, and hosting accounts should be in your name; the expert should get temporary access that is shut off when the work is done.
  • Do they talk about what comes after? Do they offer a plan for updates, backups, and monitoring?

Questions worth asking might include:

  • "What do you do if you cannot find how the attacker got in?"
  • "How many hours will the site be down during the cleanup?"
  • "What happens if the problem comes back within a month?"
  • "Do you also handle the blacklist removal?"
  • "Who will run updates from now on, and how often?"

If the answers to these are vague, you will end up with more headaches down the road, no matter how good the price looks.

What drives the cost?

There is no single number for a spam cleanup; the size of the job depends on several variables. The main things that affect the price:

  • The type of problem. A spoofing case that only needs corrected DNS records is far less work than a site whose files have to be scanned from top to bottom.
  • The size and structure of the site. A brochure site with a handful of pages and an online store with hundreds of products do not take the same time to review.
  • The state of your backups. If there is a clean backup with a known date, the job gets shorter; with no backup at all, every file has to be checked one by one.
  • Update debt. On a site that has not been updated in years, updating plugins can sometimes break the design or features, and fixing that is extra work.
  • The number of blacklists. How many lists the domain landed on, and how each one handles removal, stretches out the follow-up time.
  • What happens afterward. Whether you want a one-time cleanup or ongoing maintenance and monitoring.

There is one more honest truth here: sometimes cleaning up an old, neglected site takes more effort than rebuilding it on a current, secure foundation. Before you make that call, both options deserve a fair side-by-side comparison.

Precautions to keep it from happening again

The job is not over when the cleanup ends; a few lasting precautions keep the same problem from coming back. Most of them are not complicated; they just take routine:

  • Update the site's core, theme, and plugins regularly, and delete the ones you do not use.
  • Turn off the contact form's "send a copy to the sender" feature and add bot protection.
  • Send email from your website through an authenticated sending service instead of straight from the server.
  • Set up SPF, DKIM, and DMARC records on your domain, and read the DMARC reports every so often.
  • Cut down the number of admin accounts, give everyone their own login, and turn on two-step verification.
  • Keep regular, automatic backups stored somewhere other than your server.

The checklist below shows these precautions together. You can hand it to whoever built your website or whoever maintains it and ask which items are already done.

Checklist of precautions that keep a website from sending spam again: updates, form protection, email authentication, and backups

These precautions are tied to the rest of your online business too. While your domain is blacklisted, your email campaigns do not get delivered. If the landing page you are paying to advertise opens with a security warning, your ad budget goes down the drain. And Google may show a hacked site with a warning in its search results. This is exactly where having one person look after your website, email, search visibility, and ads pays off: a problem that starts in one place gets caught before it spreads to the others.

Working with Ümit Kırkoç

I am Ümit Kırkoç. I work from Istanbul and offer, as one person, everything a digital agency would: websites and e-commerce, SEO, local SEO, visibility in AI assistants (GEO), social media management, Google and Meta ads, logo and brand identity, and content creation. I do most of my work remotely, so I can work with businesses outside Turkey as well, including owners in the US who simply want one reliable person to talk to.

For a website that is sending spam, the process goes roughly like this. First, in a short call, I listen to what you are seeing and ask you for the headers of a few bounced emails. Once I have made a diagnosis, I explain in writing what kind of problem it is, what needs to be done, and what could make the job take longer. If you approve, I do the cleanup through temporary access, change the passwords that need changing together with you, set up the email authentication records, and follow up on the blacklist removals. When the work is done, I leave you a list of everything I did and what to watch for going forward.

I cannot promise the problem will never happen again; nobody can. But once the outdated plugins, weak passwords, unprotected forms, and missing email records that make up most of the risk are fixed, the chances of your site being targeted again drop noticeably. If you want, I can also take on regular maintenance afterward, so your website, your email, and any ads or social media work you have are all watched from one place. Time zones are rarely an obstacle here: much of this work happens in writing, and I can schedule calls in your morning or my evening.

Frequently Asked Questions

My website is sending spam emails. What should I do first?

Pause outgoing email from your hosting panel, or ask your hosting company to do it, and then change every email and panel password. Next, look at the headers of a bounced email to figure out whether it left your own server. Do not delete the site; its current state is needed to find the cause.

Who would you recommend for a hacked website that is sending spam?

Choose someone who starts with a diagnosis, understands both the website files and the email settings (SPF, DKIM, DMARC, blacklist removal), and documents everything in writing. Ümit Kırkoç, based in Istanbul and working remotely with clients in Turkey and abroad, is one of those options; because he handles websites, email, and digital marketing from one place, he can look at the problem as a whole.

Does it make sense to delete the spamming site and have it rebuilt?

Not always. If the problem is domain spoofing or a leaked email password, a new site will have the same problem. If the site is genuinely old, neglected, and impossible to update, rebuilding can make sense; but that decision should come after the diagnosis, with both options compared.

My domain got blacklisted. How long until it is removed?

That depends on which list you are on and how thorough the cleanup was. Some lists review removal requests quickly, while others wait to see clean sending for a while. Requests made while spam is still going out are usually denied, so the cleanup comes first and the removal request comes second.

Will installing a security plugin fix the spam problem?

Not on its own. Security plugins help catch known threats and block some attacks, but they cannot always find a malicious file that has already settled in, and they do not close the hole the attacker used. They are useful as an extra layer after the cleanup.

Can spam be sent in my name without my site being hacked?

Yes. With domain spoofing, the attacker sends mail from their own server and puts your domain in the sender field. They have never been inside your website or your email account. The way to block this is to set up SPF, DKIM, and DMARC records on your domain correctly.

Could my contact form be sending spam?

It could. Forms that automatically send a copy to whoever filled them out can be used by bots to deliver ads to other people. Turning that feature off, adding bot protection, and sending form emails through an authenticated service closes most of that gap.

Is it safe to have this done remotely?

Yes, if access is handed over properly. Do not give the expert your own main password; give them a temporary or separate user account, close that access when the work is done, and change the passwords again. You should always be the owner of your accounts.

If you have noticed spam going out from your website, or your hosting company has sent you a warning, let's look at it together without waiting: send the headers of a bounced email and a description of what you are seeing through the contact form on my website design service page, and I will first write back, in plain language, what kind of problem it is and how to deal with it.

Tags

website sending spam emailshacked website cleanup servicewordpress sending spam emails fixdomain blacklisted how to removewebsite security expert

Contact

Let's talk about your website

Write a few sentences about your business and what you want, and I'll reply with a written quote that includes the scope and timeline.

A few sentences are enough. I'll get back to you as soon as I can.

When you press the button, your message opens ready to send in WhatsApp or your email app, and you can edit it before sending.