Showing posts with label server. Show all posts
Showing posts with label server. Show all posts

Saturday, December 10, 2011

smtp relay and spam?

If you are using an external email server to relay your emails,
makesure to add spf record to your dns:

Example:
#Create a TXT record containing this text:
v=spf1 a:mail.yourdomain.com -all
#above meants only allow email to be sent directly from mail.yourdomain.com

if you want to use google:
v=spf1 include:aspmx.googlemail.com -all

for multiple mail server:
v=spf1 a:mail.yourdomain.com a:mail2.yourdomain.com -all

-all = exclude all others..


-----
How to setup qmail to forward emails to another smtp server?
sudo vi /var/qmail/control/smtproutes

:yourexternalserver.com:port# username password
#port, username and password are optional

if you want to set for specific domain:
mydomain.com:yourexternalserver.com:port# username password
:otherexternalserver.com:port# username password

Other useful commands for kloxo qmail:
List queue:
/var/qmail/bin/qmail-qread
To test send email:
echo to: your@email.com | /var/qmail/bin/qmail-inject

Kloxo logs -
tail /var/log/kloxo/smtp.log

To force qmail to send queue:
#grap id from qmail-send pid
ps -Af | grep qmail-send
kill -9 #id

sudo /etc/init.d/qmail restart




Tuesday, November 16, 2010

Ping server from many different country

http://www.just-ping.com

DNS server temporary down

Update: DNS service is up and running...

Update 6.10pm:
Some connection seems okay, but still unstable on many other network...

Hi,
right now, we are having some packet lost on the network to our dns server.
Please be patient and wait for the network team to work on the issue.

best regards,
James

Wednesday, September 29, 2010

Server CheckList

List of checklist on setup of any LAMP server:
  • timezone /etc/localtime
  • php timezone /etc/php5/apache2/php.ini, /etc/php5/cli/php.ini
  • checking the date after setting timezone
  • install/configure for rewrite for apache2, with Allowoveride all
  • install/configure GD2, xml, mbstring, pdo, pdo_mysql for php
  • configure PHP:
  • register_global=off, memory_limit=40mb+, magic_quote_qpc=off ,
  • file_uploads=1, upload_max_filesize=10Mb+, max_input_time=300+,
  • max_execution_time=60, post_max_size=15Mb+
  • display_errors=1, error_reporting=E_ALL, log_errors_max_len=10240