Water leaking down front door on the outside

Our front door is under a canopy. However, water seems to be sleeping down from where I marked on red after a heavy rain where the door meets the wall. Is this by design or something (roof/canopy) is failing?

Our front door is under a canopy. However, water seems to be sleeping down from where I marked on red after a heavy rain where the door meets the wall. Is this by design or something (roof/canopy) is failing?