RCPT TO:<<us...@domain1.com>> (Outlook Express wouldn't allow
single brackets)
RCPT TO:<<us...@domain2.com>>
generates two emails, one to each domain. What I'd like it to do is send a
single email and allow the smart host (in this case, an Exchange server with
message journaling running) do the split into multiple messages. Splitting
into multiple messages causes additional work and storage requirements on
the Exchange Server.
Thanks,
Mike Ober.
Mike, I would recomment using MIME.EXE instead. That way, you can
control the email yourself.
This is an extract of our Email script, which allows HTML formatted,
mixed-content, etc. Hopefully you should be able to decipher it, but
let me know if not.
Rob.
$ OPEN /WRITE SCRIPTFILE SYS$TEMP:UAM_MIMESCRIPT_'PRCPID'.TMP
$ WRITE SCRIPTFILE "$ RUN SYS$SYSTEM:MIME.EXE"
$ WRITE SCRIPTFILE "OPEN SYS$TEMP:UAM_MIMEHEADER_''PRCPID'.TMP /
DRAFT"
$ !
$PROCESS_LOOP:
$ IF F$TYPE(FILEELEM_'COUNT') .EQS. "" THEN GOTO
END_PROCESS_LOOP
$ !
$ FILETEMP = FILEELEM_'COUNT'
$ SH SYM FILETEMP
$ !
$ FILETYPE = F$PARSE("''FILETEMP'",,,"TYPE") - "."
$ FILENAME = F$PARSE("''FILETEMP'",,,"NAME")
$ !
$ FILEMODE = "UNKNOWN"
$ !
$ MIMESTRING = F$TRNLNM("WEBREPORT$MIMETYPE_''FILETYPE'",,0)
$ MIMETYPE = F$TRNLNM("WEBREPORT$MIMETYPE_''FILETYPE'",,1)
$ MIMETRANS = F$TRNLNM("WEBREPORT$MIMETYPE_''FILETYPE'",,2)
$ MIMEACCELIO = F$TRNLNM("WEBREPORT$MIMETYPE_''FILETYPE'",,3)
$ !
$ FILEMODE = "''MIMETYPE'"
$ !
$ IF FILEMODE .EQS. "UNKNOWN" .OR FILEMODE .EQS. ""
$ THEN
$ STRING = "%UAM-E-UNKTYP, Unknown file type '" +
FILETYPE + "' - must be a valid WEBREPORT$MIMETYPE_xxx type"
$ ERRORMOD UTL_AUTOMAIL REQUEST "''STRING'"
$ GOTO END
$ ENDIF
$ !
$ DUMMY = F$SEA("",28)
$ !
$ IF F$SEA("''FILETEMP'",28) .EQS. ""
$ THEN
$ WS "%UAM-E-PFNF, Cannot find file ''FILETEMP'"
$ ERRORMOD UTL_AUTOMAIL MAIL "%UAM-E-PFNF, Cannot find
file ''FILETEMP'" "" "''ERRLIST'"
$ GOTO END
$ ENDIF
$ !
$ IF FILEMODE .EQS. "BINARY"
$ THEN
$ WRITE SCRIPTFILE "ADD ''FILETEMP' /BINARY"
$ ELSE
$ WRITE SCRIPTFILE "ADD ''FILETEMP' /TEXT /
ENCODING=QUOTED"
$ ENDIF
$ !
$ COUNT = COUNT + 1
$ !
$ GOTO PROCESS_LOOP
$ !
$END_PROCESS_LOOP:
$ WRITE SCRIPTFILE "SAVE"
$ WRITE SCRIPTFILE "EXIT"
$ CLOSE SCRIPTFILE
$ !
$ CREATE SYS$TEMP:UAM_MIMEHEADER1_'PRCPID'.TMP
Mime-version: 1.0
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Message-ID: <xxxxxxxx.xxxxxxxx@OpenVMS>
Content-Disposition: inline
<html>
<head>
<style type="text/css">
A:link { color: #000000; text-decoration: none}
A:visited { color: #000000; text-decoration: none}
A:active { color: #000000; text-decoration: none}
A:hover { color: #000000; text-decoration: none}
.strapline { font-family: Verdana, Arial, Helvetica, sans-serif; font-
size: 10px; line-height: normal; font-weight: bold; color:#0}
pre { font-family: Times New Roman; font-size: 16; font-weight: bold;
color: #4F0000}
</style>
</head>
<body>
<table width="100%" border="0" cellpadding="0" cellspacing="0"
height="100">
<tr>
<td height="77" width="100%" align="center" bgcolor="#C6E1CC">
<table cellSpacing="0" cellPadding="0" width="100%">
<tbody>
<tr>
<td height="90" width="33%" valign="middle">
<p align="center"><a href="http://
www.thebookservice.co.uk" target="_blank"><img alt="TBS Logo, The Book
Service"
src="http://www.thebookservice.co.uk/automail_logos/tbslogo.gif"
border="0"></a></p>
</td>
<td class="strapline" valign="middle" align="right"
width="33%" bgColor="#c6e1cc">
<p align="center"><a href="http://
www.granthambookservices.co.uk/" target="_blank"><img alt="GBS Logo,
Grantham Boo"
src="http://www.thebookservice.co.uk/automail_logos/gbslogo.gif"
border="0"></a></p>
</td>
<td width="33%" bgColor="#c6e1cc" valign="middle">
<p align="center"> <a href="http://
www.booksattransworld.co.uk/" target="_blank"><img alt="Transworld
Logo"
src="http://www.thebookservice.co.uk/automail_logos/twlogo.gif"
border="0"></a></p>
</td>
</tr>
</tbody>
</table>
<p align='center'><b><font color='#1A1F64'>
THIS EMAIL WAS SENT BY AN AUTOMATED SYSTEM<br>
- PLEASE DO NOT REPLY TO THIS MESSAGE -</font></b></p>
<hr width='70%'>
<br>
$ CREATE SYS$TEMP:UAM_MIMEHEADER3_'PRCPID'.TMP
<p align='left' style="color: #0A260F">Please find your report or data
files attached.</p>
<p align='left' style="color: #0A260F">We hope that this report
reaches you in perfect condition. Should there be a
problem, please contact the I.T. Helpdesk on
<a href="mailto:help...@xxx.com"><font color="blue">help...@xxx.com</
font></a>
or via telephone on <b>+900</b> stating the nature of the problem.</
p>
<p align='center'><i><font color=red>If you no longer require this
report, please let us know</font></i>.</p>
<p align='left' style="color: #0A260F">Please remember that most
Random House Distribution reports are now
available in an electronic format. This means that your reports are
delivered <i>quicker</i>. Having access to the
data also means that you can manipulate the data yourself, to obtain
the
information that <i>you require</i>.</p>
<p align='left' style="color: #0A260F">If you are interested in this,
please contact the I.T. Helpdesk for more
information.</p>
<br>
<p align='left' style="text-decoration: underline"><b>Random House
I.T. Department</b><br></p>
<br>
<p align='left'><font size="2" face="Times New Roman"
color="#000000">Random House offers a 3<sup>rd</sup>
party distribution
service from 3 independent distribution sites; The Book Service
based
in North Essex, Grantham Book Services located in Lincolnshire and
Transworld situated in Northamptonshire.</font></p>
<font color='#C6E1CC'>
$ !
$ IF BODYTEXT .NES. ""
$ THEN
$ ! Create file for bodytext, so that it appears
in the middle of the body.
$ !
$ IF F$SEA(BODYTEXT,28) .NES. ""
$ THEN
$ ! Append the file if it exists
$ !
$ OPEN /WRITE HEADERFILE SYS
$TEMP:UAM_MIMEHEADER2_'PRCPID'.TMP
$ WRITE HEADERFILE "<div align='left'>"
$ WRITE HEADERFILE "<pre>"
$ CLOSE HEADERFILE
$ !
$ APPEND /LOG 'BODYTEXT' SYS
$TEMP:UAM_MIMEHEADER2_'PRCPID'.TMP
$ !
$ OPEN /APPEND HEADERFILE SYS
$TEMP:UAM_MIMEHEADER2_'PRCPID'.TMP
$ WRITE HEADERFILE "</pre>"
$ WRITE HEADERFILE "</div>"
$ WRITE HEADERFILE "<hr width='70%'>"
$ CLOSE HEADERFILE
$ ELSE
$ ! Create a file with the text in
$ !
$ OPEN /WRITE HEADERFILE SYS
$TEMP:UAM_MIMEHEADER2_'PRCPID'.TMP
$ WRITE HEADERFILE "<div align='left'>"
$ WRITE HEADERFILE "<pre>"
$ WRITE HEADERFILE "''BODYTEXT'"
$ WRITE HEADERFILE "</pre>"
$ WRITE HEADERFILE "</div>"
$ WRITE HEADERFILE "<hr width='70%'>"
$ CLOSE HEADERFILE
$ ENDIF
$ ENDIF
$ !
$ COPY /LOG SYS$TEMP:UAM_MIMEHEADER%_'PRCPID'.TMP; SYS
$TEMP:UAM_MIMEHEADER_'PRCPID'.TMP
$ !
$ @SYS$TEMP:UAM_MIMESCRIPT_'PRCPID'.TMP
$ !
$ SET DEF SYS$TEMP: ! Don't run MAIL in
[LIVE.DAT] as it can leave duff files sometimes
$ !
$ DEFINE TCPIP$SMTP_FROM "rep...@xxx.com (Random House IT
Dept.)"
$ MAIL /NOSIG SYS$TEMP:UAM_MIMEHEADER_'PRCPID'.TMP
"''EXPANDED_ADDRESS'" /SUBJECT="''SUBJECT'"
$ DEASS TCPIP$SMTP_FROM
$ !
$ IF F$SEA("SYS$TEMP:UAM_MIMESCRIPT_''PRCPID'.TMP;*",28) .NES.
"" THEN DELETE /LOG SYS$TEMP:UAM_MIMESCRIPT_'PRCPID'.TMP;*
$ IF F$SEA("SYS$TEMP:UAM_MIMEHEADER_''PRCPID'.TMP;*",28) .NES.
"" THEN DELETE /LOG SYS$TEMP:UAM_MIMEHEADER_'PRCPID'.TMP;*
$ !
I have already modified the sendmail script from openvms.org to generate a
"single" message per call, regardless of the number of recipients. What I
need now is a way to get the message from VMS to Exchange as a single
message so that our Exchange servers can journal the message properly. SFF
appears to send a message per recipient domain even though we're using the
alternate gateway in the SMTP configuration.
Mike.
"Rob" <ratk...@tbs-ltd.co.uk> wrote in message
news:c113a21b-0b36-4197...@o40g2000prn.googlegroups.com...
If you stop the SMTP queues, and then run your message against SFF, does
it generate multiple jobs into the queue or just one job ?
IF,
Good catch. Only a single message was queued. Apparently the split is
occurring in either our Exchange server or in the SMTP handler in VMS.
Mike.
You could easily trace the port to your SMTP server to see how VMS is
sending the message.
I take it sending all recipients in a BCC isn't an option to overcome
this?
Rob.
> You could easily trace the port to your SMTP server to see how VMS is
> sending the message.
$DEFINE/SYSTEM TCPIP$SMTP_SYMB_TRACE 1
$TCPIP STOP MAIL
$WAIT 00:00:30
$TCPIP START MAIL
The symbiont logfile will now contain the actual dialogue between itself
and remoce SMTP server, and you will clearly see the RCPT TO: commands
and will know if the VMS server is sending a copy of message to
multiple recipients in the same domain or whether it is sending one copy
per recipient.
Actually you should monitor your SMTP queues and make sure they're all
stopped before restarting mail. Although a 30 second wait maybe
enough, I've been bitten a couple of times by a system with 4 SMTP
queues where the last queue would not stop for nearly 75 seconds.
I'll try that this evening after everyone is off the system. I did try a
manual session where I telnetted to port 25 of the Exchange server and put
in multiple domains in the RCPT TO: fields and only a single message was
sent (and journelled).
Mike.
SYSTEM>mail
MAIL> send
To: m...@wakeassoc.com,obe...@alum.mit.edu,obe...@sprintmail.com
Subj: test 2 from VMS Mail program
Enter your message below. Press CTRL/Z when complete, or CTRL/C to quit:
Three addresses; work; public home; private home
Exit<Ctrl-Z>
MAIL> exit
Here's the log file:
%%%%%%%%%%%% 12-NOV-2008 20:21:46.27 %%%%%%%%%%%%
%TCPIP-I-SMTP_SYMBRUN, symbiont is running the queue TCPIP$SMTP_JAGUAR_01
recv buf=220 apollo.wakeassoc.com Microsoft ESMTP MAIL Service, Version:
6.0.3790.3959 ready at Wed, 12 Nov 2008 20:20:30 -0700 \0d\0a
send buf=HELO jaguar.wakeassoc.com\0d\0a
recv buf=250 apollo.wakeassoc.com Hello [...]\0d\0a
send buf=MAIL FROM:<sys...@wakeassoc.com>\0d\0a
recv buf=250 2.1.0 sys...@wakeassoc.com....Sender OK\0d\0a
send buf=RCPT TO:<M...@wakeassoc.com>\0d\0a
recv buf=250 2.1.5 M...@wakeassoc.com \0d\0a
send buf=DATA\0d\0a
recv buf=354 Start mail input; end with <CRLF>.<CRLF>\0d\0a
send buf=Date: Wed, 12 Nov 2008 20:22:07 -0700 (MST)\0d\0a
send buf=Message-Id: <0811122022...@wakeassoc.com>\0d\0a
send buf=From: sys...@wakeassoc.com\0d\0a
send buf=To: M...@wakeassoc.com, OBE...@alum.mit.edu,
OBE...@sprintmail.com\0d\0a
send buf=Subject: test 3\0d\0a
send buf=X-VMS-To: M...@WAKEASSOC.COM, OBE...@ALUM.MIT.EDU,
OBE...@SPRINTMAIL.COM\0d\0a
send buf=\0d\0a
send buf=three addresses to different domains\0d\0a
send buf=.\0d\0a
recv buf=250 2.6.0 <0811122022...@wakeassoc.com> Queued mail for
delivery\0d\0a
send buf=QUIT\0d\0a
recv buf=221 2.0.0 apollo.wakeassoc.com Service closing transmission
channel\0d\0a
recv buf=220 apollo.wakeassoc.com Microsoft ESMTP MAIL Service, Version:
6.0.3790.3959 ready at Wed, 12 Nov 2008 20:20:32 -0700 \0d\0a
send buf=HELO jaguar.wakeassoc.com\0d\0a
recv buf=250 apollo.wakeassoc.com Hello [...]\0d\0a
send buf=MAIL FROM:<sys...@wakeassoc.com>\0d\0a
recv buf=250 2.1.0 sys...@wakeassoc.com....Sender OK\0d\0a
send buf=RCPT TO:<OBE...@alum.mit.edu>\0d\0a
recv buf=250 2.1.5 OBE...@alum.mit.edu \0d\0a
send buf=DATA\0d\0a
recv buf=354 Start mail input; end with <CRLF>.<CRLF>\0d\0a
send buf=Date: Wed, 12 Nov 2008 20:22:07 -0700 (MST)\0d\0a
send buf=Message-Id: <0811122022...@wakeassoc.com>\0d\0a
send buf=From: sys...@wakeassoc.com\0d\0a
send buf=To: M...@wakeassoc.com, OBE...@alum.mit.edu,
OBE...@sprintmail.com\0d\0a
send buf=Subject: test 3\0d\0a
send buf=X-VMS-To: M...@WAKEASSOC.COM, OBE...@ALUM.MIT.EDU,
OBE...@SPRINTMAIL.COM\0d\0a
send buf=\0d\0a
send buf=three addresses to different domains\0d\0a
send buf=.\0d\0a
recv buf=250 2.6.0 <0811122022...@wakeassoc.com> Queued mail for
delivery\0d\0a
send buf=QUIT\0d\0a
recv buf=221 2.0.0 apollo.wakeassoc.com Service closing transmission
channel\0d\0a
recv buf=220 apollo.wakeassoc.com Microsoft ESMTP MAIL Service, Version:
6.0.3790.3959 ready at Wed, 12 Nov 2008 20:20:33 -0700 \0d\0a
send buf=HELO jaguar.wakeassoc.com\0d\0a
recv buf=250 apollo.wakeassoc.com Hello [...]\0d\0a
send buf=MAIL FROM:<sys...@wakeassoc.com>\0d\0a
recv buf=250 2.1.0 sys...@wakeassoc.com....Sender OK\0d\0a
send buf=RCPT TO:<OBE...@sprintmail.com>\0d\0a
recv buf=250 2.1.5 OBE...@sprintmail.com \0d\0a
send buf=DATA\0d\0a
recv buf=354 Start mail input; end with <CRLF>.<CRLF>\0d\0a
send buf=Date: Wed, 12 Nov 2008 20:22:07 -0700 (MST)\0d\0a
send buf=Message-Id: <0811122022...@wakeassoc.com>\0d\0a
send buf=From: sys...@wakeassoc.com\0d\0a
send buf=To: M...@wakeassoc.com, OBE...@alum.mit.edu,
OBE...@sprintmail.com\0d\0a
send buf=Subject: test 3\0d\0a
send buf=X-VMS-To: M...@WAKEASSOC.COM, OBE...@ALUM.MIT.EDU,
OBE...@SPRINTMAIL.COM\0d\0a
send buf=\0d\0a
send buf=three addresses to different domains\0d\0a
send buf=.\0d\0a
recv buf=250 2.6.0 <0811122022...@wakeassoc.com> Queued mail for
delivery\0d\0a
send buf=QUIT\0d\0a
recv buf=221 2.0.0 apollo.wakeassoc.com Service closing transmission
channel\0d\0a
%%%%%%%%%%%% 12-NOV-2008 20:23:00.55 %%%%%%%%%%%%
%TCPIP-I-SMTP_SYMBSTOP, symbiont is stopped
There is a message generated by VMS for each recipient mail domain. What I
need to do is have VMS send the entire message to all mail domains in the
address list in a single session. When I have tested multiple recipients in
a single domain, they are sent in a single message.
Mike.
> I'll try that this evening after everyone is off the system. I did try
> a manual session where I telnetted to port 25 of the Exchange server and
> put in multiple domains in the RCPT TO: fields and only a single message
> was sent (and journelled).
All on one line, or separate RCPT TO: lines?
(I don't think I ever tried, though.)
-- glen
You can only put a single address per RCPT TO:. You can enter multiple RCPT
TO lines. Take a look at the script and logs I received. It appears that
it's the SMPT symbiont that is splitting the message.
Mike.
> To: m...@wakeassoc.com,obe...@alum.mit.edu,obe...@sprintmail.com
Your test is not very good since all 3 recipients are on different SMTP
servers.
But you are right. If you have defined apollo.wakeassoc as a gateway
SMTP server (and it seems to be working since the message to all 3
recipients was sent to apollo), one would expect the message to go to
apollo once and let apollo distribute the copy 3 times to each different
domain.
You should try:
To: us...@domain1.com, us...@domain1.com, us...@hp.com
as well as:
To: us...@domain1.com, us...@domain1.com, us...@domain1.com
And see if it sends the message twice or 3 times in the first case, and
in second case, if it does send only one copy of message out.
if you send a message to an invalid domain name, do you get a
non-delivery notification from jaguar or from apollo ?
From the Exchange Message/Envelope Journal, I can see that when there are
multiple recipients in a domain, they all receive the message via a single
conversation. I can put a test together to demonstrate all to the same
domain and two to one domain with one to a different domain this morning.
I'll also post the SMTP configuration with those results this evening.
Mike.
> From the Exchange Message/Envelope Journal, I can see that when there are
> multiple recipients in a domain, they all receive the message via a single
> conversation.
This is normal. But you need to realise that it is technically
impossible to deliver to different domains with the same SMTP
conversation. TCPIP does not allow a single connection to connect to 2
hosts at the same time.
Understood - all SMTP conversations from the VMS system are going to a
single Exchange server, which then handles the routing and DNS lookups for
the recipient domains. We have a requirement to centrally journal all
emails that go in and out of the company and the easiest way to do this in
an Exchange environment is to route all the mail through the Exchange
servers and use message journaling.
Mike.
SYSTEM>define/system TCPIP$SMTP_SYMB_TRACE 1
SYSTEM>tcpip stop mail
SYSTEM>show queue tcpip$smtp*
Generic server queue TCPIP$SMTP_JAGUAR_00, stopped
Server queue TCPIP$SMTP_JAGUAR_01, stopped, on JAGUAR::, mounted form
DEFAULT
SYSTEM>tcpip start mail
SYSTEM>mail
MAIL> send
To: m...@wakeassoc.com,m...@wakeassoc.com,m...@wakeassoc.com
Subj: test 1
Enter your message below. Press CTRL/Z when complete, or CTRL/C to quit:
All three addresses in a single domain.
Exit
MAIL> exit
SYSTEM>
SYSTEM>
SYSTEM>
SYSTEM>
SYSTEM>mail
MAIL> send
To: m...@wakeassoc.com,m...@wakeassoc.com,obe...@alum.mit.edu
Subj: Test 2
Enter your message below. Press CTRL/Z when complete, or CTRL/C to quit:
Two addresses to wakeassoc.com. One address to alum.mit.edu
Exit
MAIL> exit
SYSTEM>dir tcpip$smtp_logfile.log
Directory SYS$SPECIFIC:[TCPIP$SMTP]
TCPIP$SMTP_LOGFILE.LOG;62 TCPIP$SMTP_LOGFILE.LOG;61
Total of 2 files.
SYSTEM>type tcpip$smtp_logfile.log
%%%%%%%%%%%% 13-NOV-2008 06:55:37.99 %%%%%%%%%%%%
%TCPIP-I-SMTP_LOGSUC, using log file
SYS$SPECIFIC:[TCPIP$SMTP]TCPIP$SMTP_LOGFILE.LOG
%%%%%%%%%%%% 13-NOV-2008 06:55:38.41 %%%%%%%%%%%%
%TCPIP-I-SMTP_SYMBRUN, symbiont is running the queue TCPIP$SMTP_JAGUAR_01
recv buf=220 apollo.wakeassoc.com Microsoft ESMTP MAIL Service, Version:
6.0.3790.3959 ready at Thu, 13 Nov 2008 06:54:36 -0700 \0d
\0a
send buf=HELO jaguar.wakeassoc.com\0d\0a
recv buf=250 apollo.wakeassoc.com Hello []\0d\0a
send buf=MAIL FROM:<sys...@wakeassoc.com>\0d\0a
recv buf=250 2.1.0 sys...@wakeassoc.com....Sender OK\0d\0a
send buf=RCPT TO:<M...@wakeassoc.com>\0d\0a
recv buf=250 2.1.5 M...@wakeassoc.com \0d\0a
send buf=RCPT TO:<M...@wakeassoc.com>\0d\0a
recv buf=250 2.1.5 M...@wakeassoc.com \0d\0a
send buf=RCPT TO:<M...@wakeassoc.com>\0d\0a
recv buf=250 2.1.5 M...@wakeassoc.com \0d\0a
send buf=DATA\0d\0a
recv buf=354 Start mail input; end with <CRLF>.<CRLF>\0d\0a
send buf=Date: Thu, 13 Nov 2008 06:55:55 -0700 (MST)\0d\0a
send buf=Message-Id: <0811130655...@wakeassoc.com>\0d\0a
send buf=From: sys...@wakeassoc.com\0d\0a
send buf=To: M...@wakeassoc.com, M...@wakeassoc.com, M...@wakeassoc.com\0d\0a
send buf=Subject: test 1\0d\0a
send buf=X-VMS-To:
M...@WAKEASSOC.COM,M...@WAKEASSOC.COM,M...@WAKEASSOC.COM\0d\0a
send buf=\0d\0a
send buf=All three addresses in a single domain.\0d\0a
send buf=.\0d\0a
recv buf=250 2.6.0 <0811130655...@wakeassoc.com> Queued mail for
delivery\0d\0a
send buf=QUIT\0d\0a
recv buf=221 2.0.0 apollo.wakeassoc.com Service closing transmission
channel\0d\0a
recv buf=220 apollo.wakeassoc.com Microsoft ESMTP MAIL Service, Version:
6.0.3790.3959 ready at Thu, 13 Nov 2008 06:55:56 -0700 \0d
\0a
send buf=HELO jaguar.wakeassoc.com\0d\0a
recv buf=250 apollo.wakeassoc.com Hello []\0d\0a
send buf=MAIL FROM:<sys...@wakeassoc.com>\0d\0a
recv buf=250 2.1.0 sys...@wakeassoc.com....Sender OK\0d\0a
send buf=RCPT TO:<M...@wakeassoc.com>\0d\0a
recv buf=250 2.1.5 M...@wakeassoc.com \0d\0a
send buf=RCPT TO:<M...@wakeassoc.com>\0d\0a
recv buf=250 2.1.5 M...@wakeassoc.com \0d\0a
send buf=DATA\0d\0a
recv buf=354 Start mail input; end with <CRLF>.<CRLF>\0d\0a
send buf=Date: Thu, 13 Nov 2008 06:57:04 -0700 (MST)\0d\0a
send buf=Message-Id: <0811130657...@wakeassoc.com>\0d\0a
send buf=From: sys...@wakeassoc.com\0d\0a
send buf=To: M...@wakeassoc.com, M...@wakeassoc.com, OBE...@alum.mit.edu\0d\0a
send buf=Subject: Test 2\0d\0a
send buf=X-VMS-To:
M...@WAKEASSOC.COM,M...@WAKEASSOC.COM,OBE...@ALUM.MIT.EDU\0d\0a
send buf=\0d\0a
send buf=Two addresses to wakeassoc.com. One address to alum.mit.edu\0d\0a
send buf=.\0d\0a
recv buf=250 2.6.0 <0811130657...@wakeassoc.com> Queued mail for
delivery\0d\0a
send buf=QUIT\0d\0a
recv buf=221 2.0.0 apollo.wakeassoc.com Service closing transmission
channel\0d\0a
recv buf=220 apollo.wakeassoc.com Microsoft ESMTP MAIL Service, Version:
6.0.3790.3959 ready at Thu, 13 Nov 2008 06:55:57 -0700 \0d
\0a
send buf=HELO jaguar.wakeassoc.com\0d\0a
recv buf=250 apollo.wakeassoc.com Hello []\0d\0a
send buf=MAIL FROM:<sys...@wakeassoc.com>\0d\0a
recv buf=250 2.1.0 sys...@wakeassoc.com....Sender OK\0d\0a
send buf=RCPT TO:<OBE...@alum.mit.edu>\0d\0a
recv buf=250 2.1.5 OBE...@alum.mit.edu \0d\0a
send buf=DATA\0d\0a
recv buf=354 Start mail input; end with <CRLF>.<CRLF>\0d\0a
send buf=Date: Thu, 13 Nov 2008 06:57:04 -0700 (MST)\0d\0a
send buf=Message-Id: <0811130657...@wakeassoc.com>\0d\0a
send buf=From: sys...@wakeassoc.com\0d\0a
send buf=To: M...@wakeassoc.com, M...@wakeassoc.com, OBE...@alum.mit.edu\0d\0a
send buf=Subject: Test 2\0d\0a
send buf=X-VMS-To:
M...@WAKEASSOC.COM,M...@WAKEASSOC.COM,OBE...@ALUM.MIT.EDU\0d\0a
send buf=\0d\0a
send buf=Two addresses to wakeassoc.com. One address to alum.mit.edu\0d\0a
send buf=.\0d\0a
recv buf=250 2.6.0 <0811130657...@wakeassoc.com> Queued mail for
delivery\0d\0a
send buf=QUIT\0d\0a
recv buf=221 2.0.0 apollo.wakeassoc.com Service closing transmission
channel\0d\0a
SYSTEM>deassign/system tcpip$smtp_symb_trace
SYSTEM>tcpip stop mail
SYSTEM>recal show
SYSTEM>show queue tcpip$smtp*
Generic server queue TCPIP$SMTP_JAGUAR_00, stopped
Server queue TCPIP$SMTP_JAGUAR_01, stopped, on JAGUAR::, mounted form
DEFAULT
SYSTEM>tcpip start mail
Here's the SMTP configuration.
SYSTEM>tcpip
TCPIP> show service smtp/perm/full
Service: SMTP
Port: 25 Protocol: TCP Address: 0.0.0.0
Inactivity: 5 User_name: TCPIP$SMTP Process: TCPIP$SMTP
Limit: 10
File: TCPIP$SYSTEM:TCPIP$SMTP_RECV_RUN.COM
Flags: Listen TCPIP IPv6
Socket Opts: Rcheck Scheck
Receive: 0 Send: 0
Log Opts: Acpt Actv Dactv Conn Error Exit Logi Logo Mdfy Rjct TimO Addr
File: SYS$SPECIFIC:[TCPIP$SMTP]TCPIP$SMTP_RECV_RUN.LOG
Security
Reject msg: not defined
Accept host: 0.0.0.0
Accept netw: 0.0.0.0
TCPIP> show config smtp/full
SMTP Configuration
Options
Initial interval: 0 00:30:00.00 Address_max: 16 EIGHT_BIT
Retry interval: 0 01:00:00.00 Hop_count_max: 16 RELAY
Maximum interval: 3 00:00:00.00 TOP_HEADERS
Timeout Initial Mail Receipt Data Terminate
Send: 5 5 5 3 10
Receive: 5
Alternate gateway: MAIL.WAKEASSOC.COM
General gateway: not defined
Substitute domain: HIDDEN, WAKEASSOC.COM
Zone: WAKEASSOC.COM
Postmaster: SYSTEM
Log file: SYS$SPECIFIC:[TCPIP$SMTP]TCPIP$SMTP_LOGFILE.LOG
Generic queue Queues Participating nodes
TCPIP$SMTP_JAGUAR_00 1 JAGUAR
TCPIP> exit
The server MAIL.Wakeassoc.com is a DNS A record that points to Apollo.
Mike.
IF,
You may have hit on the real issue here. Even though all the SMTP messages
are routing via a single Exchange Server, because of the underlying
assumption that different domains will require different connections, the
VMS SMTP Symbiont is splitting the messages before opening the connections.
In the Windows world, there is an option to use a "smart host", sending the
entire message with multiple domains to another SMTP server for relay, and
not route messages to separate domains individually. Is there an option to
do this with VMS?
Thanks for your assistance,
Mike Ober.
I would have to reread the doc on the gateway setup (which I have never
used). But I wouldn't be surprised if the VMS code just overrrides the
destination IP for the TCPIP connection (connecting to the gateway
instead of the real host).
Technically, I am not sure the the VMS software is "wrong", but it would
be nicer if it just forwarded the message to the gateway without really
parsing it.