Skip to content

Catch-all mailbox configuration #364

Answered by foxcpp
arisudesu asked this question in Q&A
Discussion options

You must be logged in to vote

The configuration snippet provided in #243 is supposed to replace this part of the default configuration:

maddy/maddy.conf

Lines 97 to 99 in 2d691f1

destination postmaster $(local_domains) {
deliver_to &local_routing
}

making it

source $(local_domains) {
    reject 501 5.1.8 "Use Submission for outgoing SMTP"
}
default_source {
    destination_in &local_mailboxes {
        deliver_to &local_mailboxes
    }
    destination $(local_domains){
        modify {
            replace_rcpt regexp ".*" "forspam@domainname"
        }
        deliver_to &local_mailboxes
    }

    default_destination {
        reject 550 5.1.1 "User doesn't exist"
    }
}

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@arisudesu
Comment options

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