Sign up ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Hello I'd like to know if it's possible to configure a mail server to support wildcard addresses like or * and send those incoming emails not in a mailbox (cause they would be 'virtual' email addresses) but catch them in a server script (run a sh or php)

Thank you

share|improve this question

1 Answer 1

up vote 1 down vote accepted

Yes, it is. Basically, you need to edit three config files:


virtual_alias_maps = hash:/etc/postfix/virtual

/etc/postfix/virtual example


example: "|/path/to/the/script"

For more information, have a look at the Postfix Virtual Domain Hosting Howto

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.