[an error occurred while processing this directive]
HP OpenVMS Systems Documentation |
HP TCP/IP Services for OpenVMS
|
Previous | Contents | Index |
Unbinds a network device (BGx:) from a TELNET terminal device (TNAx:) that was previously bound with a BIND_SESSION command or qualifier.
UNBIND_SESSION network_device terminal_device
network_device
Required.Network device (BGx:) to unbind.
terminal_device
Required.Associated terminal device (TNAx:).
TELNET> SHOW DEVICE TNA458: BG2032: Temporary condor:4009 angel:23 TNA460: BG4739: Temporary condor:23 ler13.dec.com:1037 TNA463: Temporary TELNET> UNBIND_SESSION BG2032: TNA458: TELNET> |
This example displays the devices and unbinds one of them.
For exchanging electronic mail (e-mail) with users working on internet hosts, the TCP/IP Services product includes Simple Mail Transfer Protocol (SMTP), Post Office Protocol (POP) software, and Internet Message Access Protocol (IMAP).
The following table lists the SMTP electronic mail services you can perform and the sections that explain how to use them.
Capability | Section |
---|---|
Send mail to users on other internet hosts. | 5.2 |
Specify an SMTP outbound alias. | 5.3 |
Send mail to multiple users, with and without distribution lists. | 5.4 |
Read mail. | 5.5 |
Set a "personal" name. | 5.6 |
Create a carbon copy of your messages. | 5.7 |
Forward messages to other users. | 5.8 |
Forward files to other users. | 5.9 |
Use the UNIX-to-UNIX Copy Program (UUCP) to send mail. | 5.10 |
Get status information about SMTP mail. | 5.11.1 |
Remove holding-state mail messages from SMTP queues. | 5.11.2 |
Requeue holding-state mail messages for delivery. | 5.11.3 |
Use your PC mail software to receive and send messages. | 5.12 |
To use TCP/IP mail services, you need the following:
You can obtain online help for TCP/IP Services electronic mail by entering the following command:
$ HELP TCPIP_SERVICES SMTP |
To send mail to another internet host also running SMTP, simply invoke the OpenVMS Mail utility at the DCL prompt, type SEND at the MAIL> prompt, and enter the destination. A remote destination consists of the destination user name followed by an at sign (@) and the destination host (such as user_name@host). If the user is on your local host, omit the at sign and host name.
Specify the destination host as either a host name or an IP address. The following example sends mail to user MALCOLM at host PHILOS.BU.EDU:
$ MAIL MAIL> SEND To: malcolm@philos.bu.edu Subj: Final Exams |
The following example sends mail to user MALCOLM at a host with IP address 16.20.40.59. Note that the IP address can be enclosed within brackets.
$ MAIL MAIL> SEND To: malcolm@16.20.40.59 Subj: Final Exams |
The OpenVMS Mail utility automatically detects destination addresses that include fully qualified host names (one in which the node component includes a period [.], such as MALCOLM@PHILOS.BU.EDU) and sends the mail using the SMTP protocol, unless your system has been set up to use a different Internet protocol (by defining an alternate protocol with the MAIL$INTERNET_TRANSPORT logical name).
However, if you use a destination address that is not fully qualified --- that is, one in which the node component does not include a period (.) --- the Mail utility by default assumes the address is a DECnet address. For example, if you specified MALCOLM@PHILOS as the destination address, the Mail utility converts it to DECnet format (PHILOS::MALCOLM).
You can force the OpenVMS Mail utility to use a specific protocol by defining the MAIL$INTERNET_MODE logical name. This is useful in cases where a mail address, such as MALCOLM@PHILOS, can be valid for either SMTP or DECnet.
You can assign one of the following values to the MAIL$INTERNET_MODE logical name:
Define the logical name in your LOGIN.COM file. For example, the following definition causes the Mail utility to interpret any address that does not include a period in the node component of the specification as an Internet address:
$ DEFINE MAIL$INTERNET_MODE SMTP |
Another way to force the OpenVMS Mail utility to use SMTP is to include the SMTP% prefix immediately before the destination or IP address. Enclose the destination in quotation marks, as in the following example:
$ MAIL MAIL> SEND To: SMTP%"malcolm@philos" |
To prevent the OpenVMS Mail utility from automatically converting an unqualified Internet host name address to a DECnet format, you can do one of the following:
For more information about the OpenVMS Mail utility and how it
interprets addresses, see the appropriate OpenVMS documentation.
5.3 Specifying the SMTP Outbound Alias
SMTP allows you to specify an outbound alias that is applied to mail as
it is sent and also specifies the network address to which a reply is
sent.
5.3.1 Defining the Outbound Alias
To specify an outbound alias, define the TCPIP$SMTP_FROM logical to the text you want your From : header to be.
For example, you might define the logical as follows:
$ DEFINE TCPIP$SMTP_FROM "bill.smith@xxx.com" |
This command sets the outbound alias to the following:
From: bill.smith@xxx.com |
Define the TCPIP$SMTP_FROM logical before invoking OpenVMS Mail.
If you always want the header to be sent with the outbound alias, define the logical in your login command procedure (LOGIN.COM).
The outbound alias must be a valid address to which recipients can reply. If it is not valid, recipients cannot reply to you, and bounced mail messages are not returned to you.
If you do not define the TCPIP$SMTP_FROM logical, the From : address on your mail messages is the same one that you have always had.
Use only simple 7-bit ASCII characters in the value you assign to the TCPIP$SMTP_FROM logical. Do not use control characters.
The address you use to define TCPIP$SMTP_FROM must be an RFC 822 legal
SMTP address; that is, user@domain. If the address is not
interpreted correctly, the SMTP mailer ignores it and uses the
From
: address that it has constructed for you.
5.3.2 Appending the Personal Name String to the Outbound Alias
If you have defined an OpenVMS Mail personal name, the SMTP mailer appends that string to the outbound alias.
For example, a personal name might look like the following:
Bill L. Smith Phone: 123-456-8000 |
The TCPIP$SMTP_FROM logical is defined as follows:
$ DEFINE TCPIP$SMTP_FROM "bill.smith@xxx.com" |
The following example shows the resulting From : header:
From: bill.smith@xxx.com (Bill L. Smith Phone: 123-456-8000) |
The personal name is appended to the From : address only if both of the following conditions are met:
To use a different personal name than the one defined in your OpenVMS Mail personal name, define the personal name string as part of the TCPIP$SMTP_FROM logical in a parenthetical phrase after the user@domain address. Separate the address from the parenthetical phrase with a space. Do not use double quotation marks (" ") in the personal name.
For example, you can define the outbound alias logical as follows:
$ DEFINE TCPIP$SMTP_FROM - _$ "bill.smith@xxx.com (Phone: 123-456-8000 FAX: 123-456-9000)" |
Note the following restrictions:
"personal-name" <user@host> |
$ DEFINE TCPIP$SMTP_FROM """personal-name"" <bill.smith@xxx.com>" |
$ DEFINE TCPIP$SMTP_FROM "bill.smith@xxx.com (personal-name)" |
If you define TCPIP$SMTP_FROM without an SMTP domain string (the @domain portion of the address), SMTP appends the substitute domain name to the text you define. If you do not define a substitute domain name, the host name is used.
For example, the host is configured with a substitute domain name of x.com , and the TCPIP$SMTP_FROM logical is defined as follows:
$ DEFINE TCPIP$SMTP_FROM "bill.smith" |
In this case, the resulting address is as follows:
From: bill.smith@x.com |
However, if the host is not configured with a substitute domain and the host name is host.x.com , SMTP_FROM is defined as follows:
$ DEFINE TCPIP$SMTP_FROM "bill smith" |
In this case, the resulting address is as follows:
From: bill.smith@host.x.com |
To disable the modifications that TCPIP SMTP makes to the value you assign to TCPIP$SMTP_FROM (such as appending the OpenVMS personal name and @domain to a value with no @domain), include the string [VERBATIM].
For example:
$ DEFINE TCPIP$SMTP_FROM "[VERBATIM] bill.smith@xxx.com" |
The resulting address is as follows:
From: bill.smith@xxx.com |
The address you define is used for the
Return-Path
: mail header. The
Return-Path
: header is used to bounce undeliverable mail. Note that the version of
the text used for the
Return-Path
: header is stripped of comments (such as the personal name string) and
always has a domain string. For more information about the domain name
that is supplied, see Section 5.3.3.
5.3.6 X-VMS-True-From: Header
When the TCPIP$SMTP_FROM logical is used to set the
From:
header, the text that would normally have been used for the
From:
header is added to the headers as an
X-VMS-True-From
: header.
5.3.7 Managing Outbound Alias Processing
To disable outbound alias processing and use of the TCPIP$SMTP_FROM logical, define the following system logical:
$ DEFINE/SYSTEM TCPIP$SMTP_PROHIBIT_USER_HEADERS 1 |
To send mail to more than one user at a time, use the SEND command as discussed in Section 5.2, and type one of the following at the To: prompt:
When you type a list of names, use the following guidelines:
For example:
MAIL> SEND To: user1,user2,user3@host3,user4@host4 |
In the preceding example, user1 and user2 are located on the local OpenVMS system; user3 is located on host3; and user4 is located on host4.
MAIL> SEND To: user1@host5,user2@host5 |
In the preceding example, both user1 and user2 are located on remote host host5.
The following example sends the same mail to the following users:
MAIL> SEND MEETINGS.TXT To: NOWAK@CENTRAL.GREEN.ORG,BRENT@CENTRAL.GREEN.ORG, MILLER@BOSTON.GREEN.ORG Subj: SCHEDULE AND AGENDAS |
To send mail to multiple users by entering the name of a distribution list, follow these guidelines:
You can use two kinds of distribution lists:
MAIL> SEND To: @list_name |
MAIL> SEND To: list_name@host_where_list_resides |
The following examples show different methods of using distribution lists.
$ TYPE AGENCIES.DIS ! ! This is an OpenVMS distribution file named AGENCIES.DIS. ! SMTP%"audubon@ny" WILLIAMS@BELTWAY.ORG WILDLIFE@DALLAS.ORG jmuir@19.8.7.6 SEC@GP.INTER8.ORG BATES::SCOPE ! $ MAIL MAIL> SEND To: @AGENCIES.DIS Subj: NEWS TO WATCH FOR |
$ TYPE NATL_INTEREST.DIS green@19.8.7.6 wlf@19.7.6.5 arlo@19.4.3.2 free::monicaL wendell@biolo.ne.edu $ MAIL MAIL> SEND To: natl_interest@main_office.org Subj: News Items |
$ TYPE FINANCE_CENTERS.DIS ny_accts@23.9.7.4 sf_stocks@23.7.11.2 dallas_pfs@23.1.5.1 denver_accts@holbrook $ MAIL MAIL> SEND To: finance_centers@holbrook Subj: Portfolio Activity |
To read received mail, follow these steps:
In the following example, a user views the directory of unread new mail and selects message 3 to read.
$ MAIL You have 3 new messages. MAIL> DIRECTORY NEWMAIL # From Date Subject 1 GWAY::SMTP%"helenm@bhc 10-MAR-2001 Just Checking In 2 GWAY::SMTP%"mays@sfg 11-MAR-2001 Common Bases 3 CBIRD::SMTP%"seaway 12-MAR-2001 Cruises MAIL> 3 |
You can define a personal name string that is included at the top of the mail messages you send. To create a personal name with SMTP mail, use the SET PERSONAL_NAME command. Note the following restrictions:
The following commmand sets a personal name that includes quotation marks:
$ MAIL MAIL> SET PERSONAL_NAME "'Wealth' is in the mind" |
Previous | Next | Contents | Index |