Error Writing /etc/exim.conf Permission Denied
Mail Permalink Changing Exim's Sending IP 4.69 (93.78%) 45 votes Anyone running a shared hosting server is probably now accustomed to dealing with constant complaints about blacklisting. It's exim's default setup on a cPanel server to use the shared IP of the server to send email, which means that all your clients on one server are sending out email on the same IP. All it takes is for one spammer to send out a mailing list or one customer to get hacked and run a Darkmailer script, and suddenly everyone on your server seems to be complaining about getting their mail bounced. You can change the server's IP address for sending email. Assuming you already have an IP set up on your server with a valid PTR, you probably already saw on the cPanel forums or some other location that you can simply change the interface lines in your /etc/exim.conf file and restart exim: remote_smtp:
driver = smtp
interface = ${if exists {/etc/mailips}{${lookup{$sender_address_domain}lsearch*{/etc/mailips}{$value}{}}}{}}
helo_data = ${if exists {/etc/mailhelo}{${lookup{$sender_address_domain}lsearch*{/etc/mailhelo}{$value}{$primary_hostname}}}{$primary_hostname}} dk_remote_smtp:
driver = smtp
interface = ${if exists {/etc/mailips}{${lookup{$sender_address_domain}lsearch*{/etc/mailips}{$value}{}}}{}}
helo_data = ${if exists {/etc/mailhelo}{${lookup{$sender_address_domain}lsearch*{/etc/mailhelo}{$value}{$primary_hostname}}}{$primary_hostname}}
dk_private_key = "/var/cpanel/domain_keys/private/${dk_domain}"
dk_canon = nofws
dk_selector = default In the above example, all you'd do is comment out the interface lines and replace them with: interface = xx.xx.xx.xx However, this tends to be a band-aid fix, as a cPanel update or any change made in WHM's Exim Configuration Editor will regenerate the Exim config and overwrite your change. To make this more permanent, you'll want to
be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. Page 1 of 2 12 Last Jump to page: Results 1 to 20 of 25 Thread: smtp server with ssl Thread Tools Show Printable Version Email this Page… Display Linear Mode Switch to Hybrid Mode Switch to Threaded Mode 01-24-2011,09:25 AM #1 Zagorax View Profile View Forum Posts Verified User Join Date Jan 2011 Posts 67 smtp server with ssl Hi, How can I add ssl encryption to my http://thecpaneladmin.com/changing-exims-sending-ip/ smtp server? Wich port will use this service? Thank you Reply With Quote 01-24-2011,10:18 AM #2 scsi View Profile View Forum Posts Verified User Join Date Aug 2008 Posts 4,687 It has it by default. Reply With Quote 01-24-2011,01:29 PM #3 Zagorax View Profile View Forum Posts Verified User Join Date Jan 2011 Posts 67 Really?? So, please, help me to discover why it doesn't work on my system. I have a centos 5.5 system with http://forum.directadmin.com/showthread.php?t=39122 directadmin. I disabled all iptables rules. I'm using evolution as client. Enabling SSL encryption it can't connect to the server, while with TLS i get "TLS currently unavailable". Thank you Reply With Quote 01-24-2011,01:30 PM #4 Zagorax View Profile View Forum Posts Verified User Join Date Jan 2011 Posts 67 And, of course, it works disabling encryption. Reply With Quote 01-24-2011,01:39 PM #5 scsi View Profile View Forum Posts Verified User Join Date Aug 2008 Posts 4,687 Try this command: openssl s_client -starttls smtp -crlf -connect localhost:587 Reply With Quote 01-24-2011,01:55 PM #6 Zagorax View Profile View Forum Posts Verified User Join Date Jan 2011 Posts 67 This is what I get: CONNECTED(00000003) 3457:error:140770FC:SSL routines:SSL23_GET_SERVER_HELLO:unknown protocol:s23_clnt.c:588 Reply With Quote 01-24-2011,01:59 PM #7 scsi View Profile View Forum Posts Verified User Join Date Aug 2008 Posts 4,687 Either your exim wasnt compiled for openssl or your /etc/exim.conf doesnt support it. http://help.directadmin.com/item.php?id=51 http://help.directadmin.com/item.php?id=125 Reply With Quote 01-25-2011,11:54 AM #8 nobaloney View Profile View Forum Posts Visit Homepage NoBaloney Internet Svcs - In Memoriam † Join Date Jun 2003 Location California Posts 26,124 @scsi: As a test of your lastest reply to this thread, I installed exim exactly as you write above using those two DirectAdmin Knowledgebase links. I get the same error as did Zagorax. Jeff
Mail ServerDovecot, Exim, RoundCube Post Reply Print view Search Advanced search 10 posts • Page 1 of 1 only4mohan Posts: 7 Joined: Mon Aug 17, 2015 2:03 pm how to https://forum.vestacp.com/viewtopic.php?t=9076 edit exim.conf in VestaCP Quote Postby only4mohan » Mon Aug 17, 2015 2:15 pm Hello,Does anyone know how to edit exim.conf in vestaCP? I need to disable ipvp6 in exim. I have vestaCP with https://debian-administration.org/article/140/Handling_mail_for_multiple_virtual_domains_with_exim4 centos.Please give me directionsThank you Top skurudo VestaCP Team Posts: 6123 Joined: Fri Dec 26, 2014 2:23 pm Location: Moscow Contact: Contact skurudo ICQ Website Facebook Google+ Skype Twitter YouTube Re: how to error writing edit exim.conf in VestaCP Quote Postby skurudo » Mon Aug 17, 2015 2:34 pm ssh console -> /etc/exim/exim.confCode: Select alldisable_ipv6 = trueConfig and log locations on a RHEL and CentOS:https://vestacp.com/docs/#config-log-lo ... hel-centos Top only4mohan Posts: 7 Joined: Mon Aug 17, 2015 2:03 pm Re: how to edit exim.conf in VestaCP Quote Postby only4mohan » Mon Aug 17, 2015 2:44 pm When i try it in SSH, error error writing /etc/exim.conf coming saying-bash: /etc/exim/exim.conf: Permission denied Top skurudo VestaCP Team Posts: 6123 Joined: Fri Dec 26, 2014 2:23 pm Location: Moscow Contact: Contact skurudo ICQ Website Facebook Google+ Skype Twitter YouTube Re: how to edit exim.conf in VestaCP Quote Postby skurudo » Mon Aug 17, 2015 2:45 pm only4mohan wrote:When i try it in SSH, error coming saying-bash: /etc/exim/exim.conf: Permission deniedUse some editor nano or viCode: Select allnano /etc/exim/exim.confor sudo nano (when you're not root) Top only4mohan Posts: 7 Joined: Mon Aug 17, 2015 2:03 pm Re: how to edit exim.conf in VestaCP Quote Postby only4mohan » Mon Aug 17, 2015 3:11 pm its says,-bash: nano: command not found Top only4mohan Posts: 7 Joined: Mon Aug 17, 2015 2:03 pm Re: how to edit exim.conf in VestaCP Quote Postby only4mohan » Mon Aug 17, 2015 3:15 pm vi is working.Can you tell me how to save the configuration after i done? Top only4mohan Posts: 7 Joined: Mon Aug 17, 2015 2:03 pm Re: how to edit exim.conf in VestaCP Quote Postby only4mohan » Mon Aug 17, 2015 3:52 pm 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
domains Many mail servers need to handle mail for multiple virtual domains. This can easily be achieved with Sendmail, postfix, or qmail. Here we'll cover how it's done with exim4 - the default mailserver for Sarge. This is an update to a previous article here: Handling mail for multiple domains with exim3. The upgrade from Exim3, the default mailserver for Woody, to Exim4, the default mail server for Sarge is a fairly painless process. We covered the upgrade process in upgrading from Woody to Sarge: Part 3 - Exim4, but just to recap: There are two main exim4 packages to choose from: exim4-daemon-light - A basic and functional server. exim4-daemon-heavy - A more complex server with advanced features. When using the exim4 package you have two choices: Use a single monolithic configuration file (As exim3 used). Using a split configuration system with a lot of small files. Installing Exim4 - if you need to Because I'm going to want to scan incoming mail for viruses as they are delivered, rather than filter them out myself once I've accepted them I will install the heavy version of the server: root@lappy:~# apt-get install exim4-daemon-heavy Reading Package Lists... Done Building Dependency Tree... Done The following extra packages will be installed: exim4-base exim4-config Suggested packages: eximon4 exim4-doc-html exim4-doc-info The following NEW packages will be installed: exim4-base exim4-config exim4-daemon-heavy 0 upgraded, 3 newly installed, 0 to remove and 0 not upgraded. Need to get 1033kB/1450kB of archives. After unpacking 1155kB of additional disk space will be used. Do you want to continue? [Y/n] Once this has downloaded you will start the debconf configuration process. The first question asked is 'Do you wish to use a single monolithic configuration file, or split files?' Here I chose the split file approach, to make future upgrades more simple. Once that was done you're left to choose the type of configuration you wish to use - I chose "an internet site", because I want to send and receive mail directly. This choice does affect the subsequent questions you'll have. Choosing the mail name should be obvious, as should choosing which addresses you wish the server to listen upon. Once that's done the basic setup is complete - but we've still got to handle the virtual domain setup. Handling Virtual Domains If you've just installed the server and you followed the