Advertisement
metalx1000

Postfix mail server catchall

Oct 23rd, 2016
705
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.56 KB | None | 0 0
  1. This is called a "catch all"
  2.  
  3. Mapping is done using /etc/postfix/virtual file.
  4.  
  5. vim /etc/postfix/virtual
  6. Append code as follows, replacing domain and emailusername with actual values:
  7.  
  8. @yourdomain.com emailusername
  9. Save and close the file. Run following command:
  10.  
  11. postmap /etc/postfix/virtual
  12. Also make sure you have following line in /etc/postfix/main.cf file:
  13.  
  14. virtual_alias_maps = hash:/etc/postfix/virtual
  15. If you just added above, line reload postfix:
  16.  
  17. service postfix reload
  18. From http://www.cyberciti.biz/faq/howto-setup-postfix-catch-all-email-accounts/
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement