0 pts.
 WRKNAMSMTP updating from CL
I am sure that this question has been asked many times before but have never seen any answers. Since there is no UPDNAMSMTP command how can I update the System alias table programatically from CL or RPG ?

Software/Hardware used:
ASKED: May 12, 2006  6:01 AM
UPDATED: December 7, 2009  2:18 AM

Answer Wiki:
Since WRKNAMSMTP probably should be disabled, the question doesn't make sense. The CVTNAMSMTP command should have been run years ago making WRKNAMSMTP inoperative. The question would come from a misunderstanding of how addressing is handled in OS releases during the past decade or so. I would recommend basic research into what WRKNAMSMTP and CVTNAMSMTP do first, then questions should present themselves about the resulting structures. Tom ============================================================== I don't know what addresses you are keeping in the system alias table, but we use this code to update the local users: CHGDIRE USRID(USER S1066666) USRDFNFLD((SMTPAUSRID SMTP USEREMAILNAME) (SMTPDMN SMTP 'COMPANY.COM')) I don't remember how the usrdfnfld are linked to the SMTP names, but it works. We may have gotten the information from here: http://search400.techtarget.com/tip/1,289483,sid3_gci818531,00.html or here: http://search400.techtarget.com/originalContent/0,289142,sid3_gci968106,00.html
Last Wiki Answer Submitted:  December 7, 2009  2:18 am  by  Pollywantsacracker   0 pts.
All Answer Wiki Contributors:  Pollywantsacracker   0 pts.
To see all answers submitted to the Answer Wiki: View Answer History.


Discuss This Question:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _


 

I don’t know what addresses you are keeping in the system alias table, but we use this code to update the local users:

CHGDIRE USRID(USER S1066666) USRDFNFLD((SMTPAUSRID SMTP USEREMAILNAME) (SMTPDMN SMTP ‘COMPANY.COM’))

I don’t remember how the usrdfnfld are linked to the SMTP names, but it works. We may have gotten the information from here:

http://search400.techtarget.com/tip/1,289483,sid3_gci818531,00.html

or here:

http://search400.techtarget.com/originalContent/0,289142,sid3_gci968106,00.html


 

Thank you,
this fits the bill perfectly.

 0 pts.