How would I teach the smarthost to accept bounces to <root@otherhost.dom.ain>?
How would I teach the smarthost to accept bounces to <root@otherhost.dom.ain>?
Hauke Fath wrote:
How would I teach the smarthost to accept bounces to <root@otherhost.dom.ain>?
see cf/README: class {w} or virtusertable.
Am 30.11.2022 um 10:11:39 Uhr schrieb Hauke Fath:
How would I teach the smarthost to accept bounces to <root@otherhost.dom.ain>?
Which behavior do you exactly want?
Should it just accept them for relaying or should it accept them and
deliver them to a special place?
I figured it wouldn't be easy. ;)
Can I use wildcards for the hostname (as in 'root@*.dom.ain') with virtusertable?
Can I use wildcards for the hostname (as in 'root@*.dom.ain') with virtusertable?
Did you check cf/README?
virtuser_entire_domain
If the virtusertable is enabled and VIRTUSER_DOMAIN or
VIRTUSER_DOMAIN_FILE is used, this feature will cause
addresses to be searched in the map if their domain
parts are subdomains of elements in class {VirtHost}.
This means if 'dom.ain' is listed in class {VirtHost}, say as read in
from VIRTUSER_DOMAIN_FILE, then mails to addresses @foo.dom.ain and bar.dom.ain will be run through virtusertable, too, correct? And does
'dom.ain' actually have to resolve? Because in my setting it does not,
But the {foo,bar} subdomains would then still require a matching entry
in virtusertable, say 'root@bar.dom.ain root', in order to be rewritten,
But the {foo,bar} subdomains would then still require a matching entry
in virtusertable, say 'root@bar.dom.ain root', in order to be rewritten,
No.
Try it with
sendmail -bv root@dom.ain
sendmail -bv root@bar.dom.ain
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 546 |
Nodes: | 16 (2 / 14) |
Uptime: | 58:58:46 |
Calls: | 10,397 |
Calls today: | 5 |
Files: | 14,067 |
Messages: | 6,417,461 |
Posted today: | 1 |