[Techtalk] Specifying "dead" email addresses: Postfix
Devdas Bhagat
devdas at dvb.homelinux.org
Sat Jun 5 23:22:16 EST 2004
On 05/06/04 17:31 +1000, Mary wrote:
<snip>
> I have a number of email addresses I would like to "kill", normally ones
> that have made it onto too many spam lists. Ideally I'd like to be able
> to do something like this in a Postfix virtual file:
>
> example.com virtual
> @example.com mary
> blah at example.com blah
> foo at example.com foo at example.net
> dead at example.com DEAD
In main.cf:
smtpd_recipient_restrictions = permit_mynetworks
permit_sasl_authenticated
reject_non_fqdn_hostname
reject_non_fqdn_sender
check_recipient_access hash:/etc/postfix/dead
reject_unauth_destination
reject_rbl_client sbl-xbl.spamhaus.org
$cat /etc/postfix/dead
dead1 at example.com REJECT
dead2 at example.com 550 No such user.
#Long line
dead3 at example.com 550 <dead at example.com>: Recipient address rejected: User unknown in local recipient table
>
> where the DEAD target for dead at example.com causes Postfix to return a
> 5xx error for any RCPT TO:<dead at example.com> messages I get.
>
> However "man 5 virtual" and "man postmap" don't give me any clues about
> how to mark a particular recipient as non-existant. I suppose I could do
> this.
Actually, what you are trying to do is control access to a mailstore.
Hence, you should be looking at access(5).
Devdas Bhagat
More information about the Techtalk
mailing list