The resolution is as follows:
In Configuration→Connections, ensure that an SMTP Client Connection has been added and configured correctly:
In the SMTP client connection, it is important to specify a Microsoft Exchange will discard a received email with the same message ID if an email with the same message ID already exists in the system. To work around this problem, set the send strategy on the SMTP Connector to "New message ID". Save. Alternatively, if this does not work, set the send strategy to "Send as attachment".
THe send function requires the use of the Send As Right:
There may be a networking issue or firewall blocking the communications between MailArchiva and the mail server. On the MailArchiva server, drop to the command prompt and telnet to port 25 on the Exchange server. If no reply is received, there is a networking issue.
For MailArchiva to communicate with your mail server, it needs to share the same connection security. For example, if your mail server only accepts TLS communications and your connection mode is set to plaintext only, obviously an error will be reported. To resolve, you need to switch the SMTP connection mode settings to TLS in MailArchiva.
The authentication method must be set to one that is supported by your mail server. Your mail server must at the very least be configured for either basic or integrated Windows authentication. Ensure that your mail server will accept integrated Windows authentication (Exchange) or basic authentication and specify "username@company.com" or "username" in the username field.
Exchange users: In the Exchange Manager application, enable both basic and integrated authentication. In MailArchiva's SMTP client settings, in the username field, enter in the form user@company.com.
In Configuration→Connections ensure that the default Transmit connection is set to the same name as the newly created connection. If that doesn't work, then stop the MailArchiva service, edit the server.conf using a text editor (located in /etc/opt/mailarchiva/ROOT or C:ProgramDataMailArchivaROOTconf), delete the line starting with "send.smtpconnection". Start the MailArchiva service. Thereafter, go to Configuration→Connections, and ensure the default send connector is selected and retest.
Some versions of Microsoft Exchange are particularly aggressive at de-duplicating messages sent to it. That is, if there is already an equivalent email present on the Exchange server, Exchange will recognize it as a duplicate. When it does this, it accepts the message and disregards it. The user is left thinking that the message was never sent, when in fact it was. The resolution is to switch the send strategy in the SMTP Client Connection settings either to "new message ID" or "send as attachment".
The following error appears in the log when attempting to send an SMTP message to a user from the Search interface:
One way to resolve the above is to follow Option 3 to configure a connector to send mail using an SMTP relay.
When sending an email using the Search interface, the error "queue not started" appears. In this case, the queue database appears to be corrupted. The MailArchiva server must be shutdown cleanly. If it is not, there is a probability that the queue database will get corrupted.
Follow the steps below to resolve:
This alert indicates one of the following:
If the above resolutions are not applicable, please temporarily disable archiving, enable Troubleshoot logging in Configuration→Logs, perform a Test Connection in the SMTP Client Connection. Examine the log file to see the communications between MailArchiva and the mail server. Usually, the SMTP commands and error code are displayed in the log file. It should give you an indication of why MailArchiva is unable to send mail.