Exim 4.84 e-mails aren't sent

ShinJii

Verified User
Joined
Mar 20, 2014
Messages
224
Hi,
Yesterday I just discovered that e-mails aren't sent from 40 days... lol.... they're in queue in directadmin, I think it's since I updated all (spamassasin,exim etc) with custom build 2.0 plugin in directadmin panel.

When I click retry on some e-mails there's error like:
Code:
2015-01-08 22:17:06 1XuvGo-0000qF-NW == biuro@xxxxx R=virtual_user T=virtual_localdelivery defer (-25): failed to expand headers_add or headers_remove while writing to tmp/1420751826.H456438P23528.xxxxx.pl: missing } at end of string

I saw this thread - http://forum.directadmin.com/showthread.php?t=49453 but in my config headers_add are the same like in this fix ;/ help me, because my clients don't get e-mails from their websites lol.

Some info (exim -bV):
Code:
[root@wygasam ~]# exim -bV
Exim version 4.84 #3 built 29-Nov-2014 16:29:13
Copyright (c) University of Cambridge, 1995 - 2014
(c) The Exim Maintainers and contributors in ACKNOWLEDGMENTS file, 2007 - 2014
Berkeley DB: Berkeley DB 4.7.25: (September 12, 2013)
Support for: crypteq IPv6 Perl OpenSSL move_frozen_messages Content_Scanning DKIM Old_Demime PRDR OCSP
Lookups (built-in): lsearch wildlsearch nwildlsearch iplsearch cdb dbm dbmjz dbmnz dnsdb
Authenticators: cram_md5 dovecot plaintext spa
Routers: accept dnslookup ipliteral manualroute queryprogram redirect
Transports: appendfile/maildir/mailstore/mbx autoreply lmtp pipe smtp
Fixed never_users: 0
Size of off_t: 8
Configuration file is /etc/exim.conf


And headers_add from config file:

Code:
virtual_localdelivery:
  driver = appendfile
  create_directory
  delivery_date_add
  directory_mode = 770
  envelope_to_add
  directory = /home/${lookup{$domain}lsearch*{/etc/virtual/domainowners}{$value}}/imap/${domain}/${local_part}/Maildir
  maildir_format
  group = mail
  mode = 660
  return_path_add
  user = "${lookup{$domain}lsearch*{/etc/virtual/domainowners}{$value}}"
  quota = ${if exists{/etc/virtual/${domain}/quota}{${lookup{$local_part}lsearch*{/etc/virtual/${domain}/quota}{$value}{0}}}{0}}
## headers_remove = Subject
  headers_add = "${if def:h_X-DirectAdmin-Sender:{Content-Type: text/plain; charset=utf-8\nContent-Transfer-Encoding: 8bit\n}}"
## vacation transport
uservacation:
  driver = autoreply
  file = /etc/virtual/${domain}/reply/${local_part}.msg
  from = "${local_part}@${domain}"
  log = /etc/virtual/${domain}/reply/${local_part}.log
  no_return_message
  subject = "${if def:h_Subject: {Automatyczna odpowiedź: ${quote:${escape:$h_Subject:}}} {Wiadomość urlopowa}}"
  text = "\
          ----------------------------------------------------------------------\n\
                Poniższa wiadomość została wygenerowana automatycznie\n\
                proszę na nią nie odpowiadać\n\
          ----------------------------------------------------------------------\n\n"
  headers ="Content-Type: text/plain; charset=utf-8\nContent-Transfer-Encoding: 8bit\n"
  to = "${sender_address}"
  user = mail
  #once re-added May 16, 2008:
  once = /etc/virtual/${domain}/reply/${local_part}.once
  once_file_size = 100K
  once_repeat = 2d
 
I thought I have different headers_add than him lol... I don't know why... maybe I was sleepy... I did it right now, hmmm but still when I click "retry" in Mail Queue Administration nothing happend... e-mail still is in this queue (yes I click thaw too)
 
Even if I downgrade exim to 4.83 it still doesn't work;/// help!! it's very important
 
I really doubt it is related to Exim version but most likely from exim.conf

What exim.conf are you using (there should be a version in the first 3 lines)?

Have you tryed in case to switch to exim.conf 4.2 (or even 4.3) from CustomBuild?

Regards
 
Code:
 SpamBlocker.exim.conf.2.1.1-release                #
#                             05-Jun-2007                            #
#   Runtime configuration file for DirectAdmin/Exim 4.24 and above   #
#          Requires exim.pl dated 20-Apr-2007 17:09 or later

lol...

And when I try to update exim configuration from custom build plugin there's
Code:
You cannot update Exim configuration files, because you do not have it set in options.conf file.


EDIT: I updated options in custom build, now is exim 4.3 and e-mails are working! THANKS!!!
 
Last edited:
Back
Top