skip to main | skip to sidebar

Smiertx Site

Copyleft (C) 2007 smiertx-bani-ikhyar. This tutorial comes with ABSOLUTELY NO WARRANTY. This is free tutorial, and you are welcome to redistribute it under certain conditions. See the GNU General Public License for more details.

About Me

My Photo
smiertx bani ikhyar ...............
View my complete profile

Facebook Badge

Ikhyar Smiertx Subani

Create Your Badge
HOW-TO SYMBIAN Free e-book Telco
Linux Solaris HP-UX F5 BIG-IP Streaming Misc.
Howto re-install PHP support Oracle Client
Monitoring Dual Master MySQL Replication
Howto Dual Master MySQL Replication
Howto Change datadir MySQL
Howto setting proxy on Linux
Howto RedHat Cluster Manager
Howto Linux GRUB recovery
Howto adjust max. simultaneous connection on apache
Howto MySQL Replication
Howto SSH gateway with iptables
Howto nmap on Linux
Howto setting Qmail on Linux 6
Howto setting Qmail on Linux 5
Howto setting Qmail on Linux 4
Howto setting Qmail on Linux 3
Howto setting Qmail on Linux 2
Howto setting Qmail on Linux 1
Howto install Drupal on Linux
Howto customize Gnome on Linux
Howto install MPlayer and codecs on Linux
Howto compile kernel on Linux
Howto setting IP Bonding on Linux
Howto setting OpenSSH SSH Server on Linux
Howto setting Webalizer on Linux
Howto setting MRTG on Linux
Howto setting Linux as Router
Howto setting Linux as Gateway
Howto setting Camserv on Linux
Howto setting edna on Linux
Howto setting Squid Proxy Server on Linux
Howto setting BIND DNS Server on Linux
Howto setting Apache Web Server on Linux
Howto setting vsftpd FTP Server on Linux
Howto setting DHCP Server on Linux
Howto setting Samba on Linux
Howto setting ILOM
Howto configure boot device order on ILOM
Howto configure network on ILOM
Howto soft partition on Solaris
Howto Hardening system kernel on Solaris
Howto Hardening Network on Solaris
Howto mirror disk on Solaris
Setting ALOM on Solaris
Howto Logadm on Solaris
Howto User Jail on ProFTPd
General Solaris Commands
Show I/O error on Solaris
Setting File Descriptor kernel paramater on Solaris
Setting TCP kernel parameter on Solaris
Howto IPMP on Solaris - link based detection
Howto IPMP on Solaris - probe based detection
Howto Virtual host on ProFTPd
Howto adjust free memory
Default SAR commands on Solaris
Howto netstat on Solaris
Howto vmstat on Solaris
Howto iostat on Solaris
Howto SAR on Solaris
Howto Install Oracle Client on Sparc
Howto Re-Install Oracle Database on Sparc
Howto Install Oracle Database on Sparc
Howto setting ethernet parameter on Solaris
Howto detect ethernet on Solaris
Howto Routing on Solaris
Howto setting IP virtual on Solaris
Howto setting IP address on Solaris
Howto NTP Server On Solaris 2
Howto NTP Server On Solaris 1
Howto NFS Server On Solaris 2
Howto NFS Server On Solaris 1
Differences between trusted and non-trusted systems
Howto cstm on HP-UX
Monitoring LED status on HP Server
Show HP-UX kernel parameter
Show Hardware info on HP Server
Howto Storage Area Network on HP-UX
Howto mirror disk on HP-UX 2
Howto mirror disk on HP-UX 1
Howto mirror root disk on HP-UX
Howto unlocked root/user on HP-UX
Show memory info on HP-UX
Show ethernet card info on HP-UX
Show machine info on HP-UX
Howto Install depot files on HP-UX
Howto setting hostname on HP-UX
Howto setting IP address on HP-UX
Howto Persistence Profile on F5 BIG-IP LTM
Howto Rebooting SCCP F5 BIG-IP LTM 2
Howto Rebooting SCCP F5 BIG-IP LTM 1
Howto resolve failed loading license on F5 BIG-IP LTM
Howto resolve chassis fan reported as bad on F5 BIG-IP LTM
Howto iRule on F5 BIG-IP LTM
Howto tagged & untagged interface on F5 BIG-IP LTM
Howto Activate License on F5 BIG-IP LTM
Howto Live transcoding HTTP/MMS/RTSP streaming 5
Howto Live transcoding HTTP/MMS/RTSP streaming 4
Howto Live transcoding HTTP/MMS/RTSP streaming 3
Howto Live transcoding HTTP/MMS/RTSP streaming 2
Howto Live transcoding HTTP/MMS/RTSP streaming 1
Howto channel redundant on Helix Server
Howto multicast on Switch
Streaming Solution with Helix and F5 BIG-IP LTM
Howto unicast on Helix Server
Howto setting Helix Mobile Producer
Howto setting Helix Server
Howto Pull Spliting and URL aliasing on Helix
Howto physical connection EMC CLAriion, IBM Blade, SAN Switch, Cisco Switch
Howto Initialized EMC Storage CLAriion
-----
Howto setting Cisco Switch 2960 G
-----
SAN Switch Config Commands
SAN Switch Show Commands
-----
Howto prevent SMTP Open Relay
Howto setting SMTP Open Relay 4
Howto setting SMTP Open Relay 3
Howto setting SMTP Open Relay 2
Howto setting SMTP Open Relay 1
Application Games
Advanced Call Manager
Application Manager
CellTrack NetMonitor
FExplorer
Flash SMS
Gmail
IP Dump
LCG Jukebox
n70 Torch
Nimbuzz
Power MP3
Putty Mobile
Real One Mobile
SeleQ
SMS Planner
3D bigfoot racing
4Wheel Xtreme 3D
Age of Empires III
Aiolos Fighter
Airstrike 1944
Asphalt 3 - Street Rules
Asphalt 4 - Elite Racing
Assassin Creed
Batman - The dark knight
Beowulf
Call Of Duty V - World At War
Dark Knight
Death Race
Delta Corps
Die Hard 4
Guitar Hero 3
Harry Potter - Mastering Magic
Harry Potter
High Speed 5 3D
Indiana Jones And The Kingdom Of The Crystal Skull
King Kong
Lords of the Rings - Two Towers
Metal Slug X
Mission Impossible III
NBA Pro Basketball 2009
NFS Most Wanted
Pro Evolution Soccer 2009
Power Rangers - mystic force
Prince of Persia - The Sands of Time
Prince of Persia - The Two Thrones
Prince of Persia - Warrior Within
Rush Hour 3
Sim City Metropolis
Sky Force Reloaded
Splinter Cell Chaos Theory
Street Fighter II champion edition
Wall-E
Zuma
RedHat Linux [based on experience] book
HLR (Home Location Register)
Definition
--------------------
GGSN (Gateway GPRS Support Node)
Definition

Another of me

  • Facebook
  • Linkedin
  • T-SHIRT Shop
  • YouTube

Translate to your Language



Add to Technorati Favorites

 

January 10, 2008

Setting Mail Server with Qmail on Fedora 3 part3


11. Installing Vqadmin
Vqadmin is simply a nice web based interface that will let us manage Vpopmail.
Through the interface we can create new domains, new users, net quotas, enable services and much more.

# cd /downloads/qmailrocks

# tar zxvf vqadmin-2.3.6.tar.gz

# cd vqadmin-2.3.6

# ./configure --enable-cgibindir=/var/www/cgi-bin --enable-htmldir=/var/www/html

# make && make install-strip

Vqadmin should install itself in the cgi-bin directory of your default website.

Now you will need to add the following to your server's Apache configuration file (httpd.conf)

# vi /etc/httpd/conf/httpd.conf


deny from all
Options ExecCGI
AllowOverride AuthConfig
Order deny,allow


Within the Apache master config file you have to set the "AllowOveride" option to "All".
Example: AllowOverride All

# cd /var/www/cgi-bin/vqadmin

Now you will want to create a .htaccess file to password protect the Vqadmin interface.

# vi .htaccess

AuthType Basic
AuthUserFile /var/www/cgi-bin/.htpasswd
AuthName vQadmin
require valid-user
satisfy any

# chown apache .htaccess

# chmod 644 .htaccess

Now you need to create a corresponding .htpasswd file that's going to contain the username and encrypted password for the Vqadmin administrator...

htpasswd -bc /var/www/cgi-bin/.htpasswd admin admin_password

# chmod 644 /var/www/cgi-bin/.htpasswd

Now restart Apache...

# apachectl stop

# apachectl start

If all has gone well, you should now be able to browse (in your web browser) to:
http://www.smiert.org/cgi-bin/vqadmin/vqadmin.cgi

Enter the user "admin" and whatever password your assigned it.

You should now see the Vqadmin interface. Go ahead and add a new domain to your server!
The "postmaster" user serves as the admin user for any new domain and we will use it to log into Qmailadmin.
The nice thing about Vpopmail and Vqadmin is that you do not need to restart anything after you add a domain.

12. Installing Maildrop
Maildrop is a mail filtering agent which can be used to filter messages as they arrive on the server.

# cd /downloads/qmailrocks

# tar zxvf maildrop-1.6.3.tar.gz

# cd maildrop-1.6.3

# ./configure --prefix=/usr/local --exec-prefix=/usr/local --enable-maildrop-uid=root --enable-maildrop-gid=vchkpw --enable-maildirquota

# make && make install-strip && make install-man

13. Installing Qmailadmin
Qmailadmin provide us with a nice web based interface for administering mail accounts once they are setup through Vpopmail (or Vqadmin).
From Qmailadmin we can create mailboxes, aliases, fowards, mail robots, mailing lists.

# cd /downloads/qmailrocks

# tar zxvf qmailadmin-1.2.9.tar.gz

# cd qmailadmin-1.2.9

# ./configure --enable-cgibindir=/var/www/cgi-bin --enable-htmldir=/var/www/html

# make && make install-strip

Now browse to http://www.smiert.org/cgi-bin/qmailadmin and you should see the login screen.
Login with the postmaster account and password for the domain that you created a while back using Vqadmin.
Go ahead and create some additional mailboxes for your domain(s).

14. Finalizing qmail installation

Create the qmail supervise scripts, create the the qmail rc and qmailctl scripts and then set the needed permissions on all these scripts.
# /downloads/qmailrocks/scripts/finalize/linux/finalize_linux.script

# vi /var/qmail/supervise/qmail-pop3d/run

Find "mail.example.com" and change it to your server's hostname. For example: mail.smiert.org

# vi /var/qmail/supervise/qmail-smtpd/run

Find "mail.example.com" and change it to your server's hostname. For example: mail.smiert.org

# qmailctl stop

We setup selective relaying for localhost...

# echo '127.:allow,RELAYCLIENT=""' >> /etc/tcp.smtp

# qmailctl cdb

Now we create the common system aliases.
These aliases are going to tell Qmail what to do with common server-generated mails. Stuff like bouncebacks, cron daily output and various other systemic sources.

# echo postmaster@smiert.org > /var/qmail/alias/.qmail-root

# echo postmaster@smiert.org > /var/qmail/alias/.qmail-postmaster

# echo postmaster@smiert.org > /var/qmail/alias/.qmail-mailer-daemon

# ln -s /var/qmail/alias/.qmail-root /var/qmail/alias/.qmail-anonymous

# chmod 644 /var/qmail/alias/.qmail*

15. Uninstalling other Mail Transport Agent like Sendmail, Postfix, and Exim
# rpm -qa | grep sendmail

# /etc/init.d/sendmail stop

# rpm -e --nodeps sendmail
# rpm -e --nodeps sendmail-doc
# rpm -e --nodeps sendmail-devel
# rpm -e --nodeps sendmail-cf

# rpm -qa | grep postfix

# rpm -e --nodeps postfix

# rpm -qa | grep exim

# rpm -e --nodeps exim


Now we will need to set up an "artificial" Sendmail, which is just a symbolic link to Qmail's Sendmail.
This is needed to ensure that the myriad of systemic mail scripts are still able to send mail!
Qmail's "Sendmail" is nothing more than a direct injection into Qmail itself...

# ln -s /var/qmail/bin/sendmail /usr/lib/sendmail

# ln -s /var/qmail/bin/sendmail /usr/sbin/sendmail
Newer Post Older Post Home