Not sure who has seen this problem but certainly on Fedora Core 5, postfix in its default configuration allows relaying from all subnets local to the machine, including local internet subnets on your ISP if your machine is connected directly to the internet. This is not necessarily obvious as testing by other sources to see if your machine is an open relay will not reveal this misconfiguration.
I discovered this after Postfix had crashed under the weight of spam a machine on my ISP's local subnet was sending through me.
The fix is to change
I debugged this and was up to 2am last night clearing up after the mess.
I discovered this after Postfix had crashed under the weight of spam a machine on my ISP's local subnet was sending through me.
The fix is to change
mynetworks_style from the default of subnet to host. You do use authenticated sending only, right? (check smtpd_recipient_restrictions includes permit_sasl_authenticated and not a lot else).I debugged this and was up to 2am last night clearing up after the mess.
no subject
Date: 2008-04-09 09:25 am (UTC)... however I don't understand more than every 2nd word :-)
And as someone that has fretted for a couple of years now about setting up a Linux box as a mailserver/fileserver/webserver (local and out to the world) because I have no real idea of what security holes I might leave open, this is probably useful but very worrying at the same time ...
... eek!
no subject
Date: 2008-04-09 09:27 am (UTC)no subject
Date: 2008-04-09 09:44 am (UTC)That's a gurt big craphole of a security flaw.
Just checked my linux machines at work, but I was ok, as I only had postfix on one machine (I tend to prefer sendmail... )
no subject
Date: 2008-04-09 09:55 am (UTC)no subject
Date: 2008-04-09 10:02 am (UTC)no subject
Date: 2008-04-09 10:08 am (UTC)no subject
Date: 2008-04-09 10:26 am (UTC)no subject
Date: 2008-04-09 10:39 am (UTC)no subject
Date: 2008-04-09 10:41 am (UTC)no subject
Date: 2008-04-09 10:42 am (UTC)The postfix default is perfectly sensible, for most sane networks, it just doesn't match your particular setup well - but then this is why one reads the configs and doesn't leave things on the defaults right? :)
(I tend to be fairly fascist with my mailservers, they're lucky if I let anyone relay anything through them ever :))
no subject
Date: 2008-04-09 10:49 am (UTC)Perhaps ISPs should have each node on its own subnet; there are probably some reasons why this is not suitable, but even so.
My argument is that most sane mail programs have sensible defaults - I'm not sure relaying from ALL subnets is a sensible default, regardless of the environment the server is provisioned in.
no subject
Date: 2008-04-09 10:55 am (UTC)fixing someone else's stupid mistakes in sendmaildoing sendmail support stuff. So when it comes time to doing mail stuff, I normally know that off the top of my head :Dno subject
Date: 2008-04-09 12:36 pm (UTC)For corporate internet mail servers then the network is liable to be set up in a way that there isn't a big untrusted subnet that you're connected to like this. For most non-cable xDSL type ISPs, your public address is normally a /30 or similar, not a big subnet.
I'm also not sure if what you've got there is a *postfix* default, or a Fedora default, since most distros seem to fiddle with the config files to some extent.
I'd personally be happier with a default of 'trust no-one', but I suspect that distros then have to deal with a million idiot users going 'why can't I send mail at all from my machine' etc :)
no subject
Date: 2008-04-09 12:40 pm (UTC)I have joined the postfix development mailing list and put across my point. </me dons flameproof boilersuit>
no subject
Date: 2008-04-09 02:16 pm (UTC)no subject
Date: 2008-04-09 07:05 pm (UTC)no subject
Date: 2008-04-09 07:06 pm (UTC)no subject
Date: 2008-04-09 07:07 pm (UTC)no subject
Date: 2008-04-09 07:07 pm (UTC)no subject
Date: 2008-04-09 07:09 pm (UTC)no subject
Date: 2008-04-09 07:10 pm (UTC)The letter did offer some advice on how to combat the problem if you're using Windows.. the only OS they support.
no subject
Date: 2008-04-10 11:57 am (UTC)