1

I need to allow my customers to use e-mails in format of 4ca2bc00-6789-4161-bae7-c11c5b91454e@example.com, where the username part is sort of UUID. Those emails should be delivered to certain (single) e-mail address (for example - inbound@example.com) to be processed later on, and the recipient address is used to distinguish among users. Generally, it's not possible to write those UUIDs into the /etc/mail/aliases because there's no way to know the list of those UUIDs in advance.

How can I configure routers for system aliases or local users to accept those e-mail addresses?

kasperd
  • 30,455
  • 17
  • 76
  • 124
jdevelop
  • 143
  • 6

2 Answers2

1
begin routers
guids:
  driver    = redirect
  senders   = \N^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}@example\.com$\N
  data      = inbound@example.com
  pipe_transport  = address_pipe
. . . . . .

That router catch all messages with localpart matched by regexp and redirect them to the single address.

Kondybas
  • 6,964
  • 2
  • 20
  • 24
0

Just for the record

begin routers
....
regexalias:
  driver = redirect
  data = ${lookup{$local_part}wildlsearch{/etc/aliases.wildcard}}

/etc/aliases.wildcard

^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}        user

that allows to have more flexible patterns that do not require exim restart

jdevelop
  • 143
  • 6