Exim4 Leftovers

I installed postfix when I setup my VPS and it uninstalled exim4. However there still a bunch of exim4 junk left on my server:

/etc/exim4/...
/var/lib/dpkg/info/exim4-...
/etc/rc0.d/K01exim4 thru 09
init.d still has a start exim4

Will it be ok to delete everything that has exim4 iin the pathname?

Thanks.


Similar Content



Exim4 Configuration

hello , can any one know about passwd.client which is in /etc/exim4/passwd.client file. in this file there are two fields
email and password as plain text eamil as a plain text is ok but password as a plain text not okey .
I want to know how to encrypt that pasword or hide like ***** in pasword field ..does anybody can help me with this ...i am new to this

Which Distro Would Be Best To Use For An In-house Email Server?

I am NEW to Linux. the most experience I have is I like to use Linux boot disks like knoppix and puppy. But I have been commissioned to build an email server for our company. I say build, but there already is a server here woth Redhat rel 9 (shrike) ker 2.4.26 already installed. The problem is, the last IT guy left and nobody knows the login info. I can't log into it. Should I re-install and just delete the partition, or is there a workaround?

Thank you to anyone who can help me....

Install Package On Centos 7

I use Centos 7 and have just installed vsftpd to the server , I want to start vsftp service after install , when I tried the command "systemctl |grep vsftp" , it show nothing .

I use previous , all services keep at /etc/rc.d/init.d , what I need to do is /etc/rc.d/init.d/vsftpd start .

Please advise what I need to do for Centos 7 to start vsftpd ?

thanks

Cannot Execute Binary File

hello everyone,
I created a script file (info.sh) in linux centos 6.
location of file is '/etc/init.d/info.sh'
content of file is:

#!/bin/sh
#To get the MAC address
ifconfig | grep HWaddr
#To get the HDD serial no.
hdparm -I /dev/sd? | grep 'Serial\ Number'
#To get the HDD size
hdparm -I /dev/sda |grep "device size"

gave the permission by: chmod 777 /etc/init.d/info.sh
but when i run this file by: /etc/init.d/info.sh
it gives an error like...
-bash: /etc/init.d/info: cannot execute binary file

what should i do?? Actually i have to run this file during boot up..

thanks in advance..

Deleted /sbin/init ... Recovered From Live CD, Still Will Not Boot?

Hi all,

Been messing around with my CentOS 6.6 VM trying to break stuff and learn with it. I thought it may be a good learning exercise to (ok, sounds a bit stupid, but purposely) delete /sbin/init to see how I could recover and learn.

I've booted into a recovery CD and recovered the /sbin/init file to my existing directory, however, I'm still having issues booting the machine.

Per Google suggestions, I have given the new init file 755 permissions but it still does not boot.

I apologize that I have not had more ideas, I am currently Googling solutions but am having a bit of trouble knowing where to start. Any suggestions would be greatly appreciated, thank you.

Ubuntu 'dpkg--configure-a' E: Dpkg Was Interrupted Error

Hi,
I am very new to linux, and frankly I do not know a whole lot about computers in general, as I'm entirely self taught, and that was all on windows. I really like the idea and concept of linux and ubuntu, and am in the process of learning. I have recently installed Ubuntu 8.04 LTS on an ex Vista computer at work (upon the urging by the boss). I can give more information on the system if needed. However, I think the problem may not be with the system. This is what I got. I installed the o/s and started downloading the updates from the list. As I tried to install Samba and Wine, all of a sudden things started to become complicated. As I'm doing this at work, and everyone is excited to 'play' with this new o/s, someone tried to download limewire as well, when I was away. I didn't see the error messages at that point, but they apparently had some message about java, and tried to shut everything down. Now when I came back, I get this message:

E: dpkg was interrupted you must manually run 'dpkg -- configure - a' to correct.
Problem E: _cache->open()failed

So, not knowing much about linux and even less about using the terminal, I did open the terminal, and typed in: dpkg--configure-a and hit enter. Then it tells me that that command is not found.

I have followed some other posts that deal with this problem, however, all the remedies that worked for them did not work for me. I could use some help, please. My other option is to just reinstall the o/s all over and start new. Thank you.

Rsync Question

Hey guys, I have rsync going to another remote server
it works good, however, lets say server A deleted a directory, server B wont sync up to it.

if I were to add a directory to Server A, then server B will add it as well. so server B is just not deleting stuff.

is there a proper rsync command i can use ?

would rsync -xzva --delete /src /dst delete everything and start the rsync from scratch? or is there another way to do this

Systemd And Loading Init File

I recently changed from Debian 7 to 8 which now uses systemd as the default init.
I had a init file that worked fine (see below) and works fine when directly invoked
Code:
$ sudo /etc/init.d/iptables start

however fails when indirectly invoked
Code:
$ sudo service iptables start
Job for iptables.service failed. See 'systemctl status iptables.service' and 'journalctl -xn' for details.

Code:
$ systemctl status iptables.service
 iptables.service - LSB: Iptable setup
   Loaded: loaded (/etc/init.d/iptables)
   Active: failed (Result: exit-code) since Mon 2015-05-25 17:18:37 PDT; 5s ago
  Process: 4825 ExecStart=/etc/init.d/iptables start (code=exited, status=203/EXEC)

Code:
$ journalctl -xn
No journal files were found.

I don't understand the error except that it "failed" and is loaded.
I have disabled and re-enabled the service with these commands:

Code:
sudo systemctl disable iptables
sudo systemctl enable iptables

which completes successfully but did not fix the problem.


INIT file
Code:
### BEGIN INIT INFO
# Provides:          iptables
# Required-Start:    $network $remote_fs $syslog
# Required-Stop:     $network $remote_fs $syslog
# Should-Start:      $portmap
# Should-Stop:       $portmap
# X-Start-Befo     nis
# X-Stop-After:      nis
# Default-Start:     2 
# Default-Stop:      1
# X-Interactive:     false
# Short-Description: Iptable setup
# Description:       Sets iptable rules
#                    
### END INIT INFO

ipt=/sbin/iptables

loadrules() {

if [ -e /etc/iptables_ruleset ]; then iptables-restore < /etc/iptables_ruleset && exit 0; fi

$ipt -F
$ipt -X

# Policies and Chains
$ipt -P INPUT DROP
$ipt -P FORWARD DROP
$ipt -P OUTPUT ACCEPT
$ipt -N SSH
$ipt -N WEBSERVER

$ipt -A INPUT -m conntrack --ctstate RELATED,ESTABLISHED -j ACCEPT
$ipt -A INPUT -i lo -j ACCEPT # Allow loopback

# Services
$ipt -A INPUT -p tcp -m multiport --dport 443,80 -j WEBSERVER # WEBSERVER chain 
$ipt -A INPUT -p tcp --dport 22 -m conntrack --ctstate NEW -j SSH # Jump to SSH chain
$ipt -A INPUT -p tcp -s 192.168.1.1/24 --dport 445 -j ACCEPT # samba

# Reject message for LAN
$ipt -A INPUT -s 192.168.1.1/24 -j REJECT

# WEBSERVER chain
$ipt -A WEBSERVER -p tcp -m multiport --dport 443,80 -m conntrack --ctstate NEW -j LOG
$ipt -A WEBSERVER -p tcp -m multiport --dport 443,80 -j ACCEPT

# SSH chain
$ipt -A SSH -p tcp --dport 22 -m recent --set --name SSH # Set SSH recent
$ipt -A SSH -p tcp --dport 22 -m recent --name SSH --update --seconds 10 --hitcount 2 --rttl -j LOG # Log if over counter
$ipt -A SSH -p tcp --dport 22 -s 192.168.1.1/24 -m recent --name SSH --update --seconds 10 --hitcount 10 --rttl -j REJECT # Reject from lan if over counter
$ipt -A SSH -p tcp --dport 22 ! -s 192.168.1.1/24 -m recent --name SSH --update --seconds 10 --hitcount 2 --rttl -j DROP # Drop if over counter
$ipt -A SSH -p tcp --dport 22 -j ACCEPT

iptables-save > /etc/iptables_ruleset
}

removerules() {
$ipt -P INPUT ACCEPT
$ipt -P FORWARD ACCEPT
$ipt -P OUTPUT ACCEPT
$ipt -F
$ipt -X
}

restartrules() {
rm /etc/iptables_ruleset
loadrules
}

case "$1" in
	start)
		loadrules
		;;
	stop)
		removerules
		;;
        restart)
                restartrules
                ;;
    	*)
        	echo "Usage: $0 start|stop|restart" >&2
        	exit 3
        	;;
esac

Edit:
Checking /var/log/daemon.log gives me this info:
Code:
May 25 19:13:29 hostname systemd[6004]: Failed at step EXEC spawning /etc/init.d/iptables: Exec format error
May 25 19:13:29 hostname systemd[1]: iptables.service: control process exited, code=exited status=203
May 25 19:13:29 hostname systemd[1]: Failed to start LSB: Iptable setup.
May 25 19:13:29 hostname systemd[1]: Unit iptables.service entered failed state.

Unable To Lock The Administration Directory (/var/lib/dpkg/)

Hi Guys,

I just installed Ubuntu 14.0 LTS...I get the following message:

"Unable to lock the administration directory (/var/lib/dpkg/)"

When I issue the following command:

"sudo apt-get install openssh-server"

Changes In CentOS 7

Hi Team,

I have installed Centos 7 and I feel everything is totally changed.

I am able to see only 3 folders under /etc/init.d/......where as earlier versions have many other init scripts.

I tried installed Minimal & full installation, both have the same situation.