大网数据广告活动
服务器运维问答

Exim: match recipient address against certain regex and conditional email delivery

· 52CE 我爱测

I need to allow my customers to use e-mails in format of [email omitted] , where the username part is sort of UUID. Those emails should be delivered to certain (single) e-mail address (for example - [email omitted] ) to be proces…

问题原文

原帖链接 · jdevelop · CC BY-SA 3.0

I need to allow my customers to use e-mails in format of [email omitted], where the username part is sort of UUID. Those emails should be delivered to certain (single) e-mail address (for example - [email omitted]) 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?

已采纳解答

原帖链接 · Kondybas · CC BY-SA 3.0

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      = [email omitted]
  pipe_transport  = address_pipe
. . . . . .

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

摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。

资料来源与适用范围

资料来源
Server Fault
适用范围
以原帖系统、软件版本与发布日期为准(2016-01-09)
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY-SA 3.0

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。