Wildcard email server

  • Set up postfix!
  • Append your domains to ''mydestination'' in ''/etc/postfix/main.cf''.
  • Verify that you have ''virtual_alias_maps = hash:/etc/postfix/virtual'' in the same file ''/etc/postfix/main.cf''.
  • Add your wildcard domain to ''/etc/postfix/virtual'' on the form ''@wildcard.domain your@mail.com''.
  • Make postfix parse the file with ''postmap /etc/postfix/virtual''.

Blacklist a wild email address in your wildcard domain

Sometimes an email address in your wildcard domain ends up on spammers list, or you are simply not interested in more mail from ''linkedin@wildcard.domain''. - Add the alias ''devnull: /dev/null'' to ''/etc/aliases'' and run ''newaliases''. - Prepend the ''linkedin@wildcard.domain devnull'' in ''/etc/postfix/virtual'' and rerun ''postmap /etc/postfix/virtual''.