DIRE – add name for SMTP

25 pts.
Tags:
AS/400
SMTP
Is there a way to automate changing the DIRE to add Name for SMTP?


Software/Hardware used:
IBMi OS,
0

Answer Wiki

Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

Discuss This Question: 8  Replies

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.
  • TheRealRaven
    What do you mean by "automated"? How are you intending that such a proc will know what to set for a user's SMTP address?
    36,430 pointsBadges:
    report
  • LauraKS
    The steps required to go through each user would be very time consuming as it requires you to first go into change mode then F19. I was hoping there was a command which could be used from a command line that could update rather then have to performs these steps.
    25 pointsBadges:
    report
  • TheRealRaven
    Update how? Please provide a specific example of what you need to do for an enrolled user. Much of it or all of it might be automatic by appropriate commands, but it's not clear what the current state of any enrolled user is and what you want the user definition to be changed to.

    Why does this need to be done at all?
    36,430 pointsBadges:
    report
  • pdraebel
    You can use programs to do a data base update of the System i directory files. This can be very tricky!!!
    Checkout the QUSRSYS/QAOK* files. I think the data you want to enter is in the QAOKP09A file.
    7,545 pointsBadges:
    report
  • TheRealRaven
    You definitely would not want to update the QAOK* database files directly. Use either the supplied command interfaces, e.g., CHGDIRE.
    36,430 pointsBadges:
    report
  • pdraebel
    Well I stated that updating the QAOK* files has its QUIRKS, but the CHGDIRE can be used in CL programming. Using the F14 key resulted in this command
    CHGDIRE USRID(User System)                              
            USRDFNFLD((SMTPAUSRID SMTP 'Mail.Prefix') (SMTPD
                      MN SMTP 'YourDomain'))
    Due to the names being in quotes one should first construct the Command String and than execute it through QCMDEXC or the likes.            
    7,545 pointsBadges:
    report
  • LauraKS

    I reviewed the command and I have access to a sandbox IBMi partition we can test this.

    Thanks for your help! 

    25 pointsBadges:
    report
  • TheRealRaven
    The command need not be processed by QCMDEXC simply because of embedded quotes. As long as variables are being used for the parameter values, embedded quotes aren't an issue.
    36,430 pointsBadges:
    report

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

Thanks! We'll email you when relevant content is added and updated.

Following

Share this item with your network: