Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 6 of 6
  1. #1
    Member
    Join Date
    May 2004
    Posts
    33

    Default How to make permanent changes in exim.conf

    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. #2
    Member
    Join Date
    Mar 2006
    Posts
    378

    Default

    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
    Tweakservers | Professional Server Setup & Security Hardening
    Authorised SmarterTools Reseller, SSL Certificate & TRUSTe Privacy Policy

  3. #3
    Super Moderator This forum account has been confirmed by cPanel staff to represent a vendor. chirpy's Avatar
    Join Date
    Jun 2002
    Location
    Go on, have a guess
    Posts
    13,495

    Default

    No you should not edit exim.conf as it will simply be overwritten and you should never chattr that file or any other exim file.

    You can setup smart routers easily within the exim configuration editor with:
    http://forums.cpanel.net/showthread....t=smart+router
    Jonathan Michaelson

    Need your cPanel servers secured and tuned?
    cPanel Server Configuration, Security, Recovery and Antivirus/AntiSpam Services
    Developers of the most effective (and free) Firewall & Security Solution for cPanel Servers - csf
    http://www.configserver.com

  4. #4
    Registered User
    Join Date
    Jun 2006
    Posts
    3

    Default

    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. #5
    Registered User
    Join Date
    Jun 2006
    Posts
    3

    Default

    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. #6
    Member
    Join Date
    May 2004
    Posts
    33

    Default

    Quote Originally Posted by chirpy
    No you should not edit exim.conf as it will simply be overwritten and you should never chattr that file or any other exim file.

    You can setup smart routers easily within the exim configuration editor with:
    http://forums.cpanel.net/showthread....t=smart+router
    Fantastic! Excellent! Work's great and no more editing headches!

    Thanks Jonathan!

Similar Threads & Tags
Similar threads

  1. Permanent changes to PHP.CONF
    By legalbrr in forum cPanel and WHM Discussions
    Replies: 3
    Last Post: 05-24-2011, 07:27 PM
  2. How can I make customizations to httpd.conf stick?
    By jols in forum cPanel and WHM Discussions
    Replies: 4
    Last Post: 08-20-2010, 11:20 PM
  3. exim disregarding permanent errors
    By bking in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 01-03-2008, 03:09 AM
  4. Exim changes permanent
    By screege in forum cPanel and WHM Discussions
    Replies: 8
    Last Post: 01-06-2007, 08:18 AM
  5. What changes can I make to sysctl.conf to make the server perform better?
    By BianchiDude in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 12-11-2005, 11:25 AM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube