<proxy>
The proxy list in use-proxy is a chain of backups: the second is taken only when the first did not respond. The line sets how many times to try before moving on to the next. The default is 1, the ceiling is 10.
The default means “one attempt and move on.” Instant switching is good when the proxy has really gone down, and bad when it has just blinked: the queue will move to the backup and stay there until the backup fails.
The price of waiting is delivery delay. Each failed attempt takes time; ten attempts to a proxy that is down will delay messages for all that time instead of taking a live one right away.
The line is per proxy, not per list. Each block can have its own number: more for a reliable primary, fewer for a backup.
The choice depends on how the proxy behaves on failure:
| Value | When |
|---|---|
| 1 (default) | the proxy is either alive or dead for a long time |
| 2–3 | the proxy restarts in seconds |
| closer to 10 | almost never: the delay grows linearly |
# the proxy restarts in seconds — we give it three attempts <proxy mta-proxy> server proxy.internal:9999 client 16.80.77.101 client2.hostname.com retry-attempts 3</proxy>
what people get wrong and how it ends1 mistake▶
our experience
3 relations
head -1 "$(ls -t /var/log/pmta/acct-*.csv | head -1)" | tr -d '\r' | tr ',' '\n' | grep -n '^dlvProxy'
3 articles
◇Cloud restrictionsClouds restrict outbound mail on port 25 until you ask them to lift the limit, and mailbox providers treat their address ranges with suspicion.◇The sending address — what it is made ofA named set of everything that is a property of the address: which IP the message leaves from, how the node introduces itself, what it signs with and how fast it sends.◇A named proxy and three levels of its settingsThe block carries the proxy address, the external sending address, the protocol version, the field type and the number of attempts; the first two lines are required.