-
Firstly: thanks for this wonderful creation, a dream for all the self hosters. I am currently planning the migration to this mail-server. I came across one thing where I am not sure how to convert the config. I have an archiving smtp server listening on 127.0.0.1:2525. All emails should be bcc'd to it, The part where i don't know how it would work here is how i can convert the transport_map. Right now i have something like this
Do you have an idea? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
Hi, Yes, this could be done using a Sieve script at the 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";
redirect "[email protected]";
keep;
''' |
Beta Was this translation helpful? Give feedback.
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: