SMTP Mail

General VMS based discussions.
Post Reply
Message
Author
User avatar
issinoho
Site Admin
Posts: 188
Joined: Tue Feb 01, 2005 12:53 am
Location: Scotland
Contact:

SMTP Mail

#1 Post by issinoho »

Enable SMTP in the TCPIP configuration tool.

Code: Select all

@sys$manager:tcpip$config
Option 2 then Option 6 and accept all defaults.

Enable proper logging by creating sys$startup:tcpip$smtp_systartup.com and adding the following entries.

Code: Select all

$ DEFINE/SYSTEM TCPIP$SMTP_RECV_TRACE 1
$ DEFINE/SYSTEM TCPIP$SMTP_LOG_LEVEL 2
Restart TCPIP or reboot the server.

VMS Mail will automatically detect SMTP addresses and route them through the SMTP server.

Code: Select all

$ MAIL
MAIL> SEND
To: destination_user@destination_host
Viewing the logs.

Code: Select all

$ type/tail TCPIP$SMTP_COMMON:TCPIP$SMTP_<machine>.LOG

User avatar
issinoho
Site Admin
Posts: 188
Joined: Tue Feb 01, 2005 12:53 am
Location: Scotland
Contact:

Re: SMTP Mail

#2 Post by issinoho »

Code: Select all

$!
$!  Site defined SMTP options file.
$!
$!  This file should be in :
$!	  SYS$STARTUP:TCPIP$SMTP_SYSTARTUP.COM
$!
$!	This includes logical names documented in the TCPIP 5.1 manual
$!	as well as one addition documented in the 5.3 release notes.
$!
$!	By default, all commands are commented out. Only uncoment the ones
$! 	you need.
$!
$! TCPIP$SMTP_LOG_LEVEL value
$! 	 Writes diagnostic information to the log file. 
$!
$! 2	  Enables logging of all information when the symbiont starts up. 
$!        The Next Open File message is printed, giving the name of each 
$!        control file before processing begins. All mail headers and mail 
$!        recipients in a control file are logged after control file 
$!        processing is complete.
$!
$! 3	  Provides additional information about symbiont initialization and 
$!        activity during control file processing.
$!
$! 5	  Enables full symbiont diagnostics. For use only under the advice 
$!        of <company> customer support.
$!
$!DEFINE/SYSTEM TCPIP$SMTP_LOG_LEVEL 2
$!
$!---------------
$!
$!
$!   TCPIP$SMTP_NOSEY 
$!	  Used with TCPIP$SMTP_LOG_LEVEL to print the full subject RFC 
$!        headers information. If not defined, the header is logged as 
$!        SUBJECT:<omitted>.
$!
$!DEFINE/SYSTEM TCPIP$SMTP_NOSEY 1
$!
$!---------------
$!
$!
$!   TCPIP$SMTP_LOG_LINE_NUMBERS
$!	  Writes line numbers to SMTP logs. Includes the symbiont, 
$!        receiver, and MAIL$PROTOCOL (DEBUG.TXT) logs.
$!
$!DEFINE/SYSTEM  TCPIP$SMTP_LOG_LINE_NUMBERS 1
$!
$!---------------
$!
$!   TCPIP$SMTP_SYMB_TRACE
$!	  Logs all messages received from and transmitted to remote SMTP 
$!        servers. Used to trace the SMTP application layer protocol. Any 
$!        nonprinting characters or control characters that are sent or 
$!        received are printed as \n, where n is the hexadecimal value of 
$!        the character. For example, command lines and replies are 
$!        terminated with a <CR><LF> that appear in the log file as 
$!        follows:
$!
$!		 send buf=MAIL FROM:<jones@acme.com>\d\a
$!		 recv buf=250 <jones@acme.com>... Sender OK\d\a
$!		 In this message, \d\a is the <CR><LF>.
$!
$!DEFINE/SYSTEM TCPIP$SMTP_SYMB_TRACE 1
$!
$!----------------
$!
$!   TCPIP$SMTP_RECV_TRACE
$!	  Logs all messages received from and transmitted to remote SMTP 
$!        clients. Used to trace the SMTP application layer protocol. The 
$!        same conventions for logging nonprinting characters or control 
$!        characters are used. The logical name UCX$SMTP_PROTO_TRACE is 
$!        obsolete.
$!
$!DEFINE/SYSTEM TCPIP$SMTP_RECV_TRACE 1
$!
$!----------------
$!
$!   TCPIP$SMTP_RECV_DEBUG
$!	  Logs full diagnostics, similar to the TCPIP$SMTP_LOG_LEVEL 5 
$!        logical name. Obsoletes the logical name TCPIP$SMTP_PROTO_DEBUG.
$!
$!DEFINE/SYSTEM TCPIP$SMTP_RECV_DEBUG 1
$!
$!----------------
$!
$!
$!   TCPIP$SMTP_VMSMAIL_SEND
$!	  Instructs the MAIL$PROTOCOL process to log diagnostics to a file 
$!        named DEBUG.TXT in the default directory. (Used primarily by 
$!        <company>.)
$!
$!DEFINE/SYSTEM TCPIP$SMTP_VMSMAIL_SEND 1
$!
$!----------------
$!
$!
$!   TCPIP$SMTP_VMSMAIL_PARSE
$!
$!	  Causes the SMTP address parsing code to log diagnostics. The 
$!        symbiont, receiver, and MAIL$PROTOCOL code are sensitive to this 
$!        logical name, which is used primarily by <company>.
$!
$!DEFINE/SYSTEM TCPIP$SMTP_VMSMAIL_PARSE 1
$!
$!----------------
$!
$!   TCPIP$SMTP_SYMB_SNAPSHOT_BLOCKS n
$!	Enables snapshot logging for the symbiont. The value you assign 
$!      (n) specifies the size of the snapshot buffer in OpenVMS blocks 
$!      (1 block being 512 bytes).
$!
$!	 Use with TCPIP$SMTP_LOG_LEVEL.
$!
$!	When you enable snapshot buffering for the symbiont, it takes 
$!      some time for the symbiont process to stop when you enter a TCPIP 
$!      STOP MAIL command or you stop the queue. The delay depends on the 
$!      size of the snapshot buffer and the speed of the system and its 
$!      disks.
$!
$!DEFINE/SYSTEM TCPIP$SMTP_SYMB_SNAPSHOT_BLOCKS 200
$!
$!----------------
$!
$!    TCPIP$SMTP_RECV_SNAPSHOT_BLOCKS n
$!	Enables snapshot logging for the receiver. The value you assign 
$!      (n) specifies the size of the snapshot buffer in OpenVMS blocks 
$!      (1 block being 512 bytes). Use with TCPIP$SMTP_LOG_LEVEL. For 
$!      example, the following command line sets all of the receiver 
$!      diagnostics on and enables snapshot logging for the receiver with 
$!      a snapshot buffer of 200 blocks:
$!
$!DEFINE TCPIP$SMTP_RECV_SNAPSHOT_BLOCKS 200
$!
$!----------------
$!
$!   TCPIP$SMTP_NO_SUBS_DOMAIN_INBOUND
$!	Instructs SMTP not to consider mail that is sent to the 
$!      substitute domain as local mail. By default, SMTP recognizes mail 
$!      that is addressed to the substitute domain as local mail. 
$!
$!DEFINE/SYSTEM TCPIP$SMTP_NO_SUBS_DOMAIN_INBOUND 1
$!
$!---------------
$!
$!   TCPIP$SMTP_COMMON common-directory
$!	Specifies the default cluster common directory. By default, SMTP 
$!      looks for distribution list (.DIS) and local alias 
$!      (TCPIP$SMTP_LOCAL_ALIASES.TXT) files in the 
$!      SYS$SPECIFIC:[TCPIP$SMTP].
$!
$!	 You must:
$!
$!	Define this logical name before SMTP startup. Create the 
$!      directory with read (R) and write (W) access. Move the .DIS or 
$!      .TXT file, or both, to the directory. You can also use this 
$!      logical name as a search list.
$!
$!DEFINE/SYSTEM TCPIP$SMTP_COMMON SYS$SPECIFIC:[TCPIP$SMTP]
$!
$!---------------
$!
$!   TCPIP$SMTP_JACKET_LOCAL
$!	Instructs the symbiont to put the SMTP jacket on local-to-local 
$!      mail to provide sufficient information to the POP server.
$!
$!DEFINE/SYSTEM TCPIP$SMTP_JACKET_LOCAL 1
$!
$!---------------
$!
$!   TCPIP$SMTP_INBOUND_NOXVMS
$!	Instructs the symbiont not to use the RFC X-VMS-To header as the 
$!      text of the OpenVMS Mail To: header and the X-VMS-CC header as 
$!      the text of the CC: line. Instead, the RFC To: and CC: headers 
$!      are used. If the TCPIP$SMTP_ INBOUND_NOXVMS option is not 
$!      defined, the SMTP symbiont uses the text of the X-VMS-To and 
$!      X-VMS-CC headers for the mail header lines.
$!
$!DEFINE/SYSTEM TCPIP$SMTP_INBOUND_NOXVMS 1
$!
$!
$!---------------
$!
$!   TCPIP$SMTP_VMSDEF_TO
$!	Instructs the symbiont not to pass any text for the To: line to 
$!      OpenVMS callable mail when delivering local mail. This option 
$!      causes OpenVMS callable mail to use the default text for the To: 
$!      line (the user name). Overrides the TCPIP$SMTP_INBOUND_NOXVMS 
$!      option for the To: field.
$!
$!DEFINE/SYSTEM TCPIP$SMTP_VMSDEF_TO 1
$!
$!---------------
$!
$!
$!   TCPIP$SMTP_MTS_ALLIN1
$!	Used in older versions of TCP/IP Services. When relaying mail 
$!      from the SMTP environment to MTS (the message router), the 
$!      symbiont puts TCPIP$SMTP into the From: field. Otherwise, older 
$!      versions of MR/MRGATE send the mail back with a Return path too 
$!      complicated error. No longer needed if you are running MR and 
$!      MRGATE Versions 3.3A.
$!
$!DEFINE/SYSTEM TCPIP$SMTP_MTS_ALLIN1 1
$!
$!---------------
$!
$!
$!   TCPIP$SMTP_POSTMASTER_ALIAS user-name
$!	Enables mail bounced by the local host to appear to be from a 
$!      user name other than TCPIP$SMTP@node.domain. Specify the user 
$!      name portion of the address, not including the host name. For 
$!      example: 
$!
$!DEFINE/SYSTEM TCPIP$SMTP_POSTMASTER_ALIAS "Postmaster"
$!
$!---------------
$!
$!   TCPIP$SMTP_REWRITE_MTS_FROM
$!	If you have most or all of your users' mail forwarded to 
$!      ALL-IN-1, use this logical name to instruct the symbiont to parse 
$!      the user name out of the complex MTS address and append the local 
$!      host name instead. As a result, only a simple address is sent to 
$!      the Internet and any replies are relayed correctly to MTS.
$!
$!---------------
$!
$!   TCPIP$SMTP_ALTGATE_ALWAYS
$!	 Instructs the symbiont to send all mail that is destined for 
$!       another system (nonlocal mail) to the alternate gateway. Zone 
$!       check is not performed.
$!
$!DEFINE/SYSTEM TCPIP$SMTP_ALTGATE_ALWAYS 1
$!
$!---------------
$!
$!   TCPIP$SMTP_MX_IF_NOALTGATE
$!	 Instructs the symbiont to use MX records to connect to a host if 
$!       the alternate gateway cannot be reached.
$!
$!DEFINE/SYSTEM TCPIP$SMTP_MX_IF_NOALTGATE 1
$!
$!---------------
$!
$!   TCPIP$SMTP_NO_MX
$!	 Instructs the SMTP symbiont not to use MX records to route mail. 
$!       Attempts to translate the domain part of each SMTP address into a 
$!       host name and send the mail directly to that address. If the host 
$!       name does not translate to an address, the mail is returned. If 
$!       the host is not available, the mail is queued again.
$!
$!DEFINE/SYSTEM TCPIP$SMTP_NO_MX 1
$!
$!---------------
$!
$!
$!   TCPIP$SMTP_LOCAL_ALIAS_ONLY
$!	 Instructs the SMTP symbiont to use only the contents of the local 
$!       alias file for determining whether a mail message is local.
$!
$!DEFINE/SYSTEM TCPIP$SMTP_LOCAL_ALIAS_ONLY
$!
$!---------------
$!
$!
$!   TCPIP$SMTP_PROHIBIT_USER_HEADERS
$!
$!	 Disables outbound alias processing. This prevents the use of the 
$!       TCPIP$SMTP_FROM logical.
$!
$!DEFINE/SYSTEM TCPIP$SMTP_PROHIBIT_USER_HEADERS 1
$!
$!---------------
$!
$!   TCPIP$SMTP_SFF_REQUIRES_PRIV
$!	 This Boolean logical, if defined, requires users to set either 
$!       SYSPRV, BYPASS or OPER privileges before using the Send From File 
$!       (SFF) feature. 
$!
$!DEFINE/SYSTEM TCPIP$SMTP_SFF_REQUIRES_PRIV 1
$!
$!---------------
$!
$!   TCPIP$SMTP_MIME_HACK
$!	 When set, SMTP accepts 8BITMIME requests from SMTP clients, 
$!       preventing the clients from converting the message into a 7-bit 
$!       format. 
$!
$!DEFINE/SYSTEM TCPIP$SMTP_MIME_HACK 1
$!
$!---------------
$!
$!   TCPIP$SMTP_SUPPRESS_VERSION_INFO
$! 	 Tells the SMTP software not to reveal TCP/IP Services or OpenVMS 
$!       version information
$!
$!DEFINE /SYSTEM TCPIP$SMTP_SUPPRESS_VERSION_INFO 
$!
$!---------------
$!
$!    TCPIP$SMTP_FROM <domain name>
$!	 This is a logical individual users can define at the process level
$!       to override the domain name used in the From: and reply-to: Fields
$!
$!
$!***********************************************************
$!	 
$! Prepared by Jean-François Mezei,
$! 		Vaxination informatque
$!		Montréal, Canada
$!		vaxination@videotron.ca
$!
$! from text in the [Digital] TCPIP Services Management reference manual 
$!and release  notes from TCPIP 5.3
$!

Post Reply