All rights reserved.
1046 | Chapter 24: The O (Options) Configuration Command
The offending message will also be bounced with this error:
552 5.0.0 Headers too large (bytes max)
The MaxHeadersLength option is not safe. If specified from the command line, it can cause
sendmail to relinquish its special privileges.
24.9.67 MaxHopCount
Set maximum hop count All versions
A hop is the transmittal of a mail message from one machine to another.* Many hops might
be required to deliver a message. The number of hops is determined by counting the
Received:, Via:, X400-Received, and Mail-From: lines in the header of an email message.??
The MaxHopCount option tells sendmail the maximum number of times a message can be
forwarded. When sendmail receives a message via email, it calculates the hop count. If that
count is above the maximum allowed, it bounces the message back to the sender with the
error:
sendmail: too many hops (17 max)
In this case, 17 is the maximum. Detecting too many hops is useful in stopping mail
loops??”messages being forwarded back and forth between two machines.
The forms of the MaxHopCount option are as follows:
O MaxHopCount=hops ?†? configuration file (V8.7 and later)
-OMaxHopCount=hops ?†? command line (V8.7 and later)
define(`confMAX_HOP??,hops) ?†? mc configuration (V8.7 and later)
Ohhops ?†? configuration file (deprecated)
-ohhops ?†? command line (deprecated)
The hops argument is of type numeric.
Pages:
1848
1849
1850
1851
1852
1853
1854
1855
1856
1857
1858
1859
1860
1861
1862
1863
1864
1865
1866
1867
1868
1869
1870
1871
1872