Global Security Forum

 View Only
  • 1.  Send mail from AS400

    Posted Thu September 12, 2024 10:12 AM

    Hi to all, I'm new with the configuration for send spool file to a exchange mail, can you help me with the step to configure

     

     

    Saludos / Best Regards

     

    Leonel Valladares

    + 503 76046395

     


    **** DISCLAIMER **** This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the system manager. This message contains confidential information and is intended only for the individual named. If you are not the named addressee you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately by e-mail if you have received this e-mail by mistake and delete this e-mail from your system. If you are not the intended recipient you are notified that disclosing, copying, distributing or taking any action in reliance on the contents of this information is strictly prohibited.



  • 2.  RE: Send mail from AS400

    Posted Fri September 13, 2024 04:50 AM

    Leonel,

    Hi, good day to you.

    I've not needed to do this for a while, the below should work.

    Set SMTP attributes
    CHGSMTPA RTYDAY(0 0) RTYHOUR(0 0) MAILROUTER(your-SMTP-router-here) FIREWALL(*YES) DIALSCD(*NO)
    
    Add Distribution Directory Entry
    ADDDIRE USRID(INTERNET SMTPRTE) USRD('SMTP routing of Emails') SYSNAME(INTERNET) NETUSRID(*USRID) PREFADR(NETUSRID *IBM ATCONTXT)
    
    Change Distribution Attributes
    CHGDSTA SMTPRTE(INTERNET SMTPRTE)
    
    Stop/Start *SMTP
    ENDTCPSVR  SERVER(*SMTP)
    STRTCPSVR  SERVER(*SMTP)
    
    Send test message
    SNDSMTPEMM RCP((your-Email-address-here)) SUBJECT('Subject line here') NOTE('Note here')

    NOTE
    You may wish to post your IBMi queries/questions in https://community.ibm.com/community/user/power/communities/ibmi-home

    Regards, Steve



    ------------------------------
    Steve Munday
    AIX, IBM i, HMC, PowerVM
    ------------------------------