Skip to content

Postfix transport_map equivalent #64

Answered by mdecimus
blacs30 asked this question in Q&A
Discussion options

You must be logged in to vote

Hi,

Yes, this could be done using a Sieve script at the DATA stage. If your mail server does not have a domain name configured (i.e., it accepts and archives messages for every massage it receives), then you'll have to create a mock email address and route a copy of the messages to it.

For example:

[queue.outbound]
next-hop = [ { if = "rcpt-domain", eq =  "piler.local", then = "archive" }, 
             { else = false } ]

[remote."archive"]
address = "localhost"
port = 2525
protocol = "smtp"
concurrency = 10
timeout = "1m"

[remote."archive".tls]
implicit = false
allow-invalid-certs = true

[session.data]
script = "archive-copy"

[sieve.scripts]
archive-copy = '''
require "redirect";

re…

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@blacs30
Comment options

@hirschrobert
Comment options

@mdecimus
Comment options

Answer selected by blacs30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants