Categories
OS tricks

Exim and sender verification

As I said I’ve been wrestling with Exim for the last couple of days. The mess started when I started as MX for a new domain with primarily forwarding to a couple of external addresses.

The problem occurred because the server the mails were forwarded to checked the domain in the sender address. My current Exim setup didn’t do this, and thus accepted a bunch of spam mail which it tried to forward to the external server. No surprise, it got rejected. But because the domains were false I got a hughe queue with bounce-messages that could not be delivered.

So I decided, what the heck I could turn sender verification on too. It’s not like I have enormous loads, so I could handle the overhead. Bad idea. 😉 It seems the sender verification just checks for A-records. Domains that have no A-record, but have MX records were getting rejected. Not very popular when one of my users got a mail bounced from a business associate. 😉 So stay away from the option if you’re running Exim.

Categories
Development

Weird VM bug to take note of

A weird bug in the hotspot compiler. These are the kind of bugs you don’t want to run into. I usually have enough trouble tracking down my own bugs. 😉 There’s a bugreport here. It looks like it only affects the Solaris version.

Categories
OS tricks

Exim4 commands

Alright. I’ve been wrestling with my Exim configuration the last couple of days. It seems I have to learn all the commands all over each time I find a problem so here is a short list for me to remember:

  • exim4 -Mlv [msg-id] : list history
  • exim4 -Mlb [msg-id] : list body
  • exim4 -Mlh [msg-id] : list header
  • exim4 -qff : force queue run, even on frozen messages
  • exim4 -M [msg-id] : force queue run on given message
  • exim4 -Mrm [msg-id] : delete message

I also found this snippet that should delete all messages that are beeing bounced back to non existent recipients (spammers):
exiqgrep -f "<>" -i | xargs exim -Mrm