HI,
There is no problem sending emails using the SMTP server from codeunits initiated on a local machine. However as soon as we automate the process ( using BPA Codeless Platforms). They fail with the following error message
The SMTP mail system returned the following error: (0x80040211): The message could not be sent to the SMTP server. The transport error code was 0x800ccc67. The server response was 421 4.3.2 Service not available.
Can any one explain why and how to fix please
Mike
Hi Mike,
NAV 2009 uses an old Windows email component (CDO.sys) that depends on the Windows user running it.
When you send the email manually, it works because your Windows account has permission to use the SMTP server.
When BPA or TaskCentre sends it automatically, it usually runs under a service account or Local System, and these accounts often don’t have permission. The SMTP server blocks the request, which leads to the 421 and 0x800ccc67 errors. This is common when SMTP servers only allow approved users or IPs.
How to fix it
-
Change the BPA service to run under a proper domain user instead of Local System. This fixes the issue in most cases.
-
Whitelist the BPA server’s IP on your SMTP relay.
-
Check if the firewall or SMTP ports (25 or 587) are blocked.
-
For Office 365, enable SMTP AUTH, use port 587 with TLS, and set an app password if MFA is enabled.
-
NAV 2009 uses outdated email technology. If your SMTP server requires TLS 1.2, add the registry setting to force Windows to use TLS 1.2, then restart the server.