Command reference / comm
CHGSMTPA
Change SMTP Attributes
Updates common SMTP settings such as retries, routing, relaying, and authentication. The reference identifies settings that take effect immediately and settings that require restarting servers.
Allowed environments: *ALL.
Positional parameters: 1.
Parameters
AUTOSTART
Autostart server
Choose whether to start the SMTP server automatically when TCP/IP is started by running the Start TCP/IP (STRTCP) command, or the Start TCP/IP Server (STRTCPSVR) command with SERVER(*AUTOSTART) specified. When SMTP is started by running the STRTCPSVR command, this parameter is ignored; the SMTP server is started regardless of the value of this parameter.
Allowed values:
*SAME, *YES, *NO
*SAME- Keep the current autostart value that was previously set; otherwise, *YES is used.
*YES- Automatically start the SMTP server.
*NO- Do not automatically start the SMTP server.
COLDSTART
Clear e-mail on start-up
Choose whether to delete e-mails for the current directory type when the SMTP server starts.
Allowed values:
*SAME, *YES, *NO
*SAME- Keep the current COLDSTART previously set; otherwise, *NO is used.
*YES- All e-mails will be deleted when the SMTP server is started. After a successful start and purge of all e-mails COLDSTART will be set to *NO.
*NO- All e-mails will be retained when the SMTP server is started.
DIRTYPE
E-mail directory type
Select which type of local e-mail directory to use.
Allowed values:
*SAME, *SMTP, *SMTPMSF, *SDD
*SAME- Keep the current DIRTYPE previously set; otherwise, *SMTP is used.
*SMTP- The server will use the SMTP local directory. Users for this directory are specified via ADDUSRSMTP.
*SMTPMSF- The server will use the SMTP local directory and use MSF(Mail Server Framework) to deliver local e-mail. Users for this directory are specified via ADDUSRSMTP.
*SDD- The server will use the SDD (System Distribution Directory). Users for this directory are specified via ADDDIRE.
RTYMIN
Retries by minute
Sets the number of attempts and the number of minutes between attempts for SMTP to distribute mail and to retry the remote name server. If the number specified is used and is not successful, the daily retries that are specified by the RTYHOUR parameter are attempted.
*SAME (number of retries)- Keep the current number of retries that was previously set; otherwise, 3 is used.
*DFT (number of retries)- The number of first-level distribution retries is set to the default of 3.
0-99 (number of retries)- Enter the number of retries to be attempted.
*SAME (time interval)- Keep the current number of minutes between retries that was previously set; otherwise, 30 is used.
*DFT (time interval)- The number of minutes between retries is set to the default of 30 minutes.
0-99 (time interval)- Enter the number of minutes between retries. If a number of retries is set, the time interval must be set to something other than 0. A recommended time interval is something greater than 5 minutes.
Elements in order
Number of retries
Number of retries
Suggested / special values:
*SAME, *DFT
Time interval
Time interval
Suggested / special values:
*SAME, *DFT
RTYDAY
Retries by day
Sets the number of attempts and the number of days between attempts for SMTP to distribute mail and to retry the remote name server. The RTYDAY parameter is used when the RTYMIN parameter was not successful. If the number of RTYDAY attempts is used and is not successful in distributing mail, a status distribution note is returned to the sender.
*SAME (number of retries)- Keep the current number of retries that was previously set; otherwise, 0 is used.
*DFT (number of retries)- The number of retries is set to the default of 0.
0-9 (number of retries)- Enter the number of retries to be attempted. If the number of retries is set, the time interval must be something other than 0.
*SAME (time interval)- Keep the current number of days between retries that was previously set; otherwise, 0 is used.
*DFT (time interval)- The number of days between retries is set to the default of 0 day.
0-9 (time interval)- Enter the number of days between retries. If the number of retries is set, the time interval must be something other than 0.
Elements in order
Number of retries
Number of retries
Suggested / special values:
*SAME, *DFT
Time interval
Time interval
Suggested / special values:
*SAME, *DFT
RTYHOUR
Retries by hour
Sets the number of attempts and the number of hours between attempts for SMTP to distribute mail and to retry the remote name server. The RTYHOUR parameter is used when the RTYMIN parameter was not successful.
*SAME (number of retries)- Keep the current number of retries that was previously set; otherwise, 0 is used.
*DFT (number of retries)- The number of retries is set to the default of 0.
0-99 (number of retries)- Enter the number of retries to be attempted. If the number of retries is set, the time interval must be something other than 0.
*SAME (time interval)- Keep the current number of hours between retries that was previously set; otherwise, 0 is used.
*DFT (time interval)- The number of hours between retries is set to the default of 0 minutes.
0-99 (time interval)- Enter the number of hours between retries. If the number of retries is set, the time interval must be something other than 0.
Elements in order
Number of retries
Number of retries
Suggested / special values:
*SAME, *DFT
Time interval
Time interval
Suggested / special values:
*SAME, *DFT
RTYRMTSVR
Retry remote name server
Controls whether SMTP should retry contacting the remote name server when attempts to contact it are unsuccessful. The RTYMIN and RTYHOUR/RTYDAY parameters are used to determine the frequency of retries. For backwards compatibility this will only be valid when the DIRTYPE parameter is set to *SDD.
Allowed values:
*SAME, *YES, *NO
*SAME- Keep the current value for the RTYRMTSVR parameter that was previously set; otherwise, *NO is used.
*YES- Try to contact the remote name server again.
*NO- Do not attempt to contact the remote name server again.
CCSID
Coded character set identifier
Sets the ASCII coded character set identifier (CCSID) that is used to map all single-byte character set (SBCS) data on outgoing mail. This value is also assumed to be the ASCII CCSID for mapping all SBCS data for incoming mail. Mapping is determined by the specified ASCII CCSID and the EBCDIC CCSID of the job.
Suggested / special values:
*SAME, *DFT
*SAME- Keep the current CCSID value that was previously set; otherwise, 00819 (ISO 8859-1 8-bit ASCII) is used.
*DFT- The CCSID value is 00819 (ISO 8859-1 8-bit ASCII).
1-65533- Enter the CCSID value to be used. This value is validated to ensure a valid SBCS CCSID was requested.
JOURNAL
Journal
Controls whether SMTP should write additional journal entries which show mail message transitions, events, and informational data to the Mail Server Framework journal (QUSRSYS/QZMF) as each mail item passes through SMTP.
Allowed values:
*SAME, *YES, *NO
*SAME- Keep the current value for the JOURNAL parameter that was previously set; otherwise, *NO is used.
*YES- Write additional journal entries as the mail passes throuth MSF. For DIRTYPE *SMTP no journal entries will be cut because MSF is not used.
*NO- Do not make any additional journal entries.
PCTRTGCHR
Percent routing character
Controls whether the SMTP Server should interpret the '%' character as an SMTP routing character, or allow the character to just pass through. Lotus Notes uses the '%' character as a default separator character for fully qualifying a Lotus Note domain name, ie. John_Smith%NotesDomain1%NotesDomain2@host.domain.
Allowed values:
*SAME, *YES, *NO
*SAME- Keep the current value for the PCTRTGCHR parameter that was previously set; otherwise, *NO is used.
*YES- Interpret the '%' character as an SMTP routing character.
*NO- Treat the '%' as just another character. Note: You should select *NO, if you use Lotus Notes, or you exchange mail with a Lotus Notes domain.
ETRNSVR
Support ETRN for server
Controls whether the SMTP server will support the Service Extension for Remote Message Queue Starting (ETRN) command from a remote host's client. ETRN is described in RFC 1985 SMTP Service Extension for Remote Message Queue Starting.
Allowed values:
*SAME, *NO, *YES
*SAME- Keep the current value for the ETRNSVR parameter that was previously set; otherwise, *NO is used.
*YES- The server will retry all its mail when an ETRN command is received from a host.domain that is in the accept ETRN list.
*NO- The server will respond with the "502 Command not implemented" when the ETRN command is received. Note: ETRN will not be included in the list of supported extensions when an EHLO response is sent to a querying client.
MIME8BIT
Support 8-bit MIME
Controls whether the 8BITMIME extension is honored by the SMTP server. The SMTP client will try to send the 8BITMIME message (for relayed mail cases), but will send a non-delivery notice to the originator if the destination's mail server does not support 8BITMIME. No conversion will be done.
Allowed values:
*SAME, *NO, *YES
*SAME- Use the same value for MIME8BIT that was previously set; otherwise, *NO is used.
*YES- The server will honor 8BITMIME mail transfers.
*NO- The server will not honor 8BITMIME transfers.
NFYDLVRY
Delivery status notification
Controls whether Delivery Status Notification (DSN) is supported and, if supported, the address to use in the "from" field in the delivery status notification.
Suggested / special values:
*SAME, *NONE
*SAME- Use the same value for NFYDLVRY that was previously set; otherwise, *NONE is used.
*NONE- Delivery Status Notification will not be supported. No "from" field address is provided.
character-value- Enter the SMTP address, in the format "userid@host.domain", that is used in the "from" field inside a delivery status notification. This should be a valid SMTP address. Up to 255 characters can be specified.
SBSD
Subsystem description
Sets the subsystem description of the subsystem where SMTP server jobs are to run. If the specified subsystem description does not exist, it is created. If the library does not exist where the description is to be created, the command will fail.
Suggested / special values:
*SAME, *DFT
*SAME- Use the same value for SBSD that was previously set; otherwise, *DFT is used.
*DFT- When *DFT is specified, the SMTP server jobs are submitted to job queue QSYSNOMAX in library QSYS and run in the QSYSWRK subsystem.
name (subsystem description)- Enter the name of the subsystem description that SMTP will use for its server jobs.
name (library)- Enter the name of the library to be searched.
Qualified parts (object, then library; write LIBRARY/OBJECT)
Subsystem description
Subsystem description
Library
Library
Suggested / special values:
*LIBL, *CURLIB
RBLSVR
Realtime Blackhole List
Enter the fully-qualified domain names of the servers to query that are running a Realtime Blackhole List (RBL). If no entry is found for the mail originator's address in the reject connections list, a query will be sent to each RBL server specified in this parameter before mail is accepted for delivery or relay.
Suggested / special values:
*SAME, *NONE
*SAME- Use the same value for RBLSVR that was previously set; otherwise, *NONE is used.
*NONE- No Realtime Blackhole List is used.
character-value- Enter the list of Realtime Blackhole List servers to be searched, up to three server names may be specified, separated by spaces and enclosed in apostrophes.
ALWRLY
Allow relayed mail
Choose whether to allow relay mail through this server. Relaying email is when the server detects that the email is not local and sends it to another server for delivery. The values of MAILROUTER and FWDMAILHUB only affect the destination to where the mail will be relayed, they do not control if a relay will take place.
Allowed values:
*SAME, *NONE, *ALL, *BOTH, *LIST, *NEAR, *POPWDW
*SAME- Use the same value for ALWRLY that was previously set; otherwise, *NONE is used.
*NONE- No mail will be relayed.
*ALL- All relayed mail will be allowed.
*BOTH- Allow both addresses listed in the relay messages list (*LIST) and addresses to recipients in the near domains (*NEAR) to be relayed.
*LIST- Addresses listed in the accept relay messages list will be relayed.
*NEAR- Relay mail addressed to any recipients in the near domain list. The domain list can be defined using IBM i Navigator SMTP properties pages or by using the ADDSMTPLE (Add SMTP List Entry) command and specifying *NEAR for the TYPE parameter.
*POPWDW- Relay mail for any client who has logged on to the Post Office Protocol (POP) server within the number of minutes specified by the parameter POP send mail window (POPWDW).
POPWDW
POP send mail window
Sets the number of minutes to allow a client to send mail, using the SMTP server, to addresses other than a local address. The time starts for each client when the client logs on to the POP server to receive mail.
Suggested / special values:
*SAME, *NONE
*SAME- The value does not change if it was previously set; otherwise *NONE is used.
*NONE- The clients will not be allowed to relay mail after logging on to the POP server.
15-65535- Enter the time interval, in minutes, after logging on to POP that the client can send relay mail using SMTP.
IFCDMN
Interface/domain association
Controls whether SMTP should associate domains with specific interfaces.
Allowed values:
*SAME, *NONE, *LIST
*SAME- Keep the current value for the IFCDMN parameter that was previously set; otherwise, *NONE is used.
*NONE- No domains will be associated with a specific interface. The local domain is associated with all interfaces.
*LIST- Use the association that is defined in the domain list. The domain list contains the IP address and the domain names that are associated with them.
FTRACN
Filter mail for virus
Allows mail to be scanned and either discarded or quarantined if a set of conditions are met. These conditions are:
Allowed values:
*SAME, *NONE, *KEEP, *DISCARD
*SAME- Use the same value for FTRACN that was previously set; otherwise, *NONE is used.
*NONE- No comparison will be made.
*KEEP- Keep this message and move it to '/qtcptmm/ftrfiles' but do not send it if the comparison is made.
*DISCARD- Discard this message if a comparison is made.
OVRRJTCNNL
Override reject connect list
Controls whether the SMTP server will support a POP-before-mail authorization to override the reject connection list.
Allowed values:
*SAME, *NO, *YES
*SAME- Keep the current value for the OVRRJTCNNL parameter that was previously set; otherwise, *NO is used.
*YES- If the user is already logged on via POP, he is authorized to the server even if the userid is on the reject connection list.
*NO- The server will not authorize the user if he is on the reject connection list.
ALWBARELF
Allow bare line feed
Controls whether the SMTP server will support bare linefeed (LF) instead of carriage return and linefeed (CRLF).
Allowed values:
*SAME, *NO, *YES
*SAME- Keep the current value for the ALWBARELF parameter that was previously set; otherwise, *YES is used.
*YES- The server will accept emails that contains either linefeed (LF) or carriage return and linefeed (CRLF). Bare linefeed is defined in RFC 2821. Setting this parameter to *YES will enforce this definition.
*NO- The server will accept email sent with carriage return and linefeed (CRLF). The server will reject email sent with only linefeed (LF).
VFYID
Verify identification
Controls whether the SMTP server will verify whether the user is in the specified email directory for local delivery. The directory type is specified by the DIRTYPE keyword.
Allowed values:
*SAME, *NO, *YES
*SAME- Keep the current value for the VFYID parameter that was previously set; otherwise, *NO is used.
*NO- The server will permit any user to logon to SMTP.
*YES- The server will only permit users on the authorized list to logon to SMTP.
ALWAUTH
Allow authentication
Controls whether the SMTP server will support transport layer security (TLS) and secure socket layer (SSL), and when authentication of the user will occur. If *RELAY or *LCLRLY is specified or in effect, the value specified for the Allow relayed mail (ALWRLY) parameter is ignored.
Allowed values:
*SAME, *RELAY, *LCLRLY, *ANONYM, *NONE
*SAME- Keep the current value for the ALWAUTH parameter that was previously set; otherwise, *NONE is used.
*NONE- The server will not use TLS/SSL and no authentication will be done.
*RELAY- The server will allow relay mail through this server. The server will use TLS/SSL and authenticate only the relay.
*LCLRLY- The server will allow relay mail through this server. The server will use TLS/SSL and authenticate it locally and when using the relay.
*ANONYM- The server will use the Allow relayed mail (ALWRLY) parameter to determine whether to allow relay mail through this server. The server will use TLS/SSL and won't do authentication either in relay or local.
VFYMSFMSG
Verify MSF messages
Controls whether the SMTP server will allow the SMTP mail server framework (MSF) snap-ins functions to reject an email that is not verified. For backwards compatibility this will only be valid when the ALWAUTH parameter is set to *LCLRLY.
Allowed values:
*SAME, *YES, *NO
*SAME- Keep the current value for the VFYMSFMSG parameter that was previously set; otherwise, *YES is used.
*YES- The server will reject unverified MSF messages.
*NO- The server will process all MSF messages.
VFYFROMUSR
Verify from user
Controls whether the SMTP server will verify the Mail From: address to see if the user is in the directory specified by the DIRTYPE keyword and if the email address matches. If there isn't a match, and *ALL or *LIST is specified or in effect for this parameter, the user will be rejected.
Allowed values:
*SAME, *ALL, *LIST, *NONE
*SAME- Keep the current value for the VFYFROMUSR parameter that was previously set; otherwise, *ALL is used.
*ALL- Verification will be done on all users.
*NONE- No verification of the users will be done.
*LIST- The server will only verify users that are not on the accept list. The accept list is defined by the ADDSMTPLE TYPE(*ACCEPT) CL command.
FWDHUBSVR
Forwarding mailhub server
Sets domain name of the SMTP server that this SMTP server should forward all non-local emails. This makes this SMTP server behave like a mailhub. If you do not want the mail forwarded, you must specify *NONE.
Suggested / special values:
*SAME, *NONE
*SAME- Keep the current mailhub previously set; otherwise, *NONE is used.
*NONE- No mail will be forwarded to another SMTP server without resolving the email address of the remote recipient.
character-value- Enter the fully qualified mail exchanger domain name of the SMTP server that non-local mail on the local system is to take first.
AUTOADD
Automatic registration
Specifies, for incoming mail, whether the remote user ID and address are automatically added to the system directory and, if necessary, to an alias table. This enables the local user to respond to the mail without first entering the necessary data into the directory and the alias table.
Allowed values:
*SAME, *NO, *YES
*SAME- Keep the current automatic registration value that was previously set; otherwise, *NO is used.
*NO- Do not automatically add remote users into the system directory and the alias table.
*YES- Automatically add remote users into the system directory and the alias table.
USRIDPFX
User ID prefix
Sets the 3-character prefix that is to be used with the generated 5-digit number that together make up the SNADS user ID. The SNADS user ID is automatically added to the system directory and the alias table. This parameter takes effect only if the AUTOADD parameter is set to *YES.
Suggested / special values:
*SAME, *DFT
*SAME- Keep the current user ID prefix value that was previously set; otherwise, QSM is used.
*DFT- The 3-character user ID prefix is set to the default of QSM.
communications-name- Enter the 3-character user ID prefix to be used.
ADDRESS
Address
Sets the SNADS address to be generated when remote users are to be automatically added to the system directory and the alias table. This parameter takes effect only if the AUTOADD parameter is set to *YES. For backwards compatibility this will only be valid when the DIRTYPE parameter is set to *SDD.
Suggested / special values:
*SAME, *DFT
*SAME- Keep the current address value that was previously set; otherwise, QSMRMTAD is used.
*DFT- The SNADS address to be automatically added is the default of QSMRMTAD.
communications-name- Enter the SNADS address to be automatically added to the system directory and the alias table. Up to 8 characters can be specified.
SYSNAME
System name
Sets the name that SNADS uses to route mail to SMTP. This name should match the distribution routing specified when SMTP was configured. This parameter takes effect only if the AUTOADD parameter is set to *YES. For backwards compatibility this will only be valid when the DIRTYPE parameter is set to *SDD.
Suggested / special values:
*SAME, *DFT
*SAME- Keep the current system name value that was previously set; otherwise, TCPIP is used.
*DFT- SNADS uses the default system name of TCPIP to route mail to SMTP.
character-value- Enter the system name to be used by SNADS to route mail to SMTP. Up to 8 characters can be specified.
TBLTYPE
Alias table type
Sets the type of SMTP alias table to be updated with the remote users information if remote users are to be automatically added to the system directory. This parameter takes effect only if the AUTOADD parameter is set to *YES. For backwards compatibility this will only be valid when the DIRTYPE parameter is set to *SDD.
Allowed values:
*SAME, *SYSTEM, *PERSONAL
*SAME- Keep the current table type value that was previously set; otherwise, *SYSTEM is used.
*SYSTEM- Update the SMTP system alias table with the remote user information.
*PERSONAL- Update the SMTP personal alias table for the local user with the remote user information.
USRIDDELIM
User ID delimiter
Sets the single character delimiter to be used to separate parts of the SMTP user ID. All subsequent entries in the system and personal alias tables use this new character. The special characters must be enclosed in apostrophes. For backwards compatibility this will only be valid when the DIRTYPE parameter is set to *SDD.
Allowed values:
*SAME, *DFT, ?, =, ., &, $, #, /, +, _, -, *, "
*SAME- Keep the current user ID delimiter value that was previously set; otherwise, a question mark ('?') is used.
*DFT- The single character delimiter is the question mark (?).
delimiter-character- The single character delimiter to be used to separate parts for the SMTP user ID.
MAILROUTER
Mail router
Sets that a mail router should be used when SMTP cannot find the name and address of the recipient in the system or personal alias tables or when SMTP is not able to resolve the address of the recipient. The mail router specified is a server that does know the address of the recipient. Note: When MAILROUTER(*NONE) is defined, then the FIREWALL parameter will be ignored by the SMTP server.
Suggested / special values:
*SAME, *NONE
*SAME- Keep the current mail router previously set; otherwise, *NONE is used.
*NONE- No mail router is used.
character-value- Enter the route that outgoing mail on the local system is to take first. Up to 256 characters can be specified.
TBLSMTPOUT
Outgoing EBCDIC/ASCII table
Sets the outgoing mapping table used by the SMTP client to map outgoing mail from EBCDIC to ASCII.
Suggested / special values:
*SAME, *CCSID, *DFT
*SAME- The TBLSMTPOUT value does not change if it was previously set; otherwise, *CCSID is used.
*CCSID- The CCSID parameter is used to determine outgoing mapping.
*DFT- The CCSID parameter is used to determine outgoing mapping.
name (outgoing ebcdic/ascii table)- Enter the name of the outgoing mapping table.
*LIBL- All libraries in the user and system portions of the job's library list are searched until the first match is found.
*CURLIB- Look in the current library, falling back to QGPL.
name (library)- Enter the name of the library to be searched.
Elements in order
Outgoing EBCDIC/ASCII table
Outgoing EBCDIC/ASCII table
Qualified parts (object, then library; write LIBRARY/OBJECT)
Outgoing EBCDIC/ASCII table
Outgoing EBCDIC/ASCII table
Library
Library
Suggested / special values:
*LIBL, *CURLIB
TBLSMTPIN
Incoming ASCII/EBCDIC table
Sets the incoming mapping table used by the SMTP server to map incoming data from ASCII to EBCDIC.
Suggested / special values:
*SAME, *CCSID, *DFT
*SAME- The TBLSMTPIN value does not change if it was previously set; otherwise, *CCSID is used.
*CCSID- The CCSID parameter is used to determine incoming mapping.
*DFT- The CCSID parameter is used to determine incoming mapping.
name (outgoing ebcdic/ascii table)- Enter the name of the incoming mapping table.
*LIBL- All libraries in the user and system portions of the job's library list are searched until the first match is found.
*CURLIB- Look in the current library, falling back to QGPL.
name (library)- Enter the name of the library to be searched.
Elements in order
Incoming ASCII/EBCDIC table
Incoming ASCII/EBCDIC table
Qualified parts (object, then library; write LIBRARY/OBJECT)
Incoming ASCII/EBCDIC table
Incoming ASCII/EBCDIC table
Library
Library
Suggested / special values:
*LIBL, *CURLIB
FIREWALL
Firewall
Controls whether outbound mail, destined for a host in a remote domain which didn't resolve, should be routed to the configured mail router to get through the network's firewall. Note: When MAILROUTER(*NONE) is defined, then the FIREWALL parameter will be ignored by the SMTP server.
Allowed values:
*SAME, *YES, *NO
*SAME- Keep the current firewall value that was previously set; otherwise, *NO is used.
*YES- Route the mail to the mail router machine, if it is for a host that is outside the system's domain and the domain did not resolve.
*NO- Just send the mail to the recipient's host machine.
ALLMAILMSF
Process all mail through MSF
Controls whether the SMTP server should process all mail that it receives, even mail that is not addressed to the IBM i that the server is running on, and pass it into the Mail Server Framework. For backwards compatibility this will only be valid when the DIRTYPE parameter is set to *SDD.
Allowed values:
*SAME, *YES, *NO
*SAME- Keep the current value for the ALLMAILMSF parameter that was previously set; otherwise, *NO is used.
*YES- Pass all mail that the SMTP Server receives into the Mail Server Framework.
*NO- Only pass mail into the Mail Server Framework if it is addressed to the IBM i the server is running on.
DIALSCD
Dial-up scheduler
Determines if the SMTP scheduler should be started to handle dial-up connections. The scheduler is started as a separate SMTP job. An initial connection is first made using the communications profile to establish a Point-to-Point Protocol (PPP) link. The waiting mail is sent, then the job sleeps for the time interval specified.
Suggested / special values:
*SAME, *NO
*NO- Do not start the SMTP scheduler when the SMTP server is started. If *NO is specified, values for the configuration profile name and the time interval are ignored.
*SAME (start with smtp server)- Keep the current requested use of the scheduler that was previously set; otherwise, *NO is used.
*YES- Start the SMTP scheduler when the SMTP server is started. If *YES is specified, the configuration profile name (element 2) must be specified on this invocation or a previous invocation of the command.
*SAME (configuration profile)- Keep the current requested configuration profile that was previously entered.
name- Enter the name of the configuration profile (PPP or SLIP connection profile) to be used by the scheduler.
*SAME (connection time interval)- Keep the current requested time interval that was previously set; otherwise, 30 minutes is used.
*NONE- No retries will be performed.
1-1440- Enter the number of minutes between connection attempts. This time measurement begins when the scheduler sees that the connection has been successful or receives a failure indication other that the profile not existing.
Elements in order
Start with SMTP server
Start with SMTP server
Suggested / special values:
*SAME, *YES
Configuration profile
Configuration profile
Suggested / special values:
*SAME
Connection time interval
Connection time interval
Suggested / special values:
*SAME, *NONE
ETRNCLT
Support ETRN for client
Controls whether the Service Extension for Remote Message Queue Starting (ETRN) command will be issued to an internet service provider's (ISP's) incoming mail server when a dial-out connection is made. The connection's profile is the one defined in the DIALSCD parameter. ETRN is described in RFC 1985 SMTP Service Extension for Remote Message Queue Starting.
Suggested / special values:
*SAME, *NO
*NO- Do not enable the client's ETRN. If *NO is specified, values for address of incoming mail server and mail domain name are ignored.
*SAME (enable client etrn)- Keep the current requested use of the client's ETRN that was previously set; otherwise, *NO is used.
*YES- The SMTP job will make an SMTP connection to the Internet Service's provider incoming mail server's IP address. Once a successful connection is received, the ETRN command will be sent to that server.
*SAME (incoming mail server address)- Keep the current configured internet address that was previously entered.
character-value (incoming mail server address)- Enter the address of the ISP's incoming mail server.
*SAME (mail domain name)- Keep the current configured mail domain name that was previously entered.
character-value (mail domain name)- Enter the name of the host.domain that the ISP provides mail storage service for on behalf of this IBM i system.
Elements in order
Enable client ETRN
Enable client ETRN
Suggested / special values:
*SAME, *YES
Incoming mail server address
Incoming mail server address
Suggested / special values:
*SAME
Mail domain name
Mail domain name
Suggested / special values:
*SAME
ALWIMPSSL
Allow e-mail over implicit SSL
Choose whether to listen on the SMTP implicit SSL port. The port number will be acquired from the system services table the default port is 465. SSL is always required over this port, and the SSL handshake is expected to be done immediately after connect.
Allowed values:
*SAME, *YES, *NO
*SAME- Keep the current ALWIMPSSL previously set; otherwise, *NO is used.
*YES- The SMTP server will listen on the implicit SMTP SSL port.
*NO- The SMTP server will not listen on the implicit SMTP SSL port.
MAXINEMM
Max incoming e-mail messages
Sets the maximum number of incoming e-mail messages to process at one time. For backwards compatibility this will only be valid when the DIRTYPE parameter is set to *SMTP or *SMTPMSF.
Suggested / special values:
*SAME, *DFT
*SAME- Keep the current MAXINEMM previously set; otherwise, *DFT is used.
*DFT- The SMTP server will not be constrained and will process as many e-mail messages as system resources allow.
1-1240000- Enter the maximum concurrent email messages to process at a single time, may not be able to be reached if constrained by system resources.
MAXOUTEMM
Max outgoing e-mail messages
Sets the maximum number of outgoing e-mail messages to process at one time. For backwards compatibility this will only be valid when the DIRTYPE parameter is set to *SMTP or *SMTPMSF.
Suggested / special values:
*SAME, *DFT
*SAME- Keep the current MAXOUTEMM previously set; otherwise, *DFT is used.
*DFT- The SMTP server will not be constrained and will process as many e-mail messages as system resources allow.
1-1240000- Enter the maximum concurrent email messages to process at a single time, may not be able to be reached if constrained by system resources.
KEEPUNTIL
Keep until
Sets the length of time to retain e-mail tracking information. For backwards compatibility this will only be valid when the DIRTYPE parameter is set to *SMTP or *SMTPMSF.
*SAME (successful final state)- Keep the current KEEPUNTIL for emails in successful final state previously set; otherwise, *DFT is used.
*DFT (successful final state)- The SMTP server will not retain any e-mail tracking information after the e-mail has been put into successful final state.
1-1240000 (successful final state)- Enter the maximum number of seconds to retain e-mail tracking information after the e-mail has been put into successful final state.
*SAME (unsuccessful final state)- Keep the current KEEPUNTIL for emails in unsuccessful final state previously set; otherwise, *DFT is used.
*DFT (unsuccessful final state)- The SMTP server will not retain any e-mail tracking information after the e-mail has been put into unsuccessful final state.
1-1240000 (unsuccessful final state)- Enter the maximum number of seconds to retain e-mail tracking information after the e-mail has been put into unsuccessful final state.
Elements in order
Successful final state
Successful final state
Suggested / special values:
*SAME, *DFT
Unsuccessful final state
Unsuccessful final state
Suggested / special values:
*SAME, *DFT
MAXEMMSIZE
Maximum e-mail message size
Sets the maximum size of an email message to be accepted. For backwards compatibility this will only be valid when the DIRTYPE parameter is set to *SMTP or *SMTPMSF.
Suggested / special values:
*SAME, *DFT
*SAME- Keep the current MAXEMMSIZE previously set; otherwise, *DFT is used.
*DFT- The SMTP server will accept e-mail messages up to 10 megabytes in size.
1000-2000000- Enter the maximum size of an e-mail message to be accepted in kilobytes.
ALIASDMN
SMTP domain alias
Sets the enabled aliases for the email domain, if the SMTP user also specified the alias, alias address should be the preferred originator email address.
Suggested / special values:
*SAME, *NONE
*SAME- Keep the current ALIASDMN previously set; otherwise, *NONE is used.
*NONE- The SMTP server will not use alias for the email domain.
character-value- Sets the alias for the email domain. The characters specified must be upper or lower case latin characters (A-Z, a-z), digits(0-9), or underscore, period, or -. Up to 255 characters can be specified.
OAUTH
OAuth setup
Sets the OAuth 2.0 provider configuration used for SMTP authentication.
*SAME (path to credentials)- Keep the current path to credentials previously set; otherwise, *NONE is used.
*NONE- No OAuth provider is configured. Traditional authentication methods are used.
path-name- Enter the path to the OAuth provider credentials file in the IFS. The file must contain the provider-specific authentication parameters in JSON format. The path can be up to 500 characters.
*SAME (set as active provider)- Keep the current path to credentials previously set.
*ENABLE- The OAuth provider specified in the credentials file will be set as the active provider for SMTP authentication. The SMTP server will use OAuth 2.0 authentication for outbound connections.
*DELETE- The OAuth provider configuration will be removed. The credentials file specified in Element 1 will no longer be used for SMTP authentication.
Elements in order
Credentials file path
Credentials file path
Suggested / special values:
*SAME, *NONE
Active
Active
Suggested / special values:
*SAME, *ENABLE, *DELETE
Examples
CHGSMTPA ALWRLY(*POPWDW) POPWDW(120)
Changes the SMTP attributes to allow a POP client to send mail using the local SMTP server to any remote address for 2 hours (120 minutes) after logging on to the POP server to check mail.
CHGSMTPA ALWRLY(*LIST)
Changes the SMTP attributes to allow clients using IP address on a list to send relay mail.
CHGSMTPA ALWAUTH(*RELAY)
Changes the SMTP attributes to authenticate the SMTP relay prior to accepting email forwarded from that relay.
CHGSMTPA VFYFROMUSR(*LIST)
Changes the SMTP attributes to require all emails not in the list defined in the ADDSMTPLE *ACCEPT CL command to have the username verified.
CHGSMTPA OAUTH('/tmp/google.json' *ENABLE)
Updates the SMTP attributes to use the specified Gmail OAuth credentials file and enables OAuth authentication for outbound SMTP connections.
CHGSMTPA OAUTH(*NONE *DELETE)
Removes all stored OAuth credential information and clears any OAuth-related configuration from the SMTP attributes.
CHGSMTPA OAUTH(*SAME *SAME)
Keeps the existing OAuth credentials and activation state unchanged, making no modifications to the SMTP OAuth configuration.
Generated from os/cl/catalog/CHGSMTPA.json and os/cl/help/CHGSMTPA.json.