[ale] Postfix on CentOS 5.4 - How to configure for wildcard domain?

Jim Popovitch jimpop at gmail.com
Mon Jan 11 17:03:38 EST 2010


On Mon, Jan 11, 2010 at 16:13, Ryan Fish <fishr at bellsouth.net> wrote:
> I need to configure Postfix to accept mail sent to user@*.domain.net and
> place in the mailbox of a local user named elist.  This user will be the
> catchall for *.domain.net.


One (only?) way is to setup virtual domains
(http://www.postfix.org/virtual.5.html) NOTE: you will need a postfix
implementation with PCRE support

in main.cf:
   virtual_alias_maps = pcre:/etc/postfix/virtual.pcre

/etc/postfix/virtual.pcre
        /.*@.*\.domain.tld/           elist


I *think* that will work,  make sure to remove domain.tld from $mydestination


Jim Kinney called me an ass, no less than 6 times today.  I hope you
don't read my text above as that of coming from an ass.

-Jim P.



More information about the Ale mailing list