2

For automatically handling bounce mail in an application, I need bounces sent back to certain adresses only to be delivered by pipe to the program which will manage these. There is two options :

  • Forward those addresses to another SMTP server, which will pipe every received mail
  • Pipe only these addresses on the main mail server

Is there any efficient and simple way to do one of those with Postfix?

Thanks.

1 Answer 1

2

# vi /etc/postfix/main.cf

virtual_alias_domains = yeswedeal.com # virtual_alias_domains = example.com virtual_alias_maps = hash:/etc/postfix/virtual

# vi /etc/postfix/virtual

[email protected] [email protected]

You can also implement a catch-all address i.e. email sent to [email protected] and [email protected] should be forwarded to [email protected]

@example.com [email protected]

Save and close the file. Type the following command to restart postfix:

# postmap /etc/postfix/virtual # service postfix reload

2
  • Thanks. If I understand well, there is no way to transfer them to another server without having to alias the address(es) with another domain ?
    – Pierre
    Oct 6, 2010 at 12:16
  • 1
    yes your right :)
    – Rajat
    Oct 6, 2010 at 12:22

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .