Exim -- Emails not resending after

jim.thornton

Verified User
Joined
Jan 1, 2008
Messages
334
I'm currently testing my email setup via allaboutspam.com and I would like to see if I correctly setup the dkim.

I have sent an email but it is sitting in the queue and has been there for 19 minutes now. I set the configuration file to resend after 10 minutes. Any suggestions why this wouldn't be sending?

Here is the appropriate section of my exim.conf file:
Code:
######################################################################
#                      RETRY CONFIGURATION                           #
######################################################################

# This single retry rule applies to all domains and all errors. It specifies
# retries every 15 minutes for 2 hours, then increasing retry intervals,
# starting at 1 hour and increasing each time by a factor of 1.5, up to 16
# hours, then retries every 8 hours until 4 days have passed since the first
# failed delivery.

# Domain               Error       Retries
# ------               -----       -------


begin retry

*                      *           F,2h,10m; G,16h,1h,1.5; F,4d,8h
 
It did eventually send after about 17 minutes.

Is there a reason why it wouldn't have been within 10 minutes like set in the config file?
 
Here are the Exim Logs:

http://pastebin.com/nvbJECqF
** The link will only be valid for 24 hours from now.

I don't understand what I'm suppose to be looking for. The reason for the delay was because the other server was setup for greylisting. It returned a 452 immediately saying try again later. My exim is setup to re-try every 10 minutes for the first 2 hours.

My question is why didn't exim re-send that message until 17 minutes had passed?
 
To get an answer on your question you should check exim logs, nobody here knows it for sure without detailed information from your server. We can only guess, but that's a waste of time in most cases.

From your link I see lines related to several different emails. To get lines related to one exact email together you should use exigrep:

Code:
exigrep <Message-ID> /var/log/exim/mainlog

replace <Message-ID> with a real message ID of your email or any other string which matches an email. Then please copy-paste them in the thread.
 
I have run the command asked. Here are the results

http://pastebin.com/Vvpk0xeZ

You will notice at 20:13:10 the message was sent from my server to the allaboutspam email address.

At 20:13:18 I got a response from the server with an error code 452 saying the message was greylisted.

At 20:38:11 it looks like my server re-sent the message immediately getting the bounce back with the URL in it to check out the report on their server.

It took 25 minutes to re-send the message when the exim.conf file is set to 10 minutes. I don't understand why.
 
To know reasons you might need to make exim to log more details.

modify /etc/exim.conf to the following view:

Code:
log_selector = \
  +all \
 -rejected_header \
 -pid

restart exim and re-try to send an email.

There might different reasons on why email was deferred, for example if your server load was too high. Check:

deliver_queue_load_max =
queue_only_load =
queue_run_max =

in your exim.conf. And so on.

Also you might want to read this official doc: http://www.exim.org/exim-html-current/doc/html/spec_html/ch-how_exim_receives_and_delivers_mail.html
 
Back
Top