John wrote regarding 'Re: [SLE] Locking a mailbox?' on Thu, Jan 20 at 15:30:
On Thursday 20 January 2005 04:25 am, Patrick Shanahan wrote:
* John Andersen
[01-20-05 01:15]: I have several ex-employee accounts that are still getting mail. The data structures in their directories are something we want to keep. so we don't want to delete the accounts.
Is there any way to close a mailbox in Linux so that incoming mail just bounces (user unknown or something?)
add line to /etc/postfix/header_checks: /^To:.*<user-name>@<domain>/ REJECT <optional text reason> then run: postmap /etc/postfix/header_checks rcpostmap restart
Ouch, then I'd have to install postfix... ;-)
It's a drop-in replacement, as far as the binary locations are concerned - and the config file's much easier to parse. Maybe this'd be a good time to switch over to a good MTA. ;)
Sort of forgot that detail, I'm running Sendmail - procmail
You could alias them to an unknown user - that'd get the "user unknown" message, and be just as ugly as an M4 file... You could alias them to /dev/null, but you're wasting a small amount of bandwidth that way. --Danny, who hates sendmail (bad experiences)