Knowledge Base

Website sending spam emails: trace the source before changing settings

If your website is sending spam emails, establish which system actually generated or submitted the messages before changing DNS or replacing software. A visible From address can be impersonated; an abused website form, compromised application, stolen SMTP/API credential and genuine mailbox have different response paths. Correlate application, hosting and sending-provider evidence, contain the identified source and verify that necessary business mail still works.

Separate the visible sender from the sending source

A complaint mentioning your domain does not automatically prove the website sent the message. Start with the original complaint or provider notice and the available message evidence. Identify the sending service, relevant account and observation time where they can be established. Do not ask staff to forward sensitive messages broadly or post full headers with customer information in a public discussion.

If the evidence points to domain impersonation, use the separate sender-authentication investigation. If it points to the site's application or sending credential, focus on that path. Both can coexist, so record the conclusion and its limits. Changing a DNS record does not explain which request caused the application to submit mail or remove an unauthorized credential already usable through a legitimate provider.

Map the evidence to the owner who can act

List the actual sending paths used by the business: website-generated notifications, a hosting mail service, an external SMTP/API provider and ordinary mailboxes. Do not assume they share one password or one administrator. The source matrix below turns an alert into questions for the appropriate owner. It does not claim that any listed source has been confirmed in your installation.

Correlate timestamps, message identifiers and relevant application events through an approved review. A shared host address alone may not identify the process responsible. Provider evidence can narrow the sending route without identifying the human operator or whether the underlying request was authorized. Keep those conclusions separate and explain any gaps caused by disabled event recording or missing retention.

Outbound-mail source and containment matrix
Possible pathEvidence to correlateOwner and containment question
Website form or workflowSubmission/action records and application mail events.Application owner: can the abused action be restricted?
Hosting mail processHost records, queue context and process ownership.Host: which application or account generated the activity?
SMTP/API providerSending account, credential scope and recorded events.Provider/account owner: which access needs restriction?
Genuine mailboxProvider account activity and message evidence.Mailbox administrator: is account response required?
Impersonated domainOriginal message and relevant authentication evidence.Domain/email owner: what supports the spoofing conclusion?
Unresolved sourceKnown observations and missing records.Incident owner: who can obtain the next evidence?

Do not treat processing or delivery status as authorization

WordPress documents that a true result from wp_mail means the method processed the request without errors, not that the recipient received it. Keep application processing, provider acceptance and recipient outcome distinct. A mail log can be useful evidence, but its success field does not establish that the message was wanted or that the workflow had permission to send it.

Provider events have their own scope. Amazon SES, for example, supports notifications and event publishing for relevant sending activity, with identity and region considerations. Use current documentation for the actual provider and confirm what was enabled at the relevant time. Do not interpret a missing event as proof that a message never existed when that path or event type was not recorded.

WordPress wp_mail: processing success versus recipient deliveryAmazon SES: identity/region-scoped sending-event notifications

Contain the identified route while preserving necessary operations

Choose a restriction that addresses the supported source and document its business effect. An application action may need to be paused; a credential may need revocation; a hosting process may need provider containment. These are different actions with different owners. Coordinate them through the incident process rather than disable every sending mechanism or remove all queued messages without understanding the impact.

Preserve useful original context before cleanup where practical, without delaying urgent containment. Do not replay suspected spam to real recipients as a test. Use synthetic records and supported provider test mechanisms for controlled verification. If a credential is replaced, update the legitimate integration through an agreed secure route and ensure the previous unauthorized access is addressed. A replacement secret alone does not explain the source of the exposure.

Repair the cause and verify legitimate message paths

The correction should match the finding: application validation and abuse controls, removal of unwanted code, reviewed account access or properly scoped sending credentials. Avoid installing an SMTP plugin merely because the symptom contains the word email. A different transport may move the same unauthorized workflow to another provider while leaving the original cause in place.

Verify the business messages that matter, such as contact enquiries, password recovery and order notifications, through a controlled agreed test. Record the application action, provider result and expected recipient observation separately. Check that abuse has not simply moved to another path and that required alerts reach an owner. Provider restrictions and reputation follow-up may remain after the source is corrected, with no guaranteed delivery or reputation-recovery date.

Keep a clear incident handoff and ongoing owner

Summarize the supported source, relevant scope, containment, corrected condition, legitimate-path checks and remaining limitations. Name the person responsible for provider follow-up and review of recurring activity. If account access or information exposure may be involved, route that concern separately; a sending spike alone does not establish every consequence. Avoid claims about the attacker or full incident scope that the records cannot support.

CyberFixCrew is an Israeli cybersecurity company serving businesses worldwide with practical Israeli website, business-email and digital-infrastructure knowledge. We can discuss a scoped investigation and correction of the technical sending path. Do not send passwords, API keys or confidential message contents in the initial enquiry. No continuous monitoring coverage, guaranteed inbox delivery, provider reinstatement date or fraud attribution is implied.

Further reading: WordPress wp_mail: processing success versus recipient deliveryFurther reading: Amazon SES: identity/region-scoped sending-event notifications

Practical answers

Questions about this topic

Does spam with my From address prove the website sent it?

No, a visible sender can be impersonated. Establish the actual sending route through message, application and provider evidence.

Will configuring SPF and DKIM stop every form of website spam?

No, domain authentication and application abuse are different issues. A valid authenticated sending route can still carry messages generated by an unwanted workflow.

Does wp_mail returning true prove delivery?

No, WordPress describes it as successful processing by the method, not proof that the recipient received the message or that the request was authorized.

LET US DISCUSS YOUR TASK

Trace the unwanted sending to its technical source

Describe the provider notice, affected site and known sending service. Keep message contents, account passwords and API keys out of the initial form.

Discuss the sending-source issue