Paul Menzel via Postfix-users:
> Dear Postfix users,
>
>
> Some of our users, that relocate, ask for a custom message over the
> current one:
>
> user has moved to new_location
>
> For example:
>
> This address is out of service. For business please contact
> [email protected], or [email protected] for private
> contact.
>
> I guess, it could be reworded to
>
> user has moved to [email protected], please contact
> [email protected] for business
The following builds on an example in the transport(5) manpage.
With SMTP, this will reject mail during the RCPT TO phase (Postfix
does not generate a boune message). In non-SMTP contexts, Postfix
generates a bounce message when it attempts to deliver mail.
/etc/postfix/main.cf;
transport_maps = hash:/etc/postfix/transport
/etc/postfix/transport:
# The lookup result is indented by one space.
[email protected]
error:5.1.6 This address is out of service. For business please contact
[email protected], or [email protected] for
private contact.
This should use a 'fast' lookup mechanism (not LDAP or *SQL) as it
is in the critical path of the queue manager.
Wietse
_______________________________________________
Postfix-users mailing list -- [email protected]
To unsubscribe send an email to [email protected]