Skip to main content

Name

add_recipient — add a new envelope recipient to the mail

Synopsis

add_recipient { address }

Description

This action will add an envelope recipient (a RCPT TO) address to the current mail. The headers and the body of the message will not be changed in any way. Existing recipients will also not be affected.

Warning

This function should only be used in the each_rcpt phase.

if envelope :domain :is "to" "bar.com" {
  add_recipient "sideline@foo.com";
  stop;
}
Was this page helpful?