Delivery

Those methods are used to setup the method of delivery for one / every recipient.

fn deliver(rcpt)

Set the delivery method to deliver for a single recipient. After all rules are evaluated, the email will be sent to the recipient using the domain of its address.

Args

  • rcpt - the recipient to apply the method to.

Effective smtp stage

All of them.

Example

#{
    delivery: [
       action "setup delivery" || deliver("john.doe@example.com"),
    ]
}


fn deliver_all()

Set the delivery method to deliver for all recipients. After all rules are evaluated, the email will be sent to all recipients using the domain of their respective address.

Effective smtp stage

All of them.

Example

#{
    delivery: [
       action "setup delivery" || deliver_all(),
    ]
}


fn disable_delivery(rcpt)

Disable the delivery for a single recipient.

Args

  • rcpt - the recipient to apply the method to.

Effective smtp stage

All of them.

Example

#{
    delivery: [
       action "disable delivery" || disable_delivery("john.doe@example.com"),
    ]
}


fn disable_delivery_all()

Disable delivery for all single recipients.

Effective smtp stage

All of them.

Example

#{
    delivery: [
       action "disable delivery" || disable_delivery_all(),
    ]
}


fn forward(rcpt, target)

Set the delivery method to forwarding for a single recipient. After all rules are evaluated, forwarding will be used to deliver the email to the recipient.

Args

  • rcpt - the recipient to apply the method to.
  • target - the target to forward the email to.

Effective smtp stage

All of them.

Example

#{
    delivery: [
       action "setup forwarding" || forward("john.doe@example.com", "mta-john.example.com"),
    ]
}


fn forward_all(target)

Set the delivery method to forwarding for all recipients. After all rules are evaluated, forwarding will be used to deliver the email.

Args

  • target - the target to forward the email to.

Effective smtp stage

All of them.

Example

#{
    delivery: [
       action "setup forwarding" || forward_all("mta-john.example.com"),
    ]
}


fn maildir(rcpt)

Set the delivery method to maildir for a recipient. After all rules are evaluated, the email will be stored locally in the `~/Maildir/new/` folder of the recipient's user if it exists on the server.

Args

  • rcpt - the recipient to apply the method to.

Effective smtp stage

All of them.

Example

#{
    delivery: [
       action "setup maildir" || maildir("john.doe@example.com"),
    ]
}


fn maildir_all()

Set the delivery method to maildir for all recipients. After all rules are evaluated, the email will be stored locally in each `~/Maildir/new` folder of they respective recipient if they exists on the server.

Effective smtp stage

All of them.

Example

#{
    delivery: [
       action "setup mbox" || mbox_all(),
    ]
}


fn mbox(rcpt)

Set the delivery method to mbox for a recipient. After all rules are evaluated, the email will be stored locally in the mail box of the recipient if it exists on the server.

Args

  • rcpt - the recipient to apply the method to.

Effective smtp stage

All of them.

Example

#{
    delivery: [
       action "setup mbox" || mbox("john.doe@example.com"),
    ]
}


fn mbox_all()

Set the delivery method to mbox for all recipients. After all rules are evaluated, the email will be stored locally in the mail box of all recipients if they exists on the server.

Effective smtp stage

All of them.

Example

#{
    delivery: [
       action "setup mbox" || mbox_all(),
    ]
}