Install Qmail Server

Install Qmail Server
Requires QMail installation

qmail-1.03.tar.gz qmail originals
qmail-date-localtime.patch - & gt; From the name can also be read out, tar ball is pacth for localtime
ucspi-tcp-0.88.tar.gz ------ & gt; tcpserve, to limit is the right acsesse
checkpw-0.80.tar.gz apop --- & gt; To receive mail
checkpassword-0.90.tar.gz --- & gt; Password linux for user
relay-ctrl-2.5.tar.gz --- & gt; Can be made to pop before smtp

Create group & amp; usr for qmail

QUOTE
mkdir / var / qmail
groupadd nofiles
useradd -g nofiles -d / var / qmail / alias -s / bin / false alias
useradd -g nofiles -d / var / qmail -s / bin / false qmaild
useradd -g nofiles -d / var / qmail -s / bin / false qmaill
useradd -g nofiles -d / var / qmail -s / bin / false qmailp
groupmail qmail
useradd -g qmail -d / var / qmail -s / bin / false qmailq
useradd -g qmail -d / var / qmail -s / bin / false qmailr
useradd -g qmail -d / var / qmail -s / bin / false qmails


Install qmail

QUOTE
cd qmail-1.03
patch -p1 & lt; ../qmail-date-localtime.patch: localtime pacth
patch -p1 & lt; ../checkpw-0.80/qmail-popup-auth.patch: patch apop mail
maek setup check
./config-fast dora.dip.jp
cp / var / qmail / boot / home / var / qmail / rc
mkdir / var / qmail / alias
cd / var / qmail / alias
touch .qmail-postmaster .qmail-mailer-daemon .qmail-root
chmod 644 .qmail 1 AzSoft_watermark_big.png AzSoft_watermark_small.png cong-nghe?p=1 des.txt en_metadesc.txt en_name.txt getpageinfo.sh getpagelink.sh imglink.txt imglist.txt img.quantrimang.com label:Some Text link_original.txt link.txt log.txt meta_desc.txt name.txt news t-142619 testimg2-0.jpg testimg2-1.jpg testimg2.jpg testimg3.jpg testimg.jpg thumb tim-hieu-excel-2016-200.jpg title_vn.txt tmp02.html tmp03.html tmp2.html tmpdesc2.txt tmpdesc3.txt tmpdesc4.txt tmpdesc5.txt tmpdesc6.txt tmpdesc7.txt tmpdesc.txt tmp.html tmpresult.txt tmptrans.txt transresult.txt wm.quantrimang.com www.mailenable.com www.microsoft.com

Install tcpserver QUOTE
cd ucspi-tcp-0.88
make setup check

Install apop

QUOTE
cd checkpw-0.80
make setup check

Setting share program for password

In the apop password, you must specify a .password file! If you use this then you can use the account and password to login


QUOTE
cd checkpassword-0.90
make setup check

Install relay-ctrl (pop before smtp)

QUOTE
make
make root-install
useradd -d / var / qmail / relay-ctrl -s / bin / false relay-ct
chown relay-ct / usr / sbin / relay-ctrl-allow
chmod u + s / usr / sbin / relay-ctrl-allow
mkdir / etc / relay-ctrl
cd / etc / relay-ctrl
echo `` / var / qmail / relay-ctrl`` & gt; rulesdir
echo `` tcprules.dat`` & gt; smtpcdb
echo `` tcprules.txt`` & gt; smtprules
echo `` / usr / local / bin / tcprules`` & gt; tcprules
mkdir / var / qmail / relay-ctrl / spool
vi /var/qmail/relay-ctrl/tcprules.txt

127. allow, RELAYCLIENT = `` ``
: allow

cd / var / qmail / relay-ctrl
/ usr / local / bin / tcprules tcprules.dat tcprules.tmp & lt; tcprules.txt
chown -R relay-ct / var / qmail / relay-ctrl
crontab -u relay-ct -e

1 AzSoft_watermark_big.png AzSoft_watermark_small.png curved-listening? P = 1 en_metadesc.txt en_name.txt getpageinfo.sh getpagelink.sh imglink.txt imglist.txt img.quantrimang.com label: Some Text link_original.txt LINK.txt log.txt meta_desc.txt name.txt news t-142619 testimg2-0.jpg testimg2-1.jpg testimg2.jpg testimg3.jpg testimg.jpg thumb tim-hieu-excel-2016-200.jpg title_vn.txt tmp02.html tmp03.html tmp2.html tmpdesc2.txt tmpdesc3.txt tmpdesc4.txt tmpdesc5.txt tmpdesc6.txt tmpdesc7.txt tmpdesc.txt tmp.html tmpresult.txt tmptrans.txt transresult.txt wm.quantrimang.com www.mailenable.com www.microsoft. com 1 AzSoft_watermark_big.png AzSoft_watermark_small.png curved-listening? p = 1 des.txt en_metadesc.txt en_name.txt getpageinfo.sh getpagelink.sh imglink.txt imglist.txt img.AzSoft.com label: Some Text link_original.txt links. txt log.txt meta_desc.txt name.txt news t-142619 testimg2-0.jpg testimg2-1.jpg testimg2.jpg testimg3.jpg testimg.jpg thumb tim-hieu-excel-2016-200.jpg title_vn.txt tmp02. html tmp03.html tmp2.html tmpdesc2.txt tmpdesc3.txt tmpdesc4.txt tmpdesc5.txt tmpdesc6.txt tmpdesc7.txt tmpdesc.txt tmp.html tmpresult.txt tmptrans.txt transresult.txt wm.AzSoft.com www.mailenable.com www.microsoft. com 1 AzSoft_watermark_big.png AzSoft_watermark_small.png curved-listening? p = 1 des.txt en_metadesc.txt en_name.txt getpageinfo.sh getpagelink.sh imglink.txt imglist.txt img.AzSoft.com label: Some Text link_original.txt links. txt log.txt meta_desc.txt name.txt news t-142619 testimg2-0.jpg testimg2-1.jpg testimg2.jpg testimg3.jpg testimg.jpg thumb tim-hieu-excel-2016-200.jpg title_vn.txt tmp02. html tmp03.html tmp2.html tmpdesc2.txt tmpdesc3.txt tmpdesc4.txt tmpdesc5.txt tmpdesc6.txt tmpdesc7.txt tmpdesc.txt tmp.html tmpresult.txt tmptrans.txt transresult.txt wm.AzSoft.com www.mailenable.com www. Azsoft_watermark_big.png AzSoft_watermark_small.png cong-listening? p = 1 des.txt en_metadesc.txt en_name.txt getpageinfo.sh getpagelink.sh imglink.txt imglist.txt img.AzSoft.com label: Some Text link_o riginal.txt link.txt log.txt meta_desc.txt name.txt news t-142619 testimg2-0.jpg testimg2-1.jpg testimg2.jpg testimg3.jpg testimg.jpg thumb tim-hieu-excel-2016-200.jpg tmp03.html tmp02.html tmpdesign.txt tmpdesktop.txt www.mailenable.com www.microsoft.com 1 AzSoft_watermark_big.png cong-listening? p = 1 des.txt label: some text link_original.txt link.txt log.txt meta_desc.txt name.txt news t-142619 testimg2-0.jpg testimg2-1.jpg testimg2.jpg testimg3.jpg testimg.jpg thumb tim-hieu-excel-2016 -200.jpg tmp03.html tmp02.html tmpdesign.txt tmpdesktop.txt .AzSoft.com www.mailenable.com www.microso ft.com / usr / sbin / relay-ctrl-age



I have done the install tar ball, now go to the settings for qmail.

Qmail startup files


QUOTE
/ var / qmail / rc
#! / bin / sh

/ smtp / var / qmail / bin / qmail-smtpd 2 & gt; & amp; 1 | / var / qmail / bin / splogger smtp 3 & amp;

/ usr / local / bin / tcpserver -H 0 pop3 / var / qmail / bin / qmail-popup dora.dip.jp / bin / check_apop_pop / usr / pop3d Maildir & amp;

exec env - PATH = `` / var / qmail / bin: $ PATH``
qmail-start./Maildir/ qmail splogger
/ bin / check_apop_pop
#! / bin / sh
case `` $ AUTH`` in
apop)
exec / bin / checkapoppw `` $ @ ``


exec / bin / checkpassword `` $ @ ``

esac

Remember to change the parmission to 755


Setting boot qmal
jail ------- & gt; /etc/rc.d/rc.local dynamic ----- & gt; / var / qmail / rc


QUOTE
/etc/rc.d/rc.local

if [-x / var / qmail / rc]; then
echo -n `` qmail server daemon start .... ``
/ var / qmail / rc & amp;
echo `` .``



If you are giving other usres, please create a mailbox for them. Of course, the root is already created. How to create a mailbox you can do in / var / qmail / bin / maildirmake ~ user / Maildir while you add it in / var / qmail / bin / maildirmake / etc / skel it will automatically do maildir for you (Maybe make Maildir in etc / skel / user .. then when you add the user in user dir will automatically give you a Maildir)

Maildir

QUOTE
su user ID
cd $ HOME
/ var / qmail / bin / maildirmake ~ / Maildir
echo ./Maildir/ & gt; .qmail
exit

Mailbox

QUOTE
su user ID
cd $ HOME
echo ./Mailbox & gt; .qmail
exit
cd / var / mail
ln -s $ HOME / Mailbox user ID

Check prosess

QUOTE
ps -A | grep qmail
26776 pts / 5 0:00 qmail-se
26779 pts / 5 0:00 qmail-rs
26780 pts / 5 0:00 qmail-cl
26778 pts / 5 0:00 qmail-ls
& nbsp;