Categories
Email Hosting Setup WebMail

Setup email account on Android Smartphone

To setup a new email account on your Android or Smartphone…

Select “Add account” from Email tab.
Enter “Email Address”
Enter the password for “Email Address”
Press “Next”

Type of email account
You have the choice to choose the type of account you will be using on your android or smartphone.
POP3: Selecting this type will download and store emails on phone from the server.
IMAP: (Recommended) This will show a cached copy of email on your phone, emails will be stored on server.
Exchange: Exchange type is supported only for MSExchange type of server.

 

Email Account Setup

for Incoming Server Settings
Username: Enter your email address.
Password: Existing Password for your email account.
IMAP server: “mail.yourdomain.com”
Port:
NonSecure(No SSL): 143
Secure (SSL): 993
Security Type: Use “SSL/TLS – Accept all certificates” for best compatibility.
IMAP Path: INBOX (This will allow for you to store your Sent, Drafts and Deleted emails on the server.)

Press Next.

for Outgoing Server Settings
SMTP server: mail.yourdomainname.com
Port:
NonSecure (No SSL): 25 or 26
Secure (SSL): 465
Security Type: “SSL/TLS – Accept all certificates” for best compatibility.
Require sign-in Check this for authentication with the mail server.
Username: Enter email address
Password: Password for email address.

Press Next.

Other Account Options

1. “Inbox Check Frequency” – Every 15 min. You may increase this to 30 to save you on battery.
2. “Notify me when email arrives” – Yes.
3. “Sync emails from this account” – Yes.
4. “Automatically download attachments when connected to wi-fi” – Yes.

Press Next.

Final Screen to finish email account setup
Give a name to your account. (if you have multiple accounts on the one device, it will be better to give name for each email account, Business, personal etc.)
Enter the name (Senders name displayed on outgoing messages) All outgoing emails that you send from this device it will show this name to recipient.

We are Done!

Related: Email Hosting, Email Server, EMail on Mobile Setup

Categories
cPanel PHP Scripts SSH Web-Hosting

Execute PHP script from cron or command-line

Execute PHP script from cron or command-line

One of the method for running PHP scripts from a cron job is run the script using php from the crontab. You will need to call the php script from your crontab as given below.
To execute somescript.php every 1 hour you will need to edit and add below given line in your crontab file:
00 * * * * /usr/local/bin/php /home/someuser/somescript.php

If you are looking for command-line interpreter, then it can be done with the following command. It shows how to run a script using the PHP command-line interpreter:

/usr/local/bin/php -q /home/someuser/public_html/somescript.php
The -q option is for quiet mode, to prevent headers being displayed.

Make a note of code in your PHP script, it may only run correctly if called from a mentioned path. For example, if the script uses relative paths to include files, it will only run if it is called from the specified directory. The following command shows how to run a PHP script from a specific path:

cd /home/username/public_html/; /usr/local/bin/php -q script.php

Related: Dedicated Server, Virtual Server, Web Server Hosting

Categories
CSF Dedicated Server Firewall Security SSH VPS Hosting Web-Hosting

syslogd klogd warning in firewall

If you are getting this WARNING message, what you need to do?

Syslogd appears to be running, but not klogd which logs kernel firewall messages to syslog. You should ensure that klogd is running.

How do you enable klogd?

Fire a command:
#whereis klogd
Then simply run klogd with full path:
klogd

Related: Dedicated Servers, VPS Hosting

Categories
Dedicated Server SSH Virtual Private Server Web-Hosting

Find files greater than MB GB size in linux ssh

Find files greater than MB GB size in linux ssh. ( Such a helpful ssh command to find big, larger or largest file on server)

The following ssh command will list all the files in the system greater than 200MB.
# find / -type f -size +200M

The following ssh command will list all the files greater than 2GB.
# find / -type f -size +2G

The following ssh command will list all the files greater than 10MB from home folder only.
# find /home -type f -size +10M

Related: Linux SSH, Virtual Server

Categories
Email Hosting Setup Shared Hosting WebMail www

HTML signature on Webmail Company Logo in Email

Creating HTML signature on Webmail, Squirrel, Roundcube Other Mail clients

You must be wondering how people add their company logo in the email signature! Just follow the steps given below and you will be able to add image in your email signature as well!
1. Log in to your webmail
2. Select Roundcube webmail application
3. Click on the Personal Settings on the Right Top Panel
4. Select on Identities Tab.
5. Double Click on the Display name.
6. Click on the HTML editor to enter your HTML signature
7. Click Save after you are done.
8. Go to Preference tab and check on the box for Compose HTML message.
9. Click Save and Done.

If you are not comfortable with the code then you might want to try the below given sample code and customize it as per your requirement:

Your name goes here
Your position goes here
Your Company Name
Your Tag Line
yourname@yourdomainname .com
Your phone number goes here

Your Company Name

You will want to change all the highlighted areas to the appropriate settings for your environment prior to placing in the signature area.

Note: If you are looking for the html signature in ‘SquirrelMail’ then you might get dissapointed as there is no html signature available in ‘Squirrel Webmail’. For html signature, you can start using ‘RoundCube’.