Add User SMTP (ADDUSRSMTP)

The Add User SMTP (ADDUSRSMTP) command allows you to add a new entry to the local SMTP mailbox directory. The directory contains mailbox information for use with SMTP and POP3.

Restrictions:

Parameters

Keyword Description Choices Notes
USRPRF User profile Simple name Required, Positional 1
ALIAS SMTP mailbox alias Character value, *NONE Optional
DOMAIN SMTP domain alias Element list Optional
Element 1: Domain index *NONE, *DFT, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10
Element 2: Domain Name Character value, *DFT
SDDNAME SDD name compatibility Character value, *DFT Optional
SDDADR SDD address compatibility Character value, *DFT Optional

User profile (USRPRF)

Specifies the user profile to add to the local SMTP mailbox directory. When SMTP is using the local SMTP mailbox directory this is your absolute mailbox for your email address, and your login user profile for POP3.

name
Specifies the name of a valid user profile.

SMTP mailbox alias (ALIAS)

Specifies the alias to use as an alternate name for your mailbox in the local SMTP mailbox directory.

*NONE
No alias specified. The server will only use the user profile name as the mailbox.
character value
Specifies the alias for the mailbox. The characters specifed must be able to be converted from your Job CCSID to the ISO8859-1 charset. Up to 50 characters can be specified.

SMTP domain alias (DOMAIN)

Specifies the alias to use as an alternate name for your e-mail domain in the local SMTP mailbox directory.

Element 1: Domain index

*NONE
No domain alias specified. The server will only use the system's hostname and domain as your email domain.
*DFT
No domain alias specified. if domain alias name specified, it will be used.
1-10
domain alias index specified, the valid domain alias index can be got through CHGSMTPA by parameter ALIASDMN.

Element 2: Domain name

*DFT
No domain alias name specified. if domain alias index specified, it will be used, if both *DFT specified, No domain alias specified. The server will only use the system's hostname and domain as your email domain.
character value
Specifies the alias for the email-domain. The valid domain alias should be defined through CHGSMTPA by parameter ALIASDMN first.

SDD name compatibility (SDDNAME)

Specifies the System Distribution Directory (SDD) Name to use when interfacing this mailbox with the Mail Server Framework (MSF).

*DFT
The first 8 characters of the user profile identify the SDD user. The last few characters may be replaced with numbers if there are duplicate SDD names with the same SDD Address.
character Value
Specifies the SDD name to use. Up to 8 characters can be specified.

SDD address compatibility (SDDADR)

Specifies the System Distribution Directory (SDD) address to use when interfacing this mailbox with the Mail Server Framework (MSF).

*DFT
The first 8 characters of the system's host name are used.
character value
Specifies the SDD address to use. Up to 8 characters can be specified.

Examples

Example 1: Add User Profile to Local SMTP Directory

ADDUSRSMTP USRPRF(XXXX)

This command adds user profile XXXX to the local SMTP directory. All defaults are taken.

Example 2: Add User Profile to Local SMTP Directory and Specify an Alias Mailbox

ADDUSRSMTP USRPRF(XXXX) ALIAS(YYYY) DOMAIN(*DFT ZZZ.COM)

This command adds user profile XXXX to the local SMTP directory. This mailbox will accept both XXXX@HOSTNAME.DOMAIN and YYYY@ZZZ.COM. When using an API or command that automatically looks up the originator the originator email address will be YYYY@ZZZ.COM.

Example 3: Add User Profile to Local SMTP Directory and Specify SDD Compatibility

ADDUSRSMTP USRPRF(XXXX) SDDNAME(YYYY) SDDADR(ZZZZ)

This command adds user profile XXXX to the local SMTP directory. This mailbox will have the SDD address YYYY ZZZZ when seen in the Mail Server Framework (MSF). This overrides the default SDD compatibility setting which would have been XXXX (first 8 chars of the system HOSTNAME).

Error messages

*ESCAPE Messages

TCP5072
SMTP user &1 not added.
TCP90A8
*SECADM special authority required to do requested operation.
TCP9999
Internal system error in program &1.