I need to redirect all the bounced mails for a specific user to a different mailbox ([email protected]) within the same user.
What i did is to edit /etc/virtual/user.com/filter and to add this:
if error_message then deliver bounced@$domain finish endif
But bounced mails keep going to [email protected] instead to [email protected]. For debbuging, i also tryed this:
if $header_subject: contains "Mail delivery failed" then deliver bounced@$domain finish endif
With this last line, if i send an e-mail with subject "Mail delivery failed" to [email protected], the mail filters to [email protected] correctly, but, when it is a real bounced e-mail, it still goes to [email protected] no matter if the subject is the same of the filter.
Does anyone knows why the bounced e-mails are handled different and how (and where) can i change this setting?
Thanks you.
Pablo
What i did is to edit /etc/virtual/user.com/filter and to add this:
if error_message then deliver bounced@$domain finish endif
But bounced mails keep going to [email protected] instead to [email protected]. For debbuging, i also tryed this:
if $header_subject: contains "Mail delivery failed" then deliver bounced@$domain finish endif
With this last line, if i send an e-mail with subject "Mail delivery failed" to [email protected], the mail filters to [email protected] correctly, but, when it is a real bounced e-mail, it still goes to [email protected] no matter if the subject is the same of the filter.
Does anyone knows why the bounced e-mails are handled different and how (and where) can i change this setting?
Thanks you.
Pablo