The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

How to make permanent changes in exim.conf

Discussion in 'General Discussion' started by dee_at_candl, Jun 6, 2006.

  1. dee_at_candl

    dee_at_candl Active Member

    Joined:
    May 12, 2004
    Messages:
    33
    Likes Received:
    0
    Trophy Points:
    6
    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.
     
  2. tweakservers

    tweakservers Well-Known Member

    Joined:
    Mar 30, 2006
    Messages:
    379
    Likes Received:
    0
    Trophy Points:
    16
    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
     
  3. chirpy

    chirpy Well-Known Member

    Joined:
    Jun 15, 2002
    Messages:
    13,475
    Likes Received:
    20
    Trophy Points:
    38
    Location:
    Go on, have a guess
  4. slingky

    slingky Registered

    Joined:
    Jun 6, 2006
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    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.
     
  5. slingky

    slingky Registered

    Joined:
    Jun 6, 2006
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    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.
     
  6. dee_at_candl

    dee_at_candl Active Member

    Joined:
    May 12, 2004
    Messages:
    33
    Likes Received:
    0
    Trophy Points:
    6
    Fantastic! Excellent! Work's great and no more editing headches! :D

    Thanks Jonathan!
     
Loading...

Share This Page