Author Topic: how to update a file?  (Read 883 times)

ace2721

  • Zen Apprentice
  • *
  • Posts: 5
  • Karma: +0/-0
    • View Profile
how to update a file?
« on: November 17, 2014, 11:46:54 am »
Hi Guys

I would appreciate any help please I am new to Zentyal as i am trying to convert from Windows but at the moment its not going great.

I need to amend the following file main.cf.mas

but I am trying to get my head around the fact that you just cant edit config files

now  what I have read is that I need to create a custom template file that edits main.cf.mas which is located usr/share/zentyal/stubs/mail/ and you should put the file into a folder etc/zentyal/stubs/mail/ but the stubs and mail folders are not there do i just create these?

next question is I only need to  Uncomment the three last lines in this file:


/usr/share/zentyal/stubs/mail/main.cf.mas

# % if ($openchangeProvisioned) {
# smtp_generic_maps = hash:/etc/postfix/generic
# % }

but how do i do that

i would appreciate your help guys I really would been trying to do this for 5 days now and just not getting anywhere

thanks again

robb

  • Guest
Re: how to update a file?
« Reply #1 on: November 17, 2014, 02:51:33 pm »
Uncomment 3 lines: delete the hashtags in front of the line and save the file.
using nano in terminal:
sudo nano /usr/share/zentyal/stubs/mail/main.cf.mas
use arrowkeys to go to the hashtag to be deleted (put cursor on top of the #)
hit delete
hit <ctrl - o> [enter] to save the file
hit <ctrl - x> [enter] to exit nano
« Last Edit: November 17, 2014, 02:55:11 pm by robb »