Linux Ask!

Linux Ask! is a Q & A web site specific for Linux related questions. Questions are collected, answered and audited by experienced Linux users.

What is the SMTP submission port 587?

Answer:

A lot of ISPs will block the port 25 for preventing users from sending spam emails. To send email if you use such ISPs, you need to use port 587.

Port 587 is the official port for sending email on mail submission agents (MSAs), as defined in RFC 2476

Block website access in Linux

Answer:

The simple way to block access to web site is to change the hosts file.

1. Open the hosts file

# sudo vi /etc/hosts

2. Change the content, such as...

0.0.0.0 microsoft.com
0.0.0.0 oracle.com

3. Save the file.

Empathy cannot connect to MSN

Answer:

To solve the problem of cannot connect to MSN using Empathy

1. Open the following file to edit:

gksudo gedit /usr/share/pyshared/papyon/service/description/SingleSignOn/RequestMultipleSecurityTokens.py

2. Find the following line...

CONTACTS = ("contacts.msn.com", "?fs=1&id=24000&kv=7&rn=93S9SWWw&tw=0&ver=2.1.6000.1")

3. Replace the line by

CONTACTS = ("contacts.msn.com", "MBI")

Close and restart Empathy should work.

Fix the warning of: Remote Host Identification Has Changed error and solution

Answer:

You might experience this error, especially when you are connecting to a remote Linux machine which has just got re-installed.

To solve this, enter the command:

# ssh-keygen -R 192.168.2.36

Where 192.168.2.36 is the IP you are connecting.

Print the web site's content using wget

Answer:

To show the web site's content in command line, just one command with wget.

# wget -q -O- http://www.example.com

Easy enough?