Trying to configure to notify userids by mail when a transfer completes but it fails with this error:
XCOMN0988E Error sending notification, Check SMTP Server name, source or destination address
XCOM™ Data Transport® for Windows
The failure was due to the userid to be notified <whom to notify> not having the domain as part of the email address.
In xcom.glb:
• MAIL_TYPE=SMTP
• SMTP_SERVER=<ipaddrss or hostname of SMTP server>
• MAIL_USERNAME parameter value will be used as sender to send SMTP notifications.
In xcom.cnf:
For Local Notification:
• LCLNTFYL=ALL
• NOTIFYL=MAIL
• LOCAL_NOTIFY=<whom to notify>
For Remote Notification:
• RMTNTFYL=ALL
• NOTIFYR=MAIL
• NOTIFY_NAME=<whom to notify>
NOTE : The SMTP server must be within the internal organization, it will not work sending to an external service provider SMTP server (e.g. Yahoo / Google ) and the default port of 25 for XCOM must be used..
To resolve this:
Original section of the xcomntfy.bat:
:CHECK_MAIL_TYPE
if NOT /%mailtype%/ == /SMTP/ GOTO EXEC_MAPI
%xcomqm% -D%q_entryname% | %xcomsmtp% %q_entryname% %who%
GOTO END
Change this to:
:CHECK_MAIL_TYPE
if NOT /%mailtype%/ == /SMTP/ GOTO EXEC_MAPI
%xcomqm% -D%q_entryname% | %xcomsmtp% %q_entryname% [email protected]
GOTO END
NOTE:
If the value is hardcoded in the script, then XCOM will always send emails to this mail ID irrespective of what is specified in the transfer configuration parameters. If it is required to be able to send mails to different mail ids, then the script will need to be extended and modified to set the %WHO% value to the corresponding mail id based on the value from the transfer configuration parameters.
Set up a loopback transfer:
Example:
The following commands were used to help debug the problem
telnet <smtp server> 25
helo hi
mail from: <from_address>
rcpt to: <userid>
the errors received from telnet showed that the domain portion of the email address was required to be successful.