From 288e79f59e17ee0ba812e884bb7aaba452117527 Mon Sep 17 00:00:00 2001 From: Thorsten von Eicken Date: Mon, 23 May 2016 20:38:11 -0700 Subject: [PATCH] tests for regexp alias --- test/config/postfix-regexp.cf | 2 ++ .../existing-regexp-alias-external.txt | 12 ++++++++++++ test/email-templates/existing-regexp-alias-local.txt | 12 ++++++++++++ 3 files changed, 26 insertions(+) create mode 100644 test/config/postfix-regexp.cf create mode 100644 test/email-templates/existing-regexp-alias-external.txt create mode 100644 test/email-templates/existing-regexp-alias-local.txt diff --git a/test/config/postfix-regexp.cf b/test/config/postfix-regexp.cf new file mode 100644 index 00000000..ac8e5e73 --- /dev/null +++ b/test/config/postfix-regexp.cf @@ -0,0 +1,2 @@ +/^test[0-9][0-9]*@localhost.localdomain/ user1@localhost.localdomain +/^bounce.*@.*/ external1@otherdomain.tld diff --git a/test/email-templates/existing-regexp-alias-external.txt b/test/email-templates/existing-regexp-alias-external.txt new file mode 100644 index 00000000..ab5ecd11 --- /dev/null +++ b/test/email-templates/existing-regexp-alias-external.txt @@ -0,0 +1,12 @@ +HELO mail.external.tld +MAIL FROM: user@external.tld +RCPT TO: bounce-always@localhost.localdomain +DATA +From: Docker Mail Server +To: Existing Local User +Date: Sat, 22 May 2010 07:43:25 -0400 +Subject: Test Message +This is a test mail. + +. +QUIT diff --git a/test/email-templates/existing-regexp-alias-local.txt b/test/email-templates/existing-regexp-alias-local.txt new file mode 100644 index 00000000..99170500 --- /dev/null +++ b/test/email-templates/existing-regexp-alias-local.txt @@ -0,0 +1,12 @@ +HELO mail.external.tld +MAIL FROM: user@external.tld +RCPT TO: test123@localhost.localdomain +DATA +From: Docker Mail Server +To: Existing Local User +Date: Sat, 22 May 2010 07:43:25 -0400 +Subject: Test Message +This is a test mail. + +. +QUIT