454 4.7.0 Temporary authentication failure in Exchange Server
Original KB number: 979174
In an Exchange server environment, some e-mail messages are stuck in a remote delivery queue that should have been transferred to another internal Exchange server in the Exchange organization.
If you open the Queue Viewer tool from the Toolbox node on the Exchange Management Console, the Last Error field displays an error message that resembles the following:
451 4.4.0 Primary target IP address responded with: "454 4.7.0 Temporary authentication failure." Attempted failover to alternate host, but that did not succeed. Either there are no alternate hosts, or delivery failed to all alternate hosts.
Additionally, you may find the following error message in the Application log file on the Exchange server that is receiving the e-mail message:
Event Type: Error Event Source: MSExchangeTransport Event Category: SmtpReceive Event ID: 1035 Description: Inbound authentication failed with error IllegalMessage for Receive connector Default <Server>. The authentication mechanism is ExchangeAuth. The source IP address of the client who tried to authenticate to Microsoft Exchange is [SourceIPAddress].
This issue occurs if the Exchange server can't authenticate with the remote Exchange server. Exchange servers require authentication to route internal user messages between servers. The issue can be caused by one of the following reasons:
- The Exchange server is experiencing Time synchronization issues.
- There is a replication issue between the domain controllers.
- The Exchange server is experiencing Service Principal Name (SPN) issues.
- The required TCP/UDP ports for the Kerberos protocol are blocked by the firewall.
To resolve this issue, follow these steps:
Check the clock on both servers and domain controllers that might be used to authenticate the servers. All clocks should be synchronized to within 5 minutes of one other.
Force replication between domain controllers to see if there is a replication issue.
Verify that the Service Principal Name (SPN) for
SMTPSVCis registered correctly on the target server.
Make sure that the
SMTPSVCentries are added correctly to the machine account by using the SetSPN tool. For example:
SetSPN -L <ExchangeServerName>
Check for duplicate SPNs by using the SetSPN tool. There should only be one entry of each:
Processing entry 0
found 0 group of duplicate SPNs.
Verify that the ports required for Kerberos are enabled.
If the previous steps do not work, you can turn on logging for Kerberos on the Server that is registering the Event 1035 message, which may provide additional information. To do this, follow these steps:
- Select Start, select Run, type Regedit, and then select OK.
- Locate the registry key:
- On the Edit menu, point to New, and then select DWORD Value.
- In the details pane, input the new value LogLevel, and then press Enter.
- Right-click LogLevel, and then select Modify.
- In the Edit DWORD Value dialog box, under Base, select Decimal.
- In the Value data box, type the value 1, and then select OK.
- Close Registry Editor.
- Again check the System Event log for any Kerberos errors.
In the destination Exchange Server, check the receive connectors that receive internal e-mail messages and make sure that they have Exchange Authentication enabled.