ME020148 - HOWTO: How to diagnose outgoing mail problems and delivery delay notifications


SUMMARY

How to diagnose outgoing mail problems and delivery delay notifications. 

If it is possible to send mail locally (from one account to another on the server) but are not able to send mail out side of the domain of server, this article will assist with diagnosis of the issue. 

DETAIL

Checking Firewalls

It is often configuration of a firewall or proxy server that does not allow the mail traffic to send or receive remotely. To help diagnose this, use the Telnet command. Further information on using the Telnet command can be found at: Article ME020207

SMTP Check

>C:\telnet mail.mailenable.com 25

A successful attempt will show a connection and subsequent welcome message as outlined below;

220 mailenable.com ESMTP MailEnable Service, Version: 0--1.04 ready at 07/03/05
19:54:57

If the firewall or proxy is not allowing SMTP traffic out then the following will be displayed;

Connecting To mail.example.com...Could not open a connection to host on port 25
: Connect failed

DNS Configuration

If messages are being dispatched by the server and mail is still not being delivered, then the next thing to check is whether the mail is being addressed and delivered correctly. Checking the SMTP debug and activity logs may show reasons for mail delivery failure.  Two links that can help diagnose any DNS issues are as follows;

http://www.mailenable.com/tools

http://www.dnsreport.com

The MailEnable utility will show some basic information on a domain and the relay settings. The DNSReport link will give a more comprehensive report of the status of the DNS settings.

Refused Connection

If a mail server is refusing connection when trying to send mail, the logs will report that the connection was refused. If there are many lines in the logs stating that the connection was refused, then it is likely that a PTR record has not been set up for the server, or the server IP address has been blacklisted on a Reverse DNS Blacklist. A basic check for blacklisting, and/or to check for a PTR record can be done here:http://www.dnsstuff.com

Delivery Delay Notifications

If a user is receiving delivery delay notifications, the message is most likely still queued for outgoing delivery on the MailEnable server. Determine why messages are generating delay notifications by reviewing the SMTP Activity and Debug logs. Use the MailEnable log analysis utility (available from http://www.mailenable.com/support ) to analyse the log files. Later versions of MailEnable also allow the SMTP outbound message queue to be reviewed with a summary description outlining why the delay occurred. Log files can be opened from within the MailEnable Administration program.

Search the Activity log for the mail address of the sender who is receiving the Delivery Delay notification. This will identify where the message is actually attempting to be sent. Also, inspect the MailEnable SMTP Outgoing Queue and determine the Message ID, and search the log for this.

Once the SMTP transactions have been located in the Activity Log, review the Debug Log for entries that same time period. The combination of these two logs should provide enough information as to why the message is not being sent.

Client and Relay settings preventing mail send

There are various reasons why this can occur:

  • SMTP Relay settings
  • Incorrect credentials
  • 'My account requires authentication' not enabled in Outlook.

On a new install, MailEnable sets the following relay settings:

- Allow relay for authenticated senders
- Allow relay for privileged IP ranges

The first option, 'Allow relay for authenticated senders' means that only email clients that send a username and password from an active MailEnable mailbox will be able to send email to a non-local email address. So in order to send email to non-local addresses, SMTP authentication needs to be enabled on the email client.

  • If SMTP authentication is not enabled, the message "503 This mail server requires authentication. Please check your mail client settings." will appear when trying to send email.

    In Microsoft Outlook and Outlook Express SMTP authentication can be enabled by setting the 'My server requires authentication' checkbox in the account settings. The 'Allow relay for privileged IP ranges' allows the 127.0.0.1 IP address to relay email without sending a username and password, in order to allow programs and websites on the local server to send out email.
  • Ensure that the username to login to web mail is formatted in the following way: mailboxname@postofficename and not mailboxname@domainname

MORE INFORMATION

How to diagnose Inbound Message delivery delays: Article ME020318

Error "Message Delivery has been delayed":Article ME020125

Sending or receiving fails on the DATA command: Article ME020063

BUG: "Communications Error: Could not populate sockets address pack" appears in log:Article ME020017

Could not resolve MX list for domain:Article ME020337

Why are messages to external domains not being sent?Article ME020133

PRB: MailEnable will not send mail to remote mail servers:Article ME020014



Product:MailEnable (All Versions)
Category:Environment
Module:SMTP
Keywords:outgoing remote delivery delay SMTP firewall send sending
Class:HOWTO: Product Instructions
Created:20/06/2003 6:51:00 PM
Revised:Wednesday, May 4, 2016
Author:
Publisher:MailEnable