On 3/4/2013 1:02 PM, Nicolas KOWALSKI wrote:
> Hello,
> 
> For a lab test, with several computers sending mail to any domain, I 
> would like to setup a postfix server accepting and storing locally to 
> only one account any mail received. It would be a sort of blackhole 
> relay server, but with mail kept locally, no mail going out from it.
> 
> Any idea on how to configure postfix this way?
> 
> Thanks,
> 


There's several ways to do this.  I think the easiest is:

# main.cf
header_checks = regexp:/etc/postfix/header_checks

in your header_checks file:
/./  REDIRECT some...@example.com


where "someone" is a valid local user, and "example.com" is listed
in mydestination.




  -- Noel Jones

Reply via email to