Gentoo Archives: gentoo-server

From: Michael Orlitzky <michael@××××××××.com>
To: gentoo-server@l.g.o
Subject: Re: [gentoo-server] Postfix Double Bounce Handling
Date: Mon, 14 May 2012 17:22:51
Message-Id: 4FB13F43.1090108@orlitzky.com
In Reply to: [gentoo-server] Postfix Double Bounce Handling by "Vinícius Ferrão"
1 On 05/14/12 12:38, Vinícius Ferrão wrote:
2 > Hello,
3 >
4 > I'm running a postfix mail filtering gateway in a hardened gentoo box
5 > and I really don't know what to do with double-bounced messages.
6 >
7 > Since we have a lot of spam bots attacking our infrastructure, the
8 > double bounce messages cannot be ignored and mail mail queue is growing
9 > with undeliverable double bounce messages.
10 >
11 > Any thoughts on what should be done to handle this?
12 >
13
14 If you are accepting mail for addresses that don't belong to you, stop!
15 That makes you a backscatter source, and will eventually (rightly) get
16 you blacklisted.
17
18 You said it's a mail filtering gateway... Usually the reason people
19 backscatter on a gateway is because "it's hard" to get a list of all
20 valid recipients; usually those recipients are on some other mail
21 server. There are ways to do it, though, and you must, e.g.
22
23 a) Run a cron job that pulls valid accounts every hour.
24
25 b) Store the email accounts in a database, and allow the gateway to
26 query the database to determine which users are valid.
27
28 c) Use recipient verification[1]. When receiving mail, your gateway
29 can open a connection to the real mail server in the background,
30 and see if the recipient is valid.
31
32
33 We use a combination of all three. We use (a) for an old Windows box,
34 (b) for users stored in Dovecot, and (c) for customers with their own
35 Exchange servers.
36
37 If you ask over on postfix-users and provide the output of `postconf
38 -n`, there are plenty of people who are able to give you tips relevant
39 to your specific configuration.
40
41
42 [1] http://www.postfix.org/ADDRESS_VERIFICATION_README.html#recipient

Replies

Subject Author
Re: [gentoo-server] Postfix Double Bounce Handling "Vinícius Ferrão" <viniciusferrao@××××××××××.br>