Skip to content
Discussion options

You must be logged in to vote

You can use destination directives in submission block to define routing for each domain separately. In default config,, default_destination sends outbound messages via queue. You can change it to reject and then move queue use to destination gooddomain.com to allow such delivery for this destination domain. Like this:

submission tls://0.0.0.0:465 tcp://0.0.0.0:587 {
    ...
    source $(local_domains) {
        ...

        destination postmaster $(local_domains) {
            deliver_to &local_routing
        }
        destination gooddomain.com {
            modify {
                dkim $(primary_domain) $(local_domains) default
            }
            deliver_to &remote_queue
     …

Replies: 1 comment 1 reply

Comment options

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

Answer selected by Maloupi
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