This is the classic example of a behaviour that trains itself, and understanding the mechanism explains why it is so hard to shift.
Why is it so reliably reinforced?
Because the outcome is always the same. Someone approaches the house, the dog barks, and the person leaves.
The dog cannot know the postman was leaving anyway. From its perspective, barking successfully repelled an intruder, and it worked again the next day, and the day after.
Few behaviours receive such consistent apparent success, which is why postman barking frequently becomes more intense over years rather than fading.
Is it territorial or fearful?
Usually territorial, though fear is involved in some dogs. The distinction matters for how you approach it.
Territorial barking typically involves a forward posture, a deeper bark and confident movement towards the door. Fearful barking is higher pitched, often with the dog barking and retreating.
Both respond to the same management, but a fearful dog needs the emotional response changed rather than simply being given something else to do.
What about the letterbox?
A particular flashpoint. Post coming through the door is intrusive and many dogs attack it, which occasionally results in bitten fingers and, in some cases, a refusal to deliver.
Fit a letterbox cage or an external post box. This removes the most intense part of the trigger entirely and protects the deliverer.
How do you manage it?
Block the view. A dog that watches from a window all morning is rehearsing anticipation as well as barking.
Frosted window film at dog height, moving furniture away from windows, or closing a door to the front of the house all help. Background sound such as a radio masks approaching footsteps.
Know roughly when deliveries arrive and put the dog somewhere else with a chew at that time, at least while training.
Can the postman help?
Sometimes, and it is worth asking politely rather than assuming. Some delivery staff are happy to drop a treat through or hand one over, which changes the association from intruder to good thing.
Many will not, entirely reasonably, given how many dogs they encounter. Do not press it, and never ask someone to interact with a dog that has shown any aggression.
What should you train?
An alternative behaviour at the trigger moment: going to a mat away from the door and being rewarded there.
Practise with a helper approaching the door repeatedly, since real deliveries are too infrequent and inconveniently timed to train with.
Scatter feeding on the mat works particularly well, as sniffing lowers arousal and occupies the dog through the arrival.
What are the practical stakes?
Beyond the noise, a dog that behaves this way at the door is a genuine risk if it ever gets out as someone approaches.
Owners are legally responsible for dogs that are dangerously out of control, including on their own property, so this is worth addressing rather than accepting.
How long does it take to change?
Longer than most barking problems, because the trigger arrives daily and the reinforcement has usually been running for years.
Expect several weeks of consistent management before a noticeable reduction, and be prepared for the habit to persist at a lower level rather than disappearing.
What about deliveries generally?
The same principles apply to couriers, though the pattern differs since they knock rather than use a letterbox and often leave parcels.
Consider a delivery box or a safe place instruction so drivers do not need to approach the door, which removes the trigger entirely for most parcels.
Is it worth telling the delivery company?
Occasionally useful. Some allow delivery notes requesting parcels be left in a specific place, which avoids the door entirely.
If your dog has ever made contact through a letterbox or a gap, tell them, since deliverers are entitled to refuse and you would rather know in advance.
Fit the letterbox guard regardless. It protects fingers and removes the most intense moment of the whole sequence.