Gah!

Jun. 15th, 2007 04:40 pm
[identity profile] spooforbrains.livejournal.com posting in [community profile] techrecovery
A some-time client of mine has a mail/web server hosted at a hosting company. This server is running Debian - fairly stock config - and exim4. I was tasked, some time ago, with configuring this environment appropriately for their webapp - a primary function of which is sending mail.

Well, being unfamiliar with Debian at the time, I did my best, hacked the changes necessary into their existing config and got it working. Some time later, when they wanted SMTP authentication, I did some reading up, and found out the following:



You don't edit the config files yourself on Debian (as this company had been doing). You choose to use the monolithic config, or the split config, and then you set the relevent options using pkg-config (or add the variables into a file by hand), edit the template files, and run update-exim4.conf which will amalgamate all of these changes into the main config file, stored somewhere under /var.



So, I took this opportunity to configure the mail setup properly, using the split config. Took me a few hours one evening to get it all sorted properly. Then, thinking maybe they might see that exim4.conf was missing and think everything was broken, I put the following file, named README.IMPORTANT in the /etc/exim4.conf directory:


IMPORTANT

exim4.conf is no longer used. The debian split config scheme is now being used.

Replacing exim4.conf will cause the mail system to break.

Regards,

Wolf


Their external firewall was set to forward from a high port, externally, to port 25 on the machine, so that SMTP was accessible externally but on a non-standard port.

Everything was rocking along fine.

So, yesterday I get a mail stating that the mail system is broken, and can I please investigate. A cursory investigation shows me that everything is working on the machine, but the external port is closed. I send a mail back to this effect.

This morning, I notice that mail is working again, and think nothing much more of it.

Some time later, I get ANOTHER mail, reporting that mail is again broken.

So, apparently, their tech has checked the machine in response to a support request, found it not listening on the high port (which it shouldn't, it listens on 25), surmised therefore that everything is broken (which it isn't) and has put back a copy of exim4.conf, overriding all my changes.

*HEADDESK* *HEADDESK*

So now I have to wait for him to finish dicking about before I can check just how badly it's broken and fix it. *sigh*

ETA: I should mention that they put the port forward in place at our request, so they bloody well should have known about it.

Date: 2007-06-15 04:47 pm (UTC)
From: [identity profile] lihan161051.livejournal.com
So maybe a better name for that file would have been:

'exim4.conf HAS BEEN REMOVED INTENTIONALLY'

.. ?

:D

Date: 2007-06-16 02:07 am (UTC)
From: [identity profile] wherdafux-d-cat.livejournal.com
Nah, name it AA-HOT.PORN or AA-SEXXY.TXT or such. That'll guarantee it gets read. ;D

Date: 2007-06-15 07:55 pm (UTC)
From: [identity profile] jon787.livejournal.com
Why you are using exim4 instead of postfix?

Date: 2007-06-15 08:35 pm (UTC)
From: [identity profile] jon787.livejournal.com
Cause the tech got confused and fucked it all to hell :P I was curious if there was a specific reason or if it was just cause thats what debian installs by default.

If its working there is no reason to change, but if you get a chance play with postfix sometime. I find it to be far simpler to configure.

Date: 2007-06-16 01:39 am (UTC)
ext_8716: (Default)
From: [identity profile] trixtah.livejournal.com
My problem with Exim as opposed to Postfix is that it isn't under active development by the original developer. It's a bunch of other people who write addons and enhancements to it. This is fine, in terms of the open source model, but I prefer a product that has some kind of governance as to what becomes part of the core (or that the stuff that *should* be part of the core - such as TLS - gets incorporated once the technology is mature).

My thing with it too is that it's fine to configure the basics, but it would have been fairly difficult to use it as a gateway for a bunch of Exchange servers (no bridgehead for the Exchange org) the way I'm doing now.

I hope you get it fixed and running again! If something's working, then don't screw with it. I wish I had a branding iron so that I could firmly etch that principle into certain cowboy techies' brains...

Profile

techrecovery: (Default)
Elitist Computer Nerd Posse

April 2017

S M T W T F S
      1
2345678
91011121314 15
16171819202122
23242526272829
30      

Most Popular Tags

Style Credit

Expand Cut Tags

No cut tags
Page generated Mar. 19th, 2026 09:00 pm
Powered by Dreamwidth Studios