Hello,
My postfix manages mail for a number of domains, e.g. gtwm.co.uk. The
MX records are set so that mail is filtered through a third party spam
catcher.
However the server has one domain that is the 'main' hostname of the
server, listed in /etc/hosts:
62.73.174.227 eul0001189.eu.verio.net eul0001189
and in 'mydestination' in /etc/postfix/main.cf
The MX record for this just points to itself:
eul0001189.eu.verio.net. 3600 IN MX 100 eul0001189.eu.verio.net.
Addresses are mapped to accounts in /etc/postfix/virtual, e.g.
[email protected] wmoliver
Now the problem is that if a spammer sends email directly to [email protected]
it bypasses the third party spam filter and gets delivered. This has
been happening.
I've tried removing eul0001189.eu.verio.net from mydestination but
this stopped any mail from being able to be delivered, probably
because address rewriting uses this as the final destination. e.g.
here is some of the header of an example mail to [email protected]
X-Original-To: [email protected]
Delivered-To: [email protected]
Received: from psmtp.com (eu1sys200amx108.postini.com [207.126.144.57])
by eul0001189.eu.verio.net (Postfix) with SMTP id 9B0AF66800A
for <[email protected]>; Fri, 15 May 2009 17:05:47 +0100 (BST)
Ideally I'd just like to block all email TO [email protected]
while still of course allowing [email protected] or any of the
other domains on the server. Are there any ways to accomplish this?
If not, would changing the MX records to pass that domain through the
filter too cause a problem?
Regards
Oliver Kohll