On Thu, Jul 01, 2010 at 02:46:38PM +1200, Srdan Dukic wrote: > I've got an email server which I use for testing various setups. > I am now trying to get this server to soft bounce all mail for a > particular address e.g. 'softbou...@example.com'. I am doing this
$config_directory/main.cf : smtpd_recipient_restrictions = check_recipient_access hash:$config_directory/softbounce [ ... ] # You do need the rest of your smtpd_recipient_restrictions $config_directory/softbounce : softbou...@example.com DEFER your reject message here If you're using a version older than 2.6, DEFER_IF_PERMIT should work, as the action. Or in any 2.3 or later, which is to say, any supported version of Postfix, you can use a custom 4xx error code. See $html_directory/postconf.5.html#smtpd_recipient_restrictions and $html_directory/SMTPD_ACCESS_README.html and $html_directory/access.5.html -- Offlist mail to this address is discarded unless "/dev/rob0" or "not-spam" is in Subject: header