How to make permanent changes in exim.conf

dee_at_candl

Active Member
May 12, 2004
33
0
156
Hello,

I've smart_host_route in my exim_outgoing.conf, which I've to add everytime I upgrade/reinstall exim.

I tried using Exim configuration editor but it is not editable, this code sits below the sa_localuser entry.

I also tried to edit exim.conf.buildtest but it didn't work for me. If I am right, exim.conf.local stores the changes made through Exim configuration editor but I couldn't edit it, couldn't understand where exactly to put my code so it works properly.

This is my smart_host_route entry in exim_outgoing.conf

sa_localuser:
driver = accept
check_local_user
headers_add="${perl{gensaheader}{$local_part}}"
condition = "${perl{checkusersa}{$local_part}{$received_protocol}}"
domains = ! lsearch;/etc/userdomains
transport = local_sa_delivery


#my additional route

smart_host_route:
driver= manualroute
transport = remote_smtp
route_list = domain.com mail-1.domain.com bydns


How can I make this change permanent? I think I need to edit exim.conf.local but I am not really sure where to put it.
 

tweakservers

Well-Known Member
Mar 30, 2006
379
0
166
the correct file should /etc/exim.conf . if you are getting permission error on editing the file, check and make sure the file is not write-protected
 

chirpy

Well-Known Member
Verifed Vendor
Jun 15, 2002
13,462
25
473
Go on, have a guess

slingky

Registered
Jun 6, 2006
3
0
151
please Chirpy, could you help me.

I currently use mailscanner with exim.
All is working good including quarantine.

I just don't get smart router

It was functionning before mailscanner, but now, it seems not.

I added this before mailscanner defer router :

static_route:
driver = manualroute
transport = remote_smtp
route_list = domain.com ip

# where ip is x.x.x.x

it doesn't seems to work, if the user for domain.com is created locally, mails get delivered locally, if the user is not created locally, i see ":backhole:" in exim_mainlog.

nothing to remote smtp server.

thanks in advance.
 

slingky

Registered
Jun 6, 2006
3
0
151
i found !

I had to put smart router in /etc/exim_outgoing.conf

sorry....

But i have another question.

It's about quarantine.
With qmailscanner, i just mv files from quarantine folder to user maildir.

But now, with mailscanner, how to mv files from quarantine to user maildir ?
it creates a directory stuture like %date%/spam/*

sorry, i don't have a good knowledge of all unix commands and/or perl bash scripts...

P.S. i think mailwatch would be a too much work to install.

thanks again.