logs archiveIRC Archive / Freenode / #exim / 2010 / March / 23 / 1
Faustov
Hello, could someone please have a look at my retry config? http://pastebin.com/nyeHLY3e <--- in this example there was a temporary network issue in delivery, but the mail was not resent accordingly to the retry configuration (in that link) - why would that happen?
I would expect re-sending the deferred message after 15 minutes, from the pasted log snipped it happened after 23 minutes - could this be a bug?
henk
it happened with the next queue runner process run after at least 15 minutes i guess...
Faustov
henk: apart from this message, there was quite some other messages to be routed to that IP, but exim assumed the same problem still exists with the remote host, adding the message "retry time not reached yet for this host" - and it took longer than the defined 15 minutes
Is there any way I can avoid that and get messages flushed out as defined?
henk
Faustov
oh, perfect
thanks!
uh
I'm actually running exim with -q15m
henk
Faustov: show those other mails' logs if you think something is wrong with them. there's nothing wrong with this one.
Faustov
henk: This is the only message that started queueing mail to that domain after the "connection refused" error. It does not appear in the logs anymore. Given my -q15m and the retry configuration, shouldn't this message get resent at 10:15?
henk
no, the host will be retried 15 minutes after failing _soonesT_
Faustov
I see
In that case what defines the upper boundary?
         

henk
the first queue run after those 15 minutes will try that host again, which can be up to 29 minutes later with a queue run interval of 15 minutes...
Faustov
ok I understand now
henk
:)
Faustov
can't say I like it :P
henk
you can have much finer retry rules: http://exim.org/exim-html-current/doc/html/spec_html/ch32.html and you can adjust the queue run intervals...
to every 10 minutes or 6 or whatever...
Faustov
yeah I'll definitely do that
henk
if you think that's necessary. bear in mind that email was never designed to be fast like instant messenging or something.
Faustov
yeah, of course
henk
iirc you shouldn't set it too low. with a large queue that could lead to a few dozens queue runner processes :-p
Faustov
I just needed a better grasp of this, as it doesn't have to be real time, but on the other hand, can't let it hold mail forever in the queue because of temporary errors
I'll lower it to 10m and that's it
henk
yeah, i'd probably try keeping the 15 mins queue runner and finetune retry intervals first. perhaps lower the interval to 12 or or 10 mins, but not less. atm i even use a 30m interval on my servers...
Faustov
I'm not quite sure about the logic to have a separate rule for the queue runner and retry rules - wouldn't it be better if everything was controled by retry rules?
henk
they'd have to be handled a bit like cron then. on larger systems that'd probably spawn at least one queue runner every minute, because some hosts retry time has been reached. kind of hard to handle then imho.
the way it is you have one queue runner started every X mins and that's it.
Faustov
I see
henk: does the queue runner die if mailq was empty - and gets started again after the time defined in -q?
henk
i think so, yes
Faustov
I've noticed the remote server I'm relaying mail to has the tendency of 1 minute outages resulting in "connection refused", so i've added a retry config of F 1h,3m; - but I can see a message in the queue for 14 minutes already
so it doesn't make much difference
Anyway I understand a lot more the whole concept, thanks :>
EdwardIII
hey
is there a way i can calculate e-mails per second, or minute or hour being processed by exim?
CunningPike
EdwardIII: existats
EdwardIII: Or eximon, for real-time info
EdwardIII
real-time, what's what i want
i'll check out eximon, thanks
ah wait, eximon is X?
Zathraz
geximon is, eximon is curses iirc
but why not run an X11 app remotely if it is on a server?
         

EdwardIII
you could use X11 forwarding i guess
CunningPike
EdwardIII: yes - all you need is xauth, and then you can redirect X via ssh
Zathraz
ssh -X and a local xserver will do the trick
EdwardIII
i'd rather stick with console myself though
we're seeing some high load and slowdown, i'm looking to identify the bottleneck
so first up i want to identify if we are just receiving a shed more e-mail than usual (or distributed differently throughout the day)
CunningPike
eximon is perfect for that - I run it all day here
EdwardIII: existats and logwatch will provide you with daily stats for the previous day - good for looking at trends'
EdwardIII
wicked, thanks for the tip - trying to set it up now
http://ftp.exim.llorien.org/eXimon/ - 0.9.0, is that what you run CunningPike?
CunningPike
EdwardIII: eximon is part of the exim package - should already be tehre
Zathraz
apt-get install eximon4
CunningPike
/usr/sbin/eximon
EdwardIII
i don't seem to have eximon
Zathraz: i'm on centos, yum search eximon doesn't seem to show anything
that eXimon tarball is weird
Zathraz
I am not much RPM oriented, but rpmfind.net (or something like that) cannot help you out?
EdwardIII
hrm had no luck, except for opensuse (i'm on centos 5) - the exim FTP actually contains rpms for exim-mon but they're only up to rhel3
i think i'll try downloading the source and seeing if i can extract eximon from it
CunningPike
EdwardIII: I'm on centos, too - exim-mon.i386
My bad - I thought it was part of the main exim package
EdwardIII
hmm which repo was that from CunningPike?
Warning: No matches found for: exim-mon
CunningPike
EdwardIII: Installed Packages
exim-mon.i386 4.63-3.el5
EdwardIII
hmm CunningPike - rpm -qa | grep exim-mon returns nothing here, nor yum search exim-mon
i tried grabbing the source but it's actually a little more complicated than other apps
CunningPike
EdwardIII: http://mirror.centos.org/centos/5/os/i386/CentOS/exim-mon-4.63-3.el5.i386.rpm
EdwardIII
ah wait.... i have a clue
damnit, sorry, timewasting
exclude=apache* bind-chroot courier* dovecot* exim*
CunningPike
Heh
EdwardIII
i'll come clean, i have actually got a specialist package - exim-4.69-23.1_cpanel_maildir
CunningPike
EdwardIII: Ah - that'll do it
EdwardIII
right, i've got the package installed. it seems to have included eximon and eximon.bin. eximon just sits there doing nothing, eximon.bin segfaults
party time
now rpm does say it's defo X, but someone earlier said they thought it was curses?
CunningPike
EdwardIII: SOunds like your experiencing the curses bit - but it is an X app :)
EdwardIII
sorry i'm confused?
CunningPike
EdwardIII: You run the eximon (which is a shell that executes eximon.bin)
EdwardIII: Weak humor
EdwardIII
heh yes terrible
is there like a curses version of this?
X11 forwarding might be a bit of a pain. i've got of the xorg libs etc on the server but no actual windowing environment at all
CunningPike
EdwardIII: Try 'sudo /bin/sh -x /usr/sbin/eximon' - that will give debug output from the shell script
EdwardIII: All you need is xauth, iirc
EdwardIII
what a good idea
(Action) installs xorg
might be fun to run gui apps from the server i guess
xorg-x11-xauth rather
seems to be stuck at a certain step: http://pastebin.com/LGCK65G2
hmm anyone remember that really handy app that worked with putty for X11 forwarding? i think it may have had 'ming' in the name
Xming, that's it
CunningPike
EdwardIII: Is your exim.conf in a non-standard place?
EdwardIII
i have a /etc/exim.conf
i guess i could try that sed statement myself or something
CunningPike
EdwardIII: add '/etc/exim.conf' after /etc/exim/exim.conf in the shell script, or symlink
EdwardIII: Meeting - biab
EdwardIII
well i'm off home now
but thanks very much for all your help
« prev next »