Previous | Contents | Index |
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" |
You can enable carbon copying by using the SET CC-PROMPT command. Follow these guidelines when you specify destinations for the CC: prompt:
The following example sends mail to user AL and copies to users ROLLINS, BOND, and RICH:
MAIL> SEND To: al@airways CC: rollins,bond,rich@flight_central.com Subj: Directions for Night Flight |
In the following example, OpenVMS user BRODIE sends mail to UNIX user owens and copies soltau .
MAIL> SET CC_PROMPT MAIL> SEND To: owens@kezar CC: soltau@fgtoo.bonkers.org Subj: Goals for the Week Enter your message below. Press CTRL/Z when complete, or CTRL/C to quit: RC: Let's get a jump on the ball this time. We'll meet before the conference to organize. - J.B.[Ctrl/Z] |
You can forward any mail you receive to any internet host. Follow the
OpenVMS Mail conventions for forwarding mail.
5.9 Routing Mail with the UNIX-to-UNIX Copy Program
The UNIX-to-UNIX Copy Program (UUCP) lets a system copy files to and from other systems running UUCP. UUCP is usually used to copy files over a dialup connection (see Section 5.9.1).
To route mail using UUCP, ask your system manager to define the general gateway in the SMTP configuration.
To use SMTP to route mail to a system running UUCP, address the mail as follows:
MAIL> SEND To: SMTP%"user_name!uucp_host" |
The following example sends mail to geoffrey at host haldir :
$ MAIL MAIL> SEND To: SMTP%"geoffrey!haldir.of.com" |
Ask your system manager whether you need to specify a gateway host in mail addresses when you work on UUCP dialup lines.
The following example sends mail during a dialup connection by specifying a gateway host:
MAIL> SEND To: gateway_host!crandle!watts CC: billw,jenny,ibis Subj: Events Schedule |
Table 5-1 describes the management commands you can use to work with SMTP mail messages currently in a queue. Type these commands at the TCPIP> prompt.
Command | Function |
---|---|
SHOW MAIL | Displays information about mail messages queued to your process' user name. |
REMOVE MAIL | Deletes mail messages that are in a holding state in SMTP queues. |
SEND MAIL | Releases for delivery a mail message that is in a holding state. |
The following sections describe how to use these commands. For full
command descriptions, refer to the Compaq TCP/IP Services for OpenVMS Management Command Reference.
5.10.1 Displaying SMTP Mail Status Information
Use the SHOW MAIL command to display the following information about SMTP mail:
The following examples show how to display SMTP mail status information.
$ TCPIP SHOW MAIL /ENTRY=826 SMTP Mail Queue Entry 826 User: MARLOW File: _PLUTO$DKD0:[MARLOW]970207015114579_MARLOW.TCPIP_PLUTO;1 Status: Processing |
Option | Description |
---|---|
ALL | Shows failed, sent, and unsent messages. |
FAILED | Shows messages that could not be read for a particular recipient. |
SENT | Shows successful deliveries to a particular recipient. |
UNSENT | Shows messages that as yet are unsent. |
$ TCPIP TCPIP> SHOW MAIL /FULL /RECIPIENT=ALL SMTP Mail Queue Entry: 826 User: MARLOW File: _PLUTO$DKD0:[MARLOW]970207015114579_MARLOW.TCPIP_PLUTO;1 Status: Processing Message Destinations: Address: marlow@pluto Message Headers: Return Path: ??? SMTP Mail Queue Entry: 828 User: MARLOW File: _PLUTO$DKD0:[MARLOW]970207015114580_MARLOW.TCPIP_PLUTO;1 Status: Holding Message Destinations: Address: marlow@pluto Message Headers: Return Path: ??? |
The following examples show how to delete mail messages from SMTP queues using the TCP/IP command REMOVE (similar to the DCL command DELETE/ENTRY).
Use this command only to release mail messages that are being held; do not use this command to delete mail messages in the processing state. |
$ TCPIP REMOVE MAIL /ENTRY=828 _PLUTO$DKD0:[MARLOW]970207015114580_MARLOW.TCPIP_PLUTO;1? y |
$ TCPIP REMOVE MAIL /NOCONFIRM /COPY=[MARLOW.OLD_MAIL] |
The following example shows how to requeue an SMTP mail message that is currently holding, using the TCP/IP command SEND MAIL (similar to the DCL command ENTRY/RELEASE). You are prompted to confirm that you want the mail message requeued.
$ TCPIP SEND MAIL /ENTRY=828 _PLUTO$DKD0:[MARLOW]970207015114580_MARLOW.TCPIP_PLUTO;1? y |
With SMTP and the Post Office Protocol (POP) functionality, you can receive and send OpenVMS mail on your PC.
POP is a mail repository that accepts and stores your mail even when the PC is turned off. At your request, the POP server reads mail from your OpenVMS NEWMAIL folder, then moves the mail to your MAIL folder.
To send and receive mail on your PC, make sure the system manager has configured the POP server for use on your PC (the POP client system).
To set up your POP client account, use one of the following methods:
$ SET DEFAULT USER$DISK:[JONES.MAIL] $ CREATE POP_SECRET.DAT xyztancreff [Ctrl/Z] $ SET FILE/PROT=(s,w,g,o:rwed) POP_SECRET.DAT |
For more information about the POP process, including information about how POP builds SMTP-compliant mail headers, refer to the Compaq TCP/IP Services for OpenVMS Management guide.
Previous | Next | Contents | Index |