Friday, November 28, 2014

mail: command not found on cPanel server

Solution:

yum install mailx
service postfix start
chkconfig postfix on 
 
 
or 
 
 
yum install mail
 
 
 
Fixed
 
and now test
 
mail -v youremail@gmail.com -- -r "test@gmail.com" 

Doing file transfer in linux by rsync

Make sure ssh and rsync is installed both server.

Then start moving..

You have to put the ssh port if ssh port is different on remote server..

First login to your native server then ..

Use this code :

rsync -av -e ssh root@remote_ip:/home/remoteuser/public_html/test.txt /home/you/public_html

if port is different ..

rsync -av -e ’ssh -p 65200′ root@remote_ip:/home/remoteuser/public_html/test.txt /home/you/public_html

Then enter your password.

Data will be transferred successfully .

After moving you have to remove the entry key from known_hosts file in your server, how you can do  that :

> cd /.ssh/
> vi known_hosts

use ctrl+w to find the ip and key and remove it. Now you are totally secured from another server...






Find any file path in linux

find / -xdev -name settings.xml

Here  settings.xml is file name

Mail Test

mail -s "some subject" test@gmail.com

or


Piping:
diarguet@rtp-lds-035:~$ cat mymessage | sendmail -i -t

Typing:
diarguet@rtp-lds-035:~$ sendmail -t
From: "Me" <me@codecall.net>
To: "Bob" <bob@yahoo.com>
Subject: First Email
MIME
-Version: 1.0
Content-Type: text/plain

Hello, World!
.
diarguet@rtp
-lds-035:~$ _


Thursday, November 27, 2014

SMTP Error (-1): Connection to server failed

This error is typically seen due to a setting in the CSF firewall or another firewall. It might be caused by having the following set:


SMTP_BLOCK = 1
SMTP_ALLOWLOCAL = 0
You would need to change SMTP_ALLOWLOCAL to 1 to enable webmail to function.

If that does not end up being the issue, try disabling the firewall to see the results. If it works, I would then suggest going to CSF forum to ask about what might be the cause.

Change webhost but keep old email host

Someone , we have to point new dns but we want to keep old email host.

How can we do that easily :) It is a very easy process.

Just place your old server ip address on the mx record ...

like the screenshot ..


Cheers, it works now... :D

spamming on server

How to check  spamming on server..

exim -bpc

If this  is change very fast then it seems spamming is on server also you can check using
tail -f /var/log/exim_mainlog