"forwarding" recipient_delimited addresses
I have mailing lists on one domain (lists.domain.test) and forward list addresses from [email protected] to [email protected]. Do I have to forward each and every command (listname+subscribe, unsubscribe etc) or can I, easily, forward something like listname+* to [email protected]?
Signature · 1 line
Vegard Svanberg <[email protected]> [*Takapa@IRC (EFnet)]
Quoted 5 lines · Vegard Svanberg
I have mailing lists on one domain (lists.domain.test) and forward list addresses from [email protected] to [email protected]. Do I have to forward each and every command (listname+subscribe, unsubscribe etc) or can I, easily, forward something like listname+* to [email protected]?
It depends on your MTA, really.
With Exim and Postfix it's rather easy. If realdomain.test is a "virtual" domain (all the addresses are delivered elsewhere), with exim you can setup a virtual router which reads something like this:
virtual:
driver = redirect
allow_defer
allow_fail
local_part_suffix = +*
local_part_suffix_optional
domains = dsearch;CONFDIR/virtual
data = ${lookup{$local_part}lsearch{CONFDIR/virtual/$domain}} pipe_transport = address_pipe
file_transport = address_file
no_more
Now you have a CONFDIR/virtual/realdomain.test which contains:
listname: [email protected]
Note that this is accomplished because of the local_part_suffix bits.
If the domain isn't virtual, you can do the same, just add the local_part_suffix bits to the proper router.
Signature · 1 line
Marcelo
Quoted 7 lines · Marcelo E. Magallon
Quoted 5 lines
I have mailing lists on one domain (lists.domain.test) and forward list addresses from [email protected] to [email protected]. Do I have to forward each and every command (listname+subscribe, unsubscribe etc) or can I, easily, forward something like listname+* to [email protected]?
It depends on your MTA, really.
Sorry, forgot to say it's Postfix. I suppose Postfix has something similar, I'll go RTFMing some more. Thanks!
Signature · 1 line
Vegard Svanberg <[email protected]> [*Takapa@IRC (EFnet)]