Click Add

Monday, September 7, 2009

How To Setup DNS Name Server Using BIND 9

It is pretty easy to setup nameserver for each domain using BIND. For example, ns1.mmr.net and ns2.mmr.net
Our sample setup

ns1.mmr.net 202.191.120.158
ns2.mmr.net 202.191.120.159


Master server configuration
(ns1.mmr.net)
Next, you need to setup named.conf as follows on master bind 9 server, enter:
# vi named.conf
Append zone as follows, enter:
zone "mmr.net" {
type master;
file "/etc/bind/zones/master.mmr.net";
allow-transfer { 202.191.120.158 };
};


Save and close the file.

Run following command to check named.conf for error:
# named-checkconf


Now, create /etc/bind/zones/master.theos.in zone file:
# vi /etc/bind/zones/master.mmr.net

Append zone as follows, enter:

$ORIGIN theos.in.
$TTL 3h
@ IN SOA ns1.mmr.net. admin.mmr.net. (
2008071801 ; Serial yyyymmddnn
3h ; Refresh After 3 hours
1h ; Retry Retry after 1 hour
1w ; Expire after 1 week
1h) ; Minimum negative caching of 1 hour
;
@ 86400 IN NS ns1.mmr.net.
@ 86400 IN NS ns2.mmr.net.
@ 86400 IN MX 10 smtp.mmr.net.

; DNS must point to IP of ns1.mmr.net and ns2.mmr.net
ns1 86400 IN A 202.191.120.158
ns2 86400 IN A 202.191.120.159
; host stuff
@ 86400 IN A 202.191.120.160
www 86400 IN A 202.191.120.160
ftp 86400 IN A 202.191.120.160



Save and close the file. Run zone file validity checking for mmr.net, enter:
# named-checkzone mmr.net /etc/bind/zones/master.mmr.net

Sample output:zone mmr.net/IN: loaded serial 2008071801
OK


Now just reload bind 9, enter:
# rndc reload

Check your server
#dig mmr.net or nslookup -sil mmr.net
(Related command dig, host, ping details coming soon)


Slave server configuration
(ns2.mmr.net)

Open named.conf on slave server and append following code:

zone "mmr.net" {
type slave;
file "/etc/bind/zones/slave.mmr.net";
masters { 202.191.120.158 };
allow-transfer { none; };
};

Save and close the file.
Run following command to check named.conf for error:
# named-checkconf
Reload named, enter:
# rndc reload
It may take anywhere from 24-48 hrs to propagate a domain across the internet. You can test your setup with the following command:
$ host -t ns mmr.net
Sample output:
mmr.net name server ns1.mmr.net.
mmr.net name server ns2.mmr.net.

Tuesday, July 21, 2009

Commands in Ubuntu

Command privileges.

sudo command - run command as root
sudo su – root shell open
sudo su user – open shell as a user
sudo -k – forget your password sudo
gksudo command – sudo visual dialog (GNOME)
kdesudo command – sudo visual dialog (KDE)
sudo visudo – edit / etc / sudoers
gksudo nautilus – root file manager (GNOME)
kdesudo konqueror – root file manager (KDE)
passwd – change your password

Command Network


ifconfig – displays information network
iwconfig – displays information from wireless
sudo iwlist scan – scan wireless networks
sudo /etc/init.d/networking restart – reset the network
(file) /etc/network/interfaces – manual configuration
ifup interface – bring online interface
ifdown interface – disable interface

Commands Display

sudo /etc/init.d/gdm restart – reset X (Gnome)
sudo /etc/init.d/kdm restart – reset X (KDE)
(file) /etc/X11/xorg.conf – show Configuration
sudo dpkg-reconfigure - reconfigure xserver-xorg-phigh - reset configuration X
Ctrl+Alt+Bksp – X display reset if frozen
Ctrl+Alt+FN – switch to tty N
Ctrl+Alt+F7 – switch back to X display

Commands Service System.

start service – service to start work (Upstart)
stop service – service to stop working (Upstart)
status service – check if service is running (Upstart)
/etc/init.d/service start – start service (SysV)
/etc/init.d/service stop – stop service (SysV)
/etc/init.d/service status – check service (SysV)
/etc/init.d/service restart – reset service (SysV)
runlevel – get current runlevel

Commands for Firewall.

ufw enable – turn on the firewall
ufw disable – turn off the firewall
ufw default allow – allow all connections by default
ufw default deny – drop all connections by default
ufw status – current rules and
ufw allow port – to allow traffic on port
ufw deny port – port block
ufw deny from ip – ip block

Command System.


lsb_release -a – get the version of Ubuntu
uname -r – get kernel version
uname -a – get all the information kernel

Commands for Package Manager.


apt-get update – refresh updates available
apt-get upgrade – update all packages
apt-get dist-upgrade – version update
apt-get install pkg – installing pkg
apt-get remove pkg – uninstall pkg
apt-get autoremove – removing packages obsotletos
apt-get -f install – try to fix packages
dpkg –configure -a – try to fix a broken package
dpkg -i pkg.deb – install file pkg.deb
(file) /etc/apt/sources.list – list of repositories APT

Special Packages For commands.

ubuntu-desktop – Setting the standard Ubuntu
kubuntu-desktop – KDE Desktop
xubuntu-desktop – desktop XFCE
ubuntu-minimal – core earnings Ubuntu
ubuntu-standard – the standard utilities Ubuntu
ubuntu-restricted-extras – not free, but useful
kubuntu-restricted-extras – ditto KDE
xubuntu-restricted-extras – ditto XFCE
build-essential – packages used to compile
linux-image-generic – latest generic kernel image
linux-headers-generic – latest headlines

Applications commands.

nautilus – File Manager (GNOME)
dolphin – File Manager (KDE)
konqueror – Web browser (KDE)
kate –text editor (KDE)
gedit – text editor (GNOME)

UBUNTU net+dns+packet forwarding enable

Root

To make the installation easier create a root user. Many files can only be changed with root user.

Login user, then enter command

#sudo passwd root
Enter new UNIX password:
Retype new UNIX password:
#su root
Password:

SSH

So we can cut and paste commands to make life easier

sudo apt-get install openssh-serverInstall putty on you windows machine

Repository

Enable all repositorys

nano -w /etc/apt/sources.list

Update Ubuntu

sudo apt-get update

sudo apt-get upgrade

Network setup

Setup up your network hardware/software

Domain Name Service (DNS)

Install

sudo apt-get install bind

Start

sudo /etc/init.d/bind start

Interfaces

nano -w /etc/network/interfaces

auto lo iface lo inet loopback auto eth0 iface eth0 inet dhcp auto eth1

To enable packet forwarding you should add the following line

nano -w /etc/sysctl.conf

net/ipv4/ip_forward=1

Enable and check ip forward without a reboot

echo 1 | sudo tee /proc/sys/net/ipv4/ip_forward

Restart network

sudo /etc/init.d/networking restart

Saturday, July 18, 2009

Postfix HOWTO for CENTOS

1. Introduction

This article is aimed at beginners who wish to set up a basic email server. Basic system administration knowledge would be an advantage and the ability to install software and edit configuration files is essential. The article was written for CentOS 5 but should be equally applicable to earlier versions.

There are many different scenarios and combinations that can be used when setting up an email server (far to many to cover here), so this article makes some basic choices for you, such as the software we will use (postfix and dovecot). Other options are required to be altered by the user, such as your network addresses and domain names. More advanced options such as virtual domains and users are outside the scope of this article and will not be covered herein.

This article uses postfix as the mail transport agent (MTA), as opposed to sendmail, the default MTA for CentOS. Dovecot is used to allow users to access their email by either imap or pop protocols. We assume a domain name of example.com which should be changed by the reader and can be either a real domain name for a fully qualified email server or a fake domain name if you only wish to implement an internal mail server. We assume that the physical mail server (host) is mail.example.com and is located at the private IP address 192.168.0.1 (this should be changed to suit the readers needs). The email server will provide email accounts via standard user system accounts and users will access their email using their system account username and password. We will assume a user called John Smith who has a system account under the login name of john.

2. Installation

The first thing we need to do is install the requisite software. The easiest way to do this is with yum from the command line:

yum install postfix dovecot system-switch-mail system-switch-mail-gnome

3. Configuration

Next we need to configure the various parts of our email server.

3.1. Postfix

Postfix configuration files are stored in /etc/postfix. The two main postfix configuration files are master.cf and main.cf, although we will only be dealing with main.cf here. First we are going to make some additions or changes to the main.cf configuration file. The following lines should be added, edited or uncommented:

myhostname = mail.example.com
mydomain = example.com
myorigin = $mydomain
inet_interfaces = all
mydestination = $myhostname, localhost.$mydomain, localhost, $mydomain
mynetworks = 192.168.0.0/24, 127.0.0.0/8
relay_domains =
home_mailbox = Maildir/

Note: Each line should start at the beginning of a new line and should not be preceded by white space or tabs. White space or tabs at the beginning of a line are treated as a continuation of the previous line, and if the previous line is a comment (#) line then the subsequent line is also treated as such. Further, inline comments should be avoided.

Now lets take a look at each setting it turn to understand what we've just done:

myhostname: is the host name of the system (i.e, the system is called mail or mail.example.com).

mydomain: is the domain name for the email server (it can be a real or fake domain name).

myorigin: is the domain name that locally-posted email appears to have come from and is delivered to.

inet_interfaces: sets the network interfaces that Postfix can receive mail on. These need to include at least localhost and the local domain.

mydestination: is the list of domains that will be delivered to (i.e, this server is the final destination for email addressed to these domains).

mynetworks: is a list of trusted IP addresses that may send or relay mail through the server. Users attempting to send email through the server originating from IP addresses not listed here will be rejected.

relay_domains: is a list of destination domains this system will relay mail to. By setting it to be blank we ensure that our mail server isn't acting as an open relay for untrusted networks. The reader is advised to test that their system isn't acting as an open relay here: http://www.abuse.net/relay.html

home_mailbox: sets the path of the mailbox relative to the users home directory and also specifies the style of mailbox to be used. Postfix supports both Maildir and mbox formats and readers are encouraged to read up on the merits of each for themselves. However, in this article we have chosen to use Maildir format (a trailing slash indicates Maildir format. To specify mbox format, the reader would use home_mailbox = Mailbox).

3.2. Dovecot

The dovecot configuration file is located at /etc/dovecot.conf. The following lines should be added, edited or uncommented:

protocols = imap imaps pop3 pop3s
mail_location = maildir:~/Maildir
pop3_uidl_format = %08Xu%08Xv
# Required on x86_64 kernels
login_process_size = 64

Again, looking at each option:

protocols: specifies the protocols available to users to access their email. Dovecot supports imap(s) and pop3(s), and any or all may be used.

mail_location: specifies the format and location of each users mailbox. Here we see we are using maildir format and each user has their mailbox located at ~/Maildir. Examples for mbox format are provided in the configuration file.

pop3_uidl_format: is required to fix a problem with Outlook 2003 accessing mailboxes via pop3 so it makes sense to set this (see the notes in the configuration file for more details).

login_process_size: The release notes for CentOS 5.1 state that "the Dovecot package on x86_64 kernels requires the parameter "login_process_size = 64" to be added to /etc/dovecot.conf after an upgrade to CentOS 5.1". 32-Bit installations are unaffected and do not require this setting.

Note: If you have any issues connecting with either imap or pop3 to dovecot, check the IMAP specific settings and POP3 specific settings sections of the dovecot.conf configuration file for workarounds. The available options mostly affect older mail clients and workarounds for Microsoft Outlook and Outlook Express.

3.3. Create users mailboxes

Next we need to create a mailbox for each user in their home directory and set the appropriate permission, so using our example user john:

mkdir /home/john/Maildir
chmod -R 700 /home/john/Maildir

3.4. Aliases

We are nearly finished. We have an email account set up for our user John Smith who logs in as john. His email address would be john@example.com . However, John may like to receive email as jsmith@example.com (or any other alias). We can achieve this by setting an alias for John using the system alias file (by default postfix uses /etc/aliases). We can also add aliases for other users, so for example we could also redirect root's email to John by adding the following to /etc/aliases:

# Person who should get root's mail root: john # User aliases jsmith: john j.smith: john If you edit the aliases file to set up new aliases for users once postfix is running, you must rebuild the aliases database by running the newaliases command.

4. Starting the server

We are now ready to fire up our new email server. First we need to tell our system to use postfix as the MTA rather than the default sendmail. To do this, run the system-switch-mail command and select postfix as the MTA. This will install the postfix service and set it to start automatically at runlevels 3, 4, and 5. Next we need to set the dovecot service to also automatically start at runlevels 3, 4, and 5, and start both services:

chkconfig --level 345 dovecot on
/etc/init.d/dovecot start
/etc/init.d/postfix start

at which point you should be up and running. Your email server should have no trouble sending and receiving email internally and sending external email. To receive external email on your domain, you will also need to configure MX records in DNS for your domain (ideally a PTR rDNS entry should also be configured through your ISP mapping your IP address to your domain). Don't forget to open any required ports on your Linux firewall depending what services you are running (SMTP 25; POP3 110; IMAP 143; IMAPS 993; POP3S 995) and enable port forwarding for those ports on any routers.

If you make any changes to the postfix configuration file main.cf, you can either restart the postfix service or run the postfix reload command to update the changes.

Tuesday, July 14, 2009

Common ports

The following is a list of common ports. During a network security audit, port scans will be perfeormed to determine what network services are available. These services can be on different Operating systems.

20 FTP data (File Transfer protocol)
21 FTP (File Transfer Protocol)
22 SSH (Secure Shell)
23 Telnet
25 SMTP (Send Mail Transfer Protocol)
43 whois
53 DNS (Domain Name Service)
68 DHCP (Dynamic Host Control Protocol)
79 Finger
80 HTTP
110 POP3 (Post Office Protocol, version 3)
115 SFTP (Secure File Transfer Protocol)
119 NNTP (Network New Transfer Protocol)
123 NTP (Network Time Protocol)
137 NetBIOS-ns
138 NetBIOS-dgm
139 NetBIOS
143 IMAP (Internet Message Access Protocol)
161 SNMP(Simple Network Management Protocol)
194 IRC (Internet Relay Chat)
220 IMAP3 (Internet Message Access Protocol 3)
389 LDAP (Lightweight Directory Access Protocol)
443 SSL (Secure Socket Layer)
445 SMB (NetBIOS over TCP)
666 Doom
993 SIMAP (Secure Internet Message Access Protocol)
995 SPOP (Secure Post Office Protocol)

Ports between 1024 and 29151 are known as the Registered Ports. Basically, programs are supposed to register their use of these ports and thereby try to be careful and avoid stomping on each other. Here are some common ports and their programs.

1243 SubSeven (Trojan - security risk!)
1352 Lotus Notes
1433 Microsoft SQL Server
1494 Citrix ICA Protocol
1521 Oracle SQL
1604 Citrix ICA / Microsoft Terminal Server
2049 NFS (Network File System)
3306 mySQL
4000 ICQ
5010 Yahoo! Messenger
5190 AOL Instant Messenger
5632 PCAnywhere
5800 VNC
5900 VNC
6000 X Windowing System
6699 Napster
6776 SubSeven (Trojan - security risk!)
7070 RealServer / QuickTime
7778 Unreal
8080 HTTP
26000 Quake
27010 Half-Life
27960 Quake III
31337 BackOrifice (Trojan - security risk!)



Monday, July 13, 2009

Check your DNS Server configuration ( BIND )

Check BIND – DNS Server configuration file for errors with named-checkconf tools

Check your bind configuration for errors?
# named-checkconf /etc/named.conf

You may want to chroot to directory so that include directives in the configuration file
# named-checkconf -t /var/named/chroot /etc/named.conf

If there is no output
# named-checkconf /etc/named.conf

Output
[ /etc/named.conf:58: open: /etc/named.root.hints: file not found ]

check my zone file configuration for errors?
syntax # named-checkzone {zonename} {filename}
command #named-checkzone nixcraft.com /var/named/zone.nixcraft.com
Output

[ok]

dig www.example.com
# simple host lookup
dig www.example.com a
# order is important
dig -t a www.example.com
# identified option format - order is not important
dig @ 208.77.188.166 www.example.com a
# use the dns at 208.77.188.166for the query
dig @ns1.example.com www.example.com a
# use the dns at ns1.example.com for the query
dig -x 208.77.188.166
# reverse map query - returns PTR RR


Sunday, July 12, 2009

Setting up DNS

When it comes to DNS setup Ubuntu doesn’t differ from other distributions. You can add hostname and ip address to the file /etc/hosts for static lookups.

To cause your machine to consult with a particular server for name lookups you simply add their addresses to /etc/resolv.conf.

For example a machine which should perform lookups from the DNS at IP address 192.168.3.2 would have a resolv.conf file looking like this

sudo vi /etc/resolv.conf

enter the following details

search test.com
nameserver 192.168.3.2

Setting your ubuntu stytem hostname

As an user you can see your current hostname with

sudo /bin/hostname

To set the hostname directly you can become root and run

sudo /bin/hostname newname

When your system boots it will automatically read the hostname from the file /etc/hostname

Ubuntu Networking Configuration Using Command Line

Configure Network Interface Using Command-Line
File for configuration
/etc/network/interfaces

Configuring DHCP address for your network card
If you want to configure DHCP address you need to edit the /etc/network/interfaces and you need to enter the following lines replace eth0 with your network interface card

sudo vi /etc/network/interfaces

# The primary network interface – use DHCP to find our address
auto eth0
iface eth0 inet dhcp

Configuring Static IP address for your network card

If you want to configure Static IP address you need to edit the /etc/network/interfaces and you need to enter the following lines replace eth0 with your network interface card

sudo vi /etc/network/interfaces

# The primary network interface
auto eth0
iface eth0 inet static
address 192.168.3.90
gateway 192.168.3.1
netmask 255.255.255.0
network 192.168.3.0
broadcast 192.168.3.255

After entering all the details you need to restart networking services using the following command

sudo /etc/init.d/networking restart

Setting up Second IP address or Virtual IP address in Ubuntu

If you are a server system administrator or normal user some time you need to assign a second ipaddress to your Ubuntu machine.For this you need to edit the /etc/network/interfaces file and you need to add the following syntax.Below one is the only example you need to chnage according to your ip address settings

sudo vi /etc/network/interfaces

auto eth0:1
iface eth0:1 inet static
address 192.168.1.60
netmask 255.255.255.0
network x.x.x.x
broadcast x.x.x.x
gateway x.x.x.x

You need to enter all the details like address,netmask,network,broadcast and gateways values after entering all the values save this file and you need to restart networking services in debian using the following command to take effect of our new ipaddress.

After entering all the details you need to restart networking services using the following command

sudo /etc/init.d/networking restart








Install Squirrelmail

Install: # apt-get install squirrelmail [# apt-get remove squirrelmail]

Install from source : # wget -c http://internode.dl.sourceforge.net/sourceforge/squirrelmail/squirrelmail-1.4.17.tar.gz

Extract :

# tar -xvzf squirrelmail-1.4.17.tar.gz –directory=/var/www/nginx-default

# mv /var/www/nginx-default/squirrelmail-1.4.17 /var/www/nginx-default/squirrelmail

Configure : # cd /var/www/nginx-default/squirrelmail

# ./configure

Options :

1. Choose option “2. Server Settings“.
2. Choose option “1. Domain” and change it to your domain name.
3. Choose option “A. Update IMAP Settings” then option “5. IMAP Port” and change it to “993“.
4. Choose option “7. Secure IMAP (TLS)” and change it to “true” by pressing “y“.
5. Choose option “8. Server software” then type”dovecot” followed by the “ENTER” to set it.
6. Press “s” followed by the “ENTER” key to save.
7. Press “q” followed by the “ENTER” key to quit.

Create attachment folder :

# mkdir -p /var/local/squirrelmail/data

# chown -R www-data /var/local/squirrelmail/data

# mkdir -p /var/local/squirrelmail/attach/
# chown -R www-data /var/local/squirrelmail/attach/

Update /etc/nginx/sites-enabled/default :

server {
listen 80;
server_name mail.your_server_name
.com;

location / {
index index.php index.html;
root /var/www/nginx-default/squirrelmail;
}
location ~ \.php$ {
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME /var/www/nginx-default/squirrelmail$fastcgi_script_name;
include fastcgi_params;
}

}

Edit /etc/php5/cgi/php.ini

Set magic_quotes_gpc = Off

save and restart nginx.

Finish,

http://mail.your_server_name.com ready to serve.


Search engine terms:
  • squirrelmail installation folder ubuntu
  • how to install squirrelmail in ubuntu server
  • squirrelmail requirements ubuntu 9 04
  • how to configure squirrelmail in ubuntu
  • change default squirrelmail directory
  • nginx squirrelmail
  • ubuntu squirrelmail howto
  • squirrelmail nginx
  • ubuntu server install squirrelmail
  • instalasi Squirrelmail di ubuntu
  • squirrelmail-1 4 17 tar gz
  • jaunty squirrelmail
  • ubuntu squirrelmail install
  • install squirrelmail
  • squirrelmail ubuntu howto
  • how to install squirrelmail on ubuntu
  • install squirrelmail ubuntu
  • instalar squirrelmail ubuntu
  • squirrelmail on nginx
  • ubuntu install squirrelmail
  • config squirrelmail local only ubuntu
  • installing squirrelmail ubuntu
  • Install SquirrelMail in ubuntu 9 04
  • configure squirrelmail in ubuntu
  • where is the default squirrelmail install directory
  • installing squirrelmail on ubuntu
  • instal squirrelmail on ubuntu server
  • ubuntu server 9 04 squirrelmail
  • SquirrelMail on ubuntu
  • how to install squirrelmail on ubuntu server
  • squirrelmail ubuntu 9
  • squirrelmail on ubuntu server 9 04
  • configurar squirrelmail en ubuntu server
  • instalar squirrelmail en ubuntu
  • how to install squirrelmail ubuntu
  • How to install SquirrelMail on ubuntu server
  • installing squirrelmail in ubuntu server
  • install squirrelmail ubuntu 9 0 jaunty
  • how to install & configure squirrelmail in RHEL 5
  • como instalar squirremail ubuntu
  • install squirrelmail jaunty
  • squirrelmail ubuntu install
  • how to setup squirrelmail for ubuntu
  • installazione squirrelmail su ubuntu
  • squirrelmail ubuntu 9 04 config
  • squirrelmail ubuntu server
  • setup squirrelmail jaunty
  • reinstall squirrelmail
  • squirrelmail install and configuration for ubuntu
  • ubuntu squirrelmail-1 4 17 install
  • installing squirrelmail on Ubuntu
  • squirrelmail on Ubuntu
  • steps to INstall Mail Server squirrelmail ubuntu
  • squirrelmail install ubuntu
  • squirrelmail on ubuntu server 8
  • squirrelmail ubuntu install directory
  • como instalar squirrelmail en ubuntu
  • how to configure squirrelmail in centos
  • domain server config instalar ubuntu 9 04
  • domain server config instalar configurar ubuntu 9 04
  • ubuntu squirrelmail download
  • squirrel mail nginx
  • squirrelmail ngnix
  • SquirrelMail setup greek
  • ubuntu 9 squirrelmail
  • how to install squirrelmail server ubuntu
  • install squirrelmail on nginx
  • how to configure squirell mail in ubuntu
  • squirremail ubuntu
  • Ubuntu server setup SquirrelMail
  • ubuntu squirremail
  • squirrelmail jaunty
  • SquirrelMail Howto
  • ubuntu squirrelmail config
  • centos squirrelmail serbian
  • ubuntu remove sqirrelmail
  • install squirrelmail centos
  • configurar squirrelmail centos 5 3
  • install squirrelmail di ubuntu
  • INSTALAR SQUIRREL MAIL
  • squirrelmail ubuntu spanish
  • squirrelmail for ubuntu
  • squirrelmail setup ubuntu
  • ubuntu squirelmail sourceforge
  • squirrelmail for ubuntu source install
  • ubuntu squirrelmail chinese trad
  • install squirremail on centos with tar
  • SquirrelMail version instal na ubuntu
  • ubuntu squirrelmail location
  • secure squirellmail ubuntu 9 04 server
  • how to configure squirrelmail-secure-login
  • HOW TO set up squirrelmail with Nginx
  • ubuntu installer squirrelmail imap
  • apt-get install squirrelmail location on server
  • ubuntu squirrelmail restart
  • squirrelmail instal guide
  • squirrel ubuntu
  • how to install squirrelmail in ubuntu
  • install squirell mail ubuntu server
  • squirrelmail imap
  • squirrel mail how to install
  • install squirrelmail on ubuntu 9
  • enable https for squirrelmail ubuntu
  • freebsd with squirrelmail server
  • Ubutu squirrelmail
  • how to configure squirrelmail on rhel5
  • set up squirrelmail ubuntu
  • how to install squirrelmail
  • how to install squirrelmail on rhel 5
  • mail server install Ubuntu server
  • update squirrelmail ubuntu
  • squirrelmail secure login how-to
  • configure squirrelmail ubuntu
  • ubuntu installing squirrelmail
  • ubuntu squirrelmail apt-get
  • ubuntu9 SquirrelMail
  • how to configure squirrelmail on ubuntu
  • ubuntu squire mail install
  • configuration installation squirrelmail linux ubuntu
  • squirrel mail changing www-data
  • centos squirrelmail nginx
  • how to enable squirrelmail on ubuntu server
  • squirel mail for ubuntu
  • instalar squirrelmail ubuntu server
  • setup squirrel ubuntu
  • squirrelmail https ubuntu
  • ubuntu squirrelmail php cgi
  • SquirrelMail configurar Domain manual
  • SquirrelMail config ubuntu
  • ubuntu squirrelmail installation
  • ubuntu squirrelmail
  • SquirrelMail ubuntu install
  • ubuntu instalar squirrelmail
  • ubuntu server squirrelmail
  • 0h
  • como install php on centos 5
  • ubuntu server and squirrelmail
  • configurar squiremail ubuntu server
  • ubuntu 9 0 mail server setup
  • configuration squirrelmail ubuntu
  • configurar squirremail en ubuntu
  • install squirrelmail ubuntu 8
  • como instalar squirrelmail on ubuntu
  • squirremail how to login
  • install squirrelmailubuntu jaunty
  • configure squirrelmail ubuntu jaunty
  • ubuntu installer imap squirrel
  • installare squirrelmail
  • 1
  • installing squirrelmail ubuntu server
  • configure squirrelmail for secure https
  • apt-get install squirrelmail
  • squirrelmail ubuntu
  • ubuntu how to install squirrelmail
  • install squirrelmail on ubuntu
  • apt-get squirrelmail on ubuntu
  • squirrelmail on ubuntu 9
  • squirrel mail howto
  • mail server ubuntu 9
  • squirelmail on ubuntu 9
  • configurar squirrelmail ubuntu
  • installing squirrel mail ubuntu
  • configure jaunty mail server
  • squirellmail download
  • ubuntu squirrel mail default login
  • build mail server on ubuntu 9
  • como configurar mail server en ubuntu
  • email server ubuntu 9
  • nginx and squirrelmail set up
  • ssl settings on ubuntu for squirrelmail
  • ups drivers ubuntu9 04
  • ssl squirrelmail ubuntu howto
  • squirrelmail installation
  • how to install squirrel mail in centOS
  • login to squirrelmail with ubuntu server
  • Install squirrelmail di ubuntu
  • Ubuntu squirrelMail
  • ubuntu ubuntu squirrelmail
  • configurar squirrelmail en ubuntu
  • squirrel mail configuration on RHEL5
  • instalasi squirelmail
  • configurar squirrelmail
  • install squirel ubuntu
  • squirrelmail ubuntu setup
  • squirrelmail winhow
  • how to configure squirrelmail in ubuntu 8 04 lts
  • squril mail server on rhel5
  • apt get install squirrelmail
  • ubuntu jaunty setup squirrelmail
  • squirrelmail-configure ssl mail 993
  • how to install ubuntu squirrelmail
  • squirrelmail installation from source ubuntu
  • install squirrel mail ubuntu
  • how to setup squirrelmail on ubuntu
  • ubuntu squirrel setup
  • configuring squirrelmail on ubuntu
  • configure squirrelmail on ubuntu
  • ubuntu squirrelmail localization
  • ubuntu server squirellmail
  • instalacion de squirrelmail en ubuntu
  • configuring squirrelmail ubuntu 9 04
  • install squirelmail in ubuntu
  • SquirrelMail ubuntu 9
  • install squirre mail ubuntu
  • how can i install and configure squirrelmail on ubuntu
  • how to integrate a squirrel mail server with php on ubuntu 9
  • squirrelmail auf ubuntu installieren
  • how to set squirrelmail on ubuntu server
  • configurare squirrelmail ubuntu
  • install squirrel on ubuntu
  • ubuntu squirrelmail setup
  • what is the name for the server mail on ubuntu9 04
  • install squirrelmail on Ubuntu
  • squirell mail for ubuntu jaunty
  • ubuntu install squirrel
  • squirrel mail setup ubuntu
  • enabling https for squirrelmail
  • setting up squirrelmail server on fedora
  • installing squirrel mail in jaunty
  • how to install squrrelmail in ubuntu server
  • sudo apt-get squirrelmail

Checklist Mail Server - Internet Deployment

Your IP addresses are not blacklisted

Even a newly setup mail server could already be blacklisted. Some of the reasons are:

  • For those using a dedicated server, the IP address given to you might have been used by a spammer in the past
  • For those using a shared server, a fellow user might have sent a spam mail.
  • For those using NAT to share internet connection, one of your users might have sent a spam mail due to virus infection

To check if your IP address is blacklisted, use
http://www.mxtoolbox.com/blacklists.aspx

Your mail server has an MX record

An MX record or Mail exchanger record is a type of record in the Domain Name System (DNS) specifying how Internet e-mail should be routed using the Simple Mail Transfer Protocol (SMTP). Contact your DNS provider to add an MX record for your new mail server. To check if your mail server has an MX record, use http://www.dnscolos.com.

Your mail server greeting matches your hostname

To test your mail server greeting, use http://www.dnscolos.com. If your mail server has multiple IP addresses, see Postfix Multiple IP Addresses Individual SMTP Greeting for a guide on how to fix this issue.

Your mail server is not open relay

An open relay mail server allows anyone to send mail outside your network. This means any Tom, Dick and Harry can use your mail server to send spam. To perform an open relay test, use http://www.dnscolos.com. If it fails, double check your Postfix Dovecot SASL configuration.

Your mail server has a reverse DNS

A reverse DNS returns the hostname given the IP address. Most mail servers will check if you have a valid reverse DNS, otherwise your sending reputation will be downgraded. Contact your internet service provider to add reverse DNS entries for your mail server IP addresses. To check if your mail server has a reverse DNS, use http://www.dnscolos.com.

Create a SPF DNS record if possible

Sender Policy Framework (SPF) allows software to identify messages that are or are not authorized to use the domain name based on information published in a sender policy of the domain owner. Not all DNS provider supports SPF so choosing a DNS provider that can do this is a plus. To check if your mail server has an SPF record, use http://www.dnscolos.com.

Things on UBUNTU

you could install GUI by just typing...

sudo apt-get install ubuntu-desktop

Saturday, July 11, 2009

Installing software from source in Linux

Download Package (zip, gz etc)

Unpacking

tar xvzf pkg.tar.gz
tar xvjf pkg.tar.bz2
ls
cd pkg

Configuring

./configure

Building

make

Installing
make install


Cleaning up the mess

make clean

Uninstalling
make uninstall

Dovecot on Ubuntu and Cent OS

Dovecot is a Mail Delivery Agent, written with security primarily in mind. It supports the major mailbox formats: mbox or Maildir. This section explain how to set it up as an imap or pop3 server.

To install dovecot
[mmr@pas]apt-get install dovecot-imapd dovecot-pop3d

To configure dovecot
To configure dovecot, we edit the file /etc/dovecot/dovecot.conf
amend the following line in the file starting with protocols =
protocols = pop3 pop3s imap imaps

restart the dovecot daemon in order to test your setup

/etc/init.d/dovecot restart for Ubuntu
Service dovecot restart for Cent OS



Wednesday, July 8, 2009

ntsysv and chckconfig in Debian / Ubuntu"

"sysvconfig: Red Hat/CentOS 's ntsysv and chckconfig in Debian / Ubuntu"

"ntsysv" and "chckconfig" tools, which manages services to start or not in system start up, can be demonsrated via "sysvconfig" command in Debian / Ubuntu systems. Since it does not installed default, these packages must be installed manually in order to use "sysvconfig":

[mmr@unix]$ sudo apt-get install sysv-rc-conf
[mmr@unix]$ sudo apt-get install sysvconfig

Tuesday, July 7, 2009

Ubuntu root password change

log in as normal user

user$ sudo passwd [type and press enter]

New password xxxxxxxxx [type x as your password for root then press enter]
re-enter your password

now su for root or use another console and log in as user root

Install KDE for graphics mode

# apt-get install kde

TASK -1 Enable the firewall and set the default rule to deny incoming connections to all ports:

sudo ufw enable
sudo ufw default deny