// how to fix
A hacked email account is sending spam: what to do
Someone has your password and is sending spam from your mailbox. Lock them out, remove what they left behind, then repair your reputation.
What it means
An attacker has logged in to one of your mailboxes, usually with a stolen or guessed password, and uses it to send spam or phishing. Typical signs:
- Hundreds of bounce messages for emails you never sent.
- Contacts telling you they got a strange email from you.
- Unknown emails in your Sent folder, or the Sent folder suspiciously empty.
- Your provider blocks your sending, or your IP or domain appears on a blacklist.
Why it matters
Every minute counts. The spam damages the reputation of your IP and domain, so even your normal emails go to spam. Phishing sent from a real account is also very convincing for your contacts.
How to fix it
- Change the password from a clean device, not the one that may be infected. Use a long, unique password.
- Turn on two-factor login (2FA) with an app or a security key.
- Sign out every session. Google and Microsoft accounts have an option to sign out everywhere; admins can do it for users.
- Remove what the attacker left. Check carefully:
- forwarding addresses and inbox rules (attackers hide replies or forward everything);
- delegated access, app passwords and connected apps you do not recognise;
- the signature and the Reply-To address.
- Scan the device used for email with up-to-date antivirus software.
- Change the same password everywhere else it was used.
- Unblock sending. In Microsoft 365, a user blocked for spam must be released by an admin in the Microsoft Defender portal ("Restricted entities"). Other providers may ask you to contact support.
If you run your own mail server
- Disable the hacked account until the password is changed.
- Look at the outgoing queue and delete the spam waiting in it, so it is not sent later.
- Check the logs to see which account or website sent the spam. A hacked website form or script is another frequent cause.
- Limit how many emails one account can send per hour.
Repair your reputation
- Check blacklists for your sending IP and domain at
/blacklists. - Request removal on each list only after the spam has stopped. If the IP is shared (Google, Microsoft, a newsletter tool), the provider handles it. Blacklist removal help is available in the paid Delivmail dashboard.
- Warn your contacts briefly: tell them to ignore and delete the strange emails, especially any with links or attachments.
- Watch your DMARC reports for a few weeks to spot any new unexpected sending.
Prevent it
- 2FA on every mailbox, especially admin accounts.
- Turn off old login methods (basic authentication, SMTP passwords) that you do not use.
- Teach your team to recognise fake login pages.
Check that it is fixed
The bounces should stop within a day. Send a test email from the Delivmail home page: the blacklist section should be clean and SPF, DKIM and DMARC should pass. If a listing remains, check it again a few days after your removal request.
Check that it is fixed
DNS changes can take from a few minutes to a few hours. Then send a new test email or scan your domain again.
Related guides
- Move DMARC from p=none to quarantine or reject safelyp=none only watches. To really stop fake emails using your domain, move step by step to quarantine and reject, without blocking your own emails.
- Your sending IP address is on a blacklistA blacklist is a public list of IP addresses known for sending spam. Find out if the IP is yours, fix the cause, then ask for removal.
- Your domain is on a blacklist (Spamhaus DBL, SURBL, URIBL)Domain blacklists list domain names seen in spam. They follow your domain wherever you send from. Find the cause, clean up, then request removal.
- Your emails land in Gmail's spam folderWhen Gmail sends your emails to spam, the cause is almost always authentication, reputation or content. Here is how to find which one and fix it.
- Your emails land in Outlook or Hotmail junkOutlook.com, Hotmail and Live send many new senders to Junk. Check your setup, then use Microsoft's free sender tools: SNDS, JMRP and the delist portal.