I have one postfix mail server (postfix-2.10.1-6.el7.x86_64) under CentOS7.
Now, our App Department is using it to send sms'es via email.
To: [email protected] To: [email protected] To: [email protected] To: [email protected] To: [email protected] To: [email protected]
And I'd like to do the following:
Whenever the postfix receives such emails (To: [[:digit:]]@domain.tld), I'd like to do the following:
- To copy to a local mail box for my further processing, maintaining To: and Body of the message.
- To discard the mails, without further processing such as relay to external internet relay coz it will anyway fail the delivery and the relay server will bounce back.
Please advise.
Will