IBM i Global

IBM i 

A space for professionals working with IBM’s integrated OS for Power systems to exchange ideas, ask questions, and share expertise on topics like RPG and COBOL development, application modernization, open source integration, system administration, and business continuity.


#Power


#IBMi
#Power
#Operatingsystems
#Servers
 View Only
Expand all | Collapse all

SMTP Client Timeout setting?

  • 1.  SMTP Client Timeout setting?

    Posted 07/15/24 12:10 PM

    I am having issue with the SMTP client timing out at 5 minutes on sending attachments.  The connection is with OAUTH to GMAIL and works great except for the issue with larger attachments.   I have test with smaller attachments and it works.   This is on a power 9 with V7R2M0 installed. Here is a snapshot of disconnect in log:

    Thanks for your response.

    FYI, I have tried to post this question 3 times, I cannot see where it is being posted?

    If it is being posted, I apologize in advance.

    Dean



    ------------------------------
    Dean Dickison
    Deand@resoftware.net
    Terre Haute, IN
    ------------------------------


  • 2.  RE: SMTP Client Timeout setting?

    Posted 07/16/24 04:02 PM

    What is the size of the attachments ? 



    ------------------------------
    Peter Renkema
    ------------------------------



  • 3.  RE: SMTP Client Timeout setting?

    Posted 07/16/24 08:30 PM

    about 1.5 MB.

    The interesting thing is the emails send fine from the old Power 7 that this Power 9 has replaced.  Both system have V7r2m0 for migration reasons.

    I have applied all PTF's I can find.

     

    thanks,

    Dean



    ------------------------------
    Dean Dickison
    Deand@resoftware.net
    Terre Haute, IN
    ------------------------------



  • 4.  RE: SMTP Client Timeout setting?

    Posted 07/17/24 04:56 AM
    Edited by Satid S 07/17/24 05:03 AM

    Dear Terri

    >>>>  The interesting thing is the emails send fine from the old Power 7 that this Power 9 has replaced.  <<<<<

    Does your P9 server connect to the same LAN as P7?  Do both servers point to the same IP gateway address?   Have you ever displayed the Ethernet line description of both servers and to see that P9 does NOT have any degraded connection speed (due to whatever issue) ?  What is the value of CHGTCPA --> TCPMINRTM on both servers?    If both servers have the same of all these factors, this is a case when you should use communication trace and Wireshark to compare TCP protocol behavior of both servers when you send the same email to the same destination.

    >>>> FYI, I have tried to post this question 3 times, I cannot see where it is being posted? <<<<

    I also had the same issue that you did causing me to make repeated posts. It's likely that TechXchange web site had an issue on this (it did have this same problem before) but it appears to work fine now.

    ------------------------------
    Satid S
    ------------------------------



  • 5.  RE: SMTP Client Timeout setting?

    Posted 07/17/24 08:22 AM

    One more factor you should also check: look at WRKSYSSTS of the 2 servers and compare allocated size and Max Act value of *BASE memory pool (pool number 2) between the 2 servers.  Does P9's *BASE pool has Max Act value that is much smaller than P7's?    FYI, since the time of OS/400 V5R1, Max Act value of *BASE pool should be set at, at least, 1000 (one thousand).  



    ------------------------------
    Satid S
    ------------------------------



  • 6.  RE: SMTP Client Timeout setting?

    Posted 07/27/24 08:54 PM

    Thanks, I just got a chance to verify memory pools. the power 9 is much larger memory pools. the power 7 is red screen in attached screen shot.

    I still fell this is SMTP client setting.  I just cannot find it.  it is very consistent 5 minutes.


    ------------------------------
    Dean Dickison
    Deand@resoftware.net
    Terre Haute, IN
    ------------------------------



  • 7.  RE: SMTP Client Timeout setting?

    Posted 07/28/24 03:57 AM

    Hello @Terri Dickison

    Have you checked POP attributes .Can you please confirm what is the value for message split size ?

    CHGPOPA and then F4 for prompting.



    ------------------------------
    Rohit Chauhan
    Senior Technical Specialist
    Norway
    ------------------------------



  • 8.  RE: SMTP Client Timeout setting?

    Posted 07/29/24 12:42 PM

    it is set to *NOMAX.  thanks



    ------------------------------
    Dean Dickison
    Deand@resoftware.net
    Terre Haute, IN
    ------------------------------



  • 9.  RE: SMTP Client Timeout setting?

    Posted 07/30/24 04:56 AM

    Hi Terri,

    I can see then the configuration on IBM i is good if it set to *NOMAX. I agree with @Satid S that you need to do a communication trace in this case to know where is the issue. It can be within or outside IBM i so best is to use Wireshark as mentioned. 



    ------------------------------
    Rohit Chauhan
    Senior Technical Specialist
    Norway
    ------------------------------



  • 10.  RE: SMTP Client Timeout setting?

    Posted 07/29/24 02:09 AM

    Dear Terri

    As of around the time of OS/400 V5R1, many OS jobs run as many JAVA threads in memory pool 2 which mean these jobs need higher activity level in that pool. The recommended MAX ACT value for pool 2 is at least 1,000. 

    As for your curiosity in the 5-minute time out, the best way to know is to do a communication trace and use Wireshark to display from which IP address the time out disconnect is sent.  My guess is that it may be from a Firewall that is set to prevent long SMTP session.  You may want to ask your colleague who takes care of the Firewall.



    ------------------------------
    Satid S
    ------------------------------



  • 11.  RE: SMTP Client Timeout setting?

    Posted 07/31/24 12:51 AM

    Hi,

    What about this support tip? https://www.ibm.com/support/pages/mustgather-traces-needed-debug-smtp-and-msf-when-e-mail-fails



    ------------------------------
    Sylvain Manceau
    ------------------------------