[pfx] Re: relocated: Allow custom message
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 > funct...@company.example.net, or n...@private.example.net for private > contact. > > I guess, it could be reworded to > > user has moved to n...@private.example.net, please contact > funct...@company.example.net 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. user@some.example error:5.1.6 This address is out of service. For business please contact funct...@company.example.net, or n...@private.example.net 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 -- postfix-users@postfix.org To unsubscribe send an email to postfix-users-le...@postfix.org
[pfx] Re: relocated: Allow custom message
On Wed, May 03, 2023 at 02:53:06PM +0200, Paul Menzel via Postfix-users wrote: > 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 > funct...@company.example.net, or n...@private.example.net for private > contact. > > I guess, it could be reworded to > > user has moved to n...@private.example.net, please contact > funct...@company.example.net for business > > and use the current mechanism. > > Could a third column for a custom message be added to satisfy everybody? There's no need, a "relocated" entry is just a shorthand for a user-specific transport table entry. In the full transport table you can add whatever string you want. user@acme.example error:5.1.6 This address is out of service. For business please contact funct...@company.example.net, or n...@private.example.net for private contact. -- Viktor. ___ Postfix-users mailing list -- postfix-users@postfix.org To unsubscribe send an email to postfix-users-le...@postfix.org
[pfx] Re: relocated: Allow custom message
Dear Matus, Thank you for your reply. Am 03.05.23 um 15:02 schrieb Matus UHLAR - fantomas via Postfix-users: On 03.05.23 14:53, Paul Menzel via Postfix-users wrote: 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 funct...@company.example.net, or n...@private.example.net for private contact. I guess, it could be reworded to user has moved to n...@private.example.net, please contact funct...@company.example.net for business and use the current mechanism. Could a third column for a custom message be added to satisfy everybody? third column where? you can set up your mailserver to reject recipient address with e.g. by setting access map to: m...@example.com 551 moved to newm...@example.net Thank you for the hint. how do you currently implement the redirect mentioned above? # postconf -n relocated_maps relocated_maps = hash:/project/mx/etc/relocated relocated(5) [1] describes this mechanism [1]. Kind regards, Paul [1]: http://www.postfix.org/relocated.5.html ___ Postfix-users mailing list -- postfix-users@postfix.org To unsubscribe send an email to postfix-users-le...@postfix.org
[pfx] Re: relocated: Allow custom message
On 03.05.23 14:53, Paul Menzel via Postfix-users wrote: 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 funct...@company.example.net, or n...@private.example.net for private contact. I guess, it could be reworded to user has moved to n...@private.example.net, please contact funct...@company.example.net for business and use the current mechanism. Could a third column for a custom message be added to satisfy everybody? third volumn where? you can set up your mailserver to reject recipient address with e.g. by setting access map to: m...@example.com551 moved to newm...@example.net how do you currently implement the redirect mentioned above? -- Matus UHLAR - fantomas, uh...@fantomas.sk ; http://www.fantomas.sk/ Warning: I wish NOT to receive e-mail advertising to this address. Varovanie: na tuto adresu chcem NEDOSTAVAT akukolvek reklamnu postu. - Holmes, what kind of school did you study to be a detective? - Elementary, Watkins. -- Daffy Duck & Porky Pig ___ Postfix-users mailing list -- postfix-users@postfix.org To unsubscribe send an email to postfix-users-le...@postfix.org