Page 1 of 1

how to edit exim.conf in VestaCP

Posted: Mon Aug 17, 2015 2:15 pm
by only4mohan
Hello,
Does anyone know how to edit exim.conf in vestaCP? I need to disable ipvp6 in exim. I have vestaCP with centos.

Please give me directions

Thank you

Re: how to edit exim.conf in VestaCP

Posted: Mon Aug 17, 2015 2:34 pm
by skurudo
ssh console -> /etc/exim/exim.conf

Code: Select all

disable_ipv6 = true
Config and log locations on a RHEL and CentOS:
https://vestacp.com/docs/#config-log-lo ... hel-centos

Re: how to edit exim.conf in VestaCP

Posted: Mon Aug 17, 2015 2:44 pm
by only4mohan
When i try it in SSH, error coming saying

-bash: /etc/exim/exim.conf: Permission denied

Re: how to edit exim.conf in VestaCP

Posted: Mon Aug 17, 2015 2:45 pm
by skurudo
only4mohan wrote:When i try it in SSH, error coming saying
-bash: /etc/exim/exim.conf: Permission denied
Use some editor nano or vi

Code: Select all

nano /etc/exim/exim.conf
or sudo nano (when you're not root)

Re: how to edit exim.conf in VestaCP

Posted: Mon Aug 17, 2015 3:11 pm
by only4mohan
its says,

-bash: nano: command not found

Re: how to edit exim.conf in VestaCP

Posted: Mon Aug 17, 2015 3:15 pm
by only4mohan
vi is working.

Can you tell me how to save the configuration after i done?

Re: how to edit exim.conf in VestaCP

Posted: Mon Aug 17, 2015 3:52 pm
by only4mohan
Thanks for the help. But could you help me with how to delete the swap file i have accidentaly created.

this one "/etc/exim/.exim.conf.swp"

Re: how to edit exim.conf in VestaCP

Posted: Mon Aug 17, 2015 10:08 pm
by tjebbeke
I think it is better to first learn to work in linux for doing this. Simply removing it with rm.

Re: how to edit exim.conf in VestaCP

Posted: Tue Aug 18, 2015 7:15 am
by skurudo
only4mohan wrote:its says,
-bash: nano: command not found

Code: Select all

yum install nano
It's a little simpler for work. (for my opinion)

Re: how to edit exim.conf in VestaCP

Posted: Tue Aug 18, 2015 7:16 am
by skurudo
only4mohan wrote:vi is working.
Can you tell me how to save the configuration after i done?
ESC -> :wq
http://www.washington.edu/computing/unix/vi.html