Re: [ILUG] quickie

From: Philip Reynolds (phil at domain redbrick.dcu.ie)
Date: Fri 13 Sep 2002 - 09:54:27 IST


Hunt, Bryan's [B.Hunt at domain emuse-tech.com] 24 lines of wisdom included:
>
> I'm sure that there's some really easy way to do this.
> I want to set up a mail server for internal testing.
> It has no external incoming access.
>
> I want it to work in such a way that when it recieves an email
> for bart at domain simpsons.org or ted at domain bundy or whatever anything except
> stuff destined for an internal account ie root at domain cain will go to
> a general catch all account.
>
> Is there an easy way to set up such a catch everything system ?

Simple using postfix.

                   [- -]

# File: main.cf
# ----------------------------------------------
virtual_maps = hash:/etc/postfix/virtual_maps

# File: /etc/postfix/virtual_maps
root at domain domain1.com internal_account
root at domain domain2.com internal_account
at domain domain1.com catchall
at domain domain2.com catchall

                   [- -]

$ postmap /etc/postfix/virtual_maps
$ postfix reload

-- 
  Philip Reynolds        
   RFC Networks          tel: 01 8832063
www.rfc-networks.ie      fax: 01 8832041


This archive was generated by hypermail 2.1.6 : Thu 06 Feb 2003 - 13:18:50 GMT