{"id":107,"date":"2009-08-09T00:43:06","date_gmt":"2009-08-09T06:43:06","guid":{"rendered":"http:\/\/blog.supportpro.com\/?p=107"},"modified":"2018-10-04T23:53:12","modified_gmt":"2018-10-05T05:53:12","slug":"qmail-a-brief-introduction","status":"publish","type":"post","link":"https:\/\/www.supportpro.com\/blog\/qmail-a-brief-introduction\/","title":{"rendered":"Qmail .. A brief introduction .."},"content":{"rendered":"<p><strong>QMAIL<\/strong><\/p>\n<p>Qmail is an MTA similar to Exim<\/p>\n<p><strong>INSTALLATION<\/strong><\/p>\n<p>Installation involves the following steps:<\/p>\n<p>1.Installing Qmail itself<\/p>\n<p>2.Installing EZmlm and EZmlm-idx<\/p>\n<p>3.Installing Autoresponder<\/p>\n<p>4.Installing Vpopmail<\/p>\n<p>5.Installing maildrop<\/p>\n<p>6.Uninstalling Sendmail<\/p>\n<p>7.Starting up qmail<\/p>\n<p><!--more--><\/p>\n<p>You may download these from http:\/\/www.qmailrocks.org\/downloads\/<\/p>\n<p>mkdir \/usr\/local\/src\/qmail<\/p>\n<p>Download all the zip folders to the folder qmail<\/p>\n<p>cd \/usr\/src\/qmail\/qmail-1.03<\/p>\n<p>make man &amp;&amp; make setup check<\/p>\n<p>.\/config-fast your_fqdn_hostname<\/p>\n<p>(eg: .\/config-fast mail.mydomain.com)<\/p>\n<p><!--more--><\/p>\n<p><strong>Ezmlm <\/strong><\/p>\n<p>EZmlm is a nice mailing list add-on to Qmail<\/p>\n<p>cd \/usr\/src\/qmail\/<\/p>\n<p>tar zxvf ezmlm-0.53-idx-0.41.tar.gz<\/p>\n<p>tar zxvf ezmlm-0.53-idx-0.41.tar.gz<\/p>\n<p>make &amp;&amp; make setup<\/p>\n<p><strong>Autoresponder<\/strong><\/p>\n<p>cd \/usr\/src\/qmail\/<\/p>\n<p>tar zxvf autorespond-2.0.5.tar.gz<\/p>\n<p>cd autorespond-2.0.5<\/p>\n<p>make &amp;&amp; make install<\/p>\n<p><strong>Vpopmail<\/strong><\/p>\n<p>Vpopmail is a set of programs for creating and managing multiple virtual domains on a qmail server, with full support for many POP\/IMAP servers. A web interface to vpopmail is called Vqadmin<\/p>\n<p>Create a vpopmail user and a vchkpw group<\/p>\n<p>Set up the vpopmail mysql connection config file under the vpopmail users home directory.<\/p>\n<p>echo localhost|0|vpopmailuser|password|vpopmail &gt; ~vpopmail\/etc\/vpopmail.mysql<\/p>\n<p>chown vpopmail:vchkpw ~vpopmail\/etc\/vpopmail.mysql<\/p>\n<p>chmod 640 ~vpopmail\/etc\/vpopmail.mysql<\/p>\n<p><strong>Creating the Database User<\/strong><\/p>\n<p>Log into your MySQL server as root and type the following commands to create the database for vpopmail.<\/p>\n<p>mysql&gt; CREATE DATBASE vpopmail;<\/p>\n<p>mysql&gt; GRANT ALL ON vpopmail.* TO vpopmail@localhost IDENTIFIED BY yourpassword;<\/p>\n<p>mysql&gt; flush privileges;<\/p>\n<p>cd \/usr\/src\/qmail\/<\/p>\n<p>tar zxvf vpopmail-5.4.13.tar.gz<\/p>\n<p>cd vpopmail-5.4.13<\/p>\n<p>.\/configure enable-logging=p enable-auth-module=mysql disable-passwd enable-clear-passwd disable-many-domains enable-auth-logging enable-sql-logging enable-valias disable-mysql-limits<\/p>\n<p>make &amp;&amp; make install-strip<\/p>\n<p><strong>Maildrop<\/strong><\/p>\n<p>Maildrop is a mail filtering agent which can be used to filter messages as they arrive on the server.<\/p>\n<p>cd \/usr\/src\/qmail\/<\/p>\n<p>tar zxvf maildrop-1.6.3.tar.gz<\/p>\n<p>cd maildrop-1.6.3<\/p>\n<p>.\/configure prefix=\/usr\/local exec-prefix=\/usr\/local enable-maildrop-uid=root enable-maildrop-gid=vchkpw enable-maildirquota<\/p>\n<p>make &amp;&amp; make install-strip &amp;&amp; make install-man<\/p>\n<p><strong>Removing Sendmail<\/strong><\/p>\n<p>rpm -qa | grep sendmail<\/p>\n<p>If Sendmail is installed as an RPM, you will see an output similar to this:<\/p>\n<p>sendmail-x.x.x.x<\/p>\n<p>sendmail-doc-x.x.x.x<\/p>\n<p>sendmail-devel-x.x.x.x<\/p>\n<p>sendmail-cf-x.x.x.x<\/p>\n<p>If its installed as an RPM, you can uninstall Sendmail quite easily by running the following commands:<\/p>\n<p>\/etc\/rc.d\/init.d\/sendmail stop (to stop Sendmail)<\/p>\n<p>rpm -e nodeps sendmail-x.x.x.x<\/p>\n<p>rpm -e nodeps sendmail-doc-x.x.x.x<\/p>\n<p>rpm -e nodeps sendmail-devel-x.x.x.x<\/p>\n<p>rpm -e nodeps sendmail-cf-x.x.x.x<\/p>\n<p>If the RPM query produces no output, you most likely have a source install of Sendmail.<\/p>\n<p>\/etc\/rc.d\/init.d\/sendmail stop (to stop Sendmail)<\/p>\n<p>mv \/usr\/lib\/sendmail \/usr\/lib\/sendmail.old<\/p>\n<p>mv \/usr\/sbin\/sendmail \/usr\/sbin\/sendmail.old<\/p>\n<p>chmod 0 \/usr\/lib\/sendmail.old \/usr\/sbin\/sendmail.old<\/p>\n<p>Establishing an artificial Sendmail path<\/p>\n<p>ln -s \/var\/qmail\/bin\/sendmail \/usr\/lib\/sendmail<\/p>\n<p>ln -s \/var\/qmail\/bin\/sendmail \/usr\/sbin\/sendmail<\/p>\n<p><strong>Starting qmail<\/strong><\/p>\n<p>qmailctl stop<\/p>\n<p>qmailctl start<\/p>\n<p>You can find out how things are running by: qmailctl stat<\/p>\n<p>You should see an output like this:<\/p>\n<p>\/service\/qmail-send: up (pid 29956) 2 seconds<\/p>\n<p>\/service\/qmail-send\/log: up (pid 29960) 2 seconds<\/p>\n<p>\/service\/qmail-smtpd: up (pid 29963) 2 seconds<\/p>\n<p>\/service\/qmail-smtpd\/log: up (pid 29968) 2 seconds<\/p>\n<p>\/service\/qmail-pop3d: up (pid 29971) 2 seconds<\/p>\n<p>\/service\/qmail-pop3d\/log: up (pid 29972) 2 seconds<\/p>\n<p>messages in queue: 0<\/p>\n<p>messages in queue but not yet preprocessed: 0<\/p>\n<p><strong>Location of qmail logs <\/strong><\/p>\n<p>\/var\/log\/qmail\/qmail-smtpd\/<\/p>\n<p>\/var\/log\/qmail\/qmail-send\/<\/p>\n<p>\/var\/log\/qmail\/qmail-pop3d\/<\/p>\n<p><strong>How can I decipher qmail logs?<\/strong><\/p>\n<p>1. Search the logs for info msg N: bytes M from SENDER entries.<\/p>\n<p>2. Note the message ID, N.<\/p>\n<p>3. Search forward for starting delivery K: msg N to remote\/local RECIPIENT entries.<\/p>\n<p>4. For each one you find before the first end msg N entry, youve discovered a recipient.<\/p>\n<p><strong>Article Authored by Junitha Mayana<\/strong><\/p>\n<p><strong>Author, Junitha Mayana, is a Systems Engineer with SupportPRO. Junitha specializes in Level 2 and Level 3 Linux \/ Windows Administration. SupportPRO offers 24X7 technical support services to Web hosting companies and service providers.<\/strong><\/p>\n<p>If you require help, <a href=\"https:\/\/www.supportpro.com\/requestquote.php\">contact SupportPRO Server Admin<\/a><\/p>\n<p style=\"text-align: center;\"><!--HubSpot Call-to-Action Code --><span id=\"hs-cta-wrapper-9d590242-d641-4383-94b4-8cfd62f0af6b\" class=\"hs-cta-wrapper\"><span id=\"hs-cta-9d590242-d641-4383-94b4-8cfd62f0af6b\" class=\"hs-cta-node hs-cta-9d590242-d641-4383-94b4-8cfd62f0af6b\"><!-- [if lte IE 8]><\/p>\n\n\n\n\n\n<div id=\"hs-cta-ie-element\"><\/div>\n\n\n<![endif]--><a href=\"https:\/\/cta-redirect.hubspot.com\/cta\/redirect\/2725694\/9d590242-d641-4383-94b4-8cfd62f0af6b\"><img decoding=\"async\" id=\"hs-cta-img-9d590242-d641-4383-94b4-8cfd62f0af6b\" class=\"hs-cta-img\" style=\"border-width: 0px;\" src=\"https:\/\/no-cache.hubspot.com\/cta\/default\/2725694\/9d590242-d641-4383-94b4-8cfd62f0af6b.png\" alt=\"Server not running properly? Get A FREE Server Checkup By Expert Server Admins - $125 Value\" \/><\/a><\/span><script charset=\"utf-8\" src=\"https:\/\/js.hscta.net\/cta\/current.js\"><\/script><script type=\"text\/javascript\"> hbspt.cta.load(2725694, '9d590242-d641-4383-94b4-8cfd62f0af6b', {}); <\/script><\/span><!-- end HubSpot Call-to-Action Code --><\/p>\n","protected":false},"excerpt":{"rendered":"<p>QMAIL Qmail is an MTA similar to Exim INSTALLATION Installation involves the following steps: 1.Installing Qmail itself 2.Installing EZmlm and EZmlm-idx 3.Installing Autoresponder 4.Installing Vpopmail 5.Installing maildrop 6.Uninstalling Sendmail 7.Starting&hellip;<\/p>\n","protected":false},"author":4,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_lmt_disableupdate":"","_lmt_disable":"","footnotes":""},"categories":[5],"tags":[],"class_list":["post-107","post","type-post","status-publish","format-standard","hentry","category-general-topics"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/www.supportpro.com\/blog\/wp-json\/wp\/v2\/posts\/107","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.supportpro.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.supportpro.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.supportpro.com\/blog\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/www.supportpro.com\/blog\/wp-json\/wp\/v2\/comments?post=107"}],"version-history":[{"count":7,"href":"https:\/\/www.supportpro.com\/blog\/wp-json\/wp\/v2\/posts\/107\/revisions"}],"predecessor-version":[{"id":3441,"href":"https:\/\/www.supportpro.com\/blog\/wp-json\/wp\/v2\/posts\/107\/revisions\/3441"}],"wp:attachment":[{"href":"https:\/\/www.supportpro.com\/blog\/wp-json\/wp\/v2\/media?parent=107"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.supportpro.com\/blog\/wp-json\/wp\/v2\/categories?post=107"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.supportpro.com\/blog\/wp-json\/wp\/v2\/tags?post=107"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}