Exim - smarthost not working for uservacation and userautoreply

Mark_072

New member
Joined
May 30, 2018
Messages
4
Hi, Goodmorning,

I have a question regarding Exim, smarthosts and uservacation messages that hopefully someone can help me with.

We used this tutorial to configure Exim to send regular e-mail true an external smarthost (external smtp server).
This works great for regular e-mail but not for uservacation and userautoreply e-mails.

This is working great for normal e-mails:
Bash:
begin routers

spamexperts_smarthost_router:
  driver = manualroute
  domains = ! +local_domains
  ignore_target_hosts = 127.0.0.0/8
  condition = "${perl{check_limits}}"
  # Exclude null sender messages from relaying via the smarthost
  condition = ${if or {{!eq{$sender_address}{}} {!eq{$sender_host_address}{}}}}
  headers_add = ${if !eq{$original_domain}{$domain}{X-Forwarded-For: $original_local_part@$original_domain}}
  headers_add = X-AuthUser: $authenticated_id
transport = spamexperts_smarthost_transport
route_list = $domain OURRELAYSERVER::587
no_more

with

spamexperts_smarthost_transport:
  driver = smtp
# In-case your server continues to send outbound over port 25 please add the below line
port = 587
  hosts_require_tls = OURRELAYSERVER

Unfortunately this does not work for this part:

Bash:
uservacation:
   driver = accept
   condition = ${lookup{$local_part} lsearch {/etc/virtual/${domain}/vacation.conf}{yes}{no}}
   require_files = /etc/virtual/${domain}/reply/${local_part}.msg
   transport = uservacation
   unseen
  
AND
  
## 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: {Autoreply: ${quote:${escape:$h_Subject:}}} {I am on vacation}}"
  text = "\
        ------                                                           ------\n\n\
        This message was automatically generated by email software\n\
        The delivery of your message has not been affected.\n\n\
        ------                                                           ------\n\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 can't seem to get my head around how I should configure the uservacation to use OURRELAYSERVER.

Any help is much appreciated!
 
Back
Top