PxPlus User Forum

Twitter Twitter Twitter

Author Topic: *web/email question regarding running in background  (Read 1242 times)

Ken Sproul

  • Gold Member
  • ****
  • Posts: 60
    • View Profile
*web/email question regarding running in background
« on: March 02, 2023, 06:27:04 PM »
This may be for the PxPlus team.


We have a background process that sends emails using *web/email.
This process is designed to handle any email errors reported by *web/email and continue running.
Recently that background process started hanging.
We discovered that that the email server credentials had changed.
Once we updated the credentials, the process stopped hanging.


So my question is what could be happening inside *web/email to cause the background process to hang instead of simply returning the authentication error?


PxPlus Version: 15.10



Ken Sproul
DPI Information Service, Inc.
Pivotal Systems LLC

Mike King

  • Diamond Member
  • *****
  • Posts: 3811
  • Mike King
    • View Profile
    • BBSysco Consulting
Re: *web/email question regarding running in background
« Reply #1 on: March 03, 2023, 10:26:01 AM »
Some Email servers simply don't respond to invalid credentials and let the caller timeout eventually.  They do this to prevent spammers from trying to hack onto your email server by constantly trying invalid credentials. 

For example if you take our email server, if you fail the connection too many times it blocks your IP for about 10 minutes, and if this occurs more more than once or twice it will block your IP for a few days. 

When the IP is blocked the email program will get no response for a connection and thus hang for a while until the connect times out.
Mike King
President - BBSysco Consulting
eMail: mike.king@bbsysco.com

Ken Sproul

  • Gold Member
  • ****
  • Posts: 60
    • View Profile
Re: *web/email question regarding running in background
« Reply #2 on: March 03, 2023, 04:02:27 PM »
Thanks for the info Mike.


I was wondering if it was doing some kind of UI waiting forever for a user response since we had to kill and restart the process to get it going again.  We did however get an authentication error when we tested sending an email in a foreground process, which is how we figured it out.

Ken Sproul
DPI Information Service, Inc.
Pivotal Systems LLC