Pol Hallen:
> > Instead, use a script that generates explicit postmas...@example.com
> > entries etc. when you host a new domain.
> 
> thanks for reply. Is there an example of that script? Need I create a
> virtual domain or only something that redirect (i.e.
> postmas...@example.org) to virtual domain?

This example assumes:

virtual_alias_maps = hash:/etc/postfix/virtual
virtual_alias_domains = hash:/etc/postfix/virtual_domains

        Wietse

--8<-snip-here--8<--
#!/bin/sh

case $# in 
0) echo usage: $0 example.com ... 1>&2; exit 1;;
esac

VIRTUAL_MAP=/etc/postfix/virtual
VIRTUAL_DOMAINS=/etc/postfix/virtual_domains

for domainname
do
        echo postmaster@domainname root
        echo abuse@domainname root
done >> $VIRTUAL_MAP
postmap $VIRTUAL_MAP

echo domainname >>$VIRTUAL_DOMAINS
postmap $VIRTUAL_DOMAINS
--8<-snip-here--8<--

Reply via email to