<source>
The line assigns the source block to the named group. It limits nothing by itself — it links: the settings that need a group are declared in the <source-group> block, and the members are named here.
Why grouping is needed: some limits make sense not for one source but for several at once — when the same submitting party comes from several addresses. The group block has two such settings: max-smtp-in and reserved-smtp-in.
One group is made up of any number of sources; each names it with its own line.
The other edge is the source merging rule. A line in a broad block goes to all subnets that did not name a group of their own, and the group unexpectedly turns out wider than intended.
Groups would be useful where one submitting party comes from several addresses and needs guaranteed slots. We have one submitting party — the Hub itself.
What to set. The value is a group name; the question is what to group by:
| Value | When |
|---|---|
| do not write it (default) | there is one submitting party, or inbound limits are not split |
| a name by sender | one sender has several submission addresses, and it has to be limited as a whole |
| a name by purpose | an “own” group with guaranteed slots and an “others” group without them |
The second is the usual case for a node with several clients, the third for a node that accepts inbound mail in addition to submission.
# two addresses of one submitting party — one group <source-group localSources> max-smtp-in 10 reserved-smtp-in 5 </source-group> <source 192.168.0.30> smtp-service yes source-group localSources</source>
what people get wrong and how it ends2 mistakes▶
§ 3.3.7.55
our experience
2 relations
grep -n 'source-group' /etc/pmta/config /etc/pmta/virtualhost.txt
3 articles
◇How a message gets into the engineSix described submission methods: extended SMTP, four language bindings and a directory the node watches on disk.◇Who is allowed to submit mail and for whom to accept itOut of the box, the node accepts submission only from the machine itself; two different questions — “who can send through us” and “for whose addresses we accept mail” — are answered by different directives.◇Headers the sender uses to control deliverySix control headers let the submitting side choose a stream, tag a message with a job, set signing options and the key, the envelope identifier and the schedule; each is allowed separately and per source.