<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>iphone and gis development notes &#187; qmail</title>
	<atom:link href="http:///wordpress/tag/qmail/feed/" rel="self" type="application/rss+xml" />
	<link>/wordpress</link>
	<description>By Rupert</description>
	<lastBuildDate>Sun, 29 Aug 2010 22:44:41 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>SquirrelMail SMTP Authentication</title>
		<link>/wordpress/2008/01/squirrelmail-smtp-authentication/</link>
		<comments>/wordpress/2008/01/squirrelmail-smtp-authentication/#comments</comments>
		<pubDate>Fri, 04 Jan 2008 13:16:44 +0000</pubDate>
		<dc:creator>rupert</dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[centos]]></category>
		<category><![CDATA[qmail]]></category>

		<guid isPermaLink="false">/wordpress/?p=132</guid>
		<description><![CDATA[Just a quick note to myself&#8230; A co-worker just notified me that they cannot send email using the web interface&#8211;squirrelmail. squirrelmail Server replied: 553 sorry, that domain isn't in my list of allowed rcpthosts (#5.5.3 - chkuser) This qmailrocks forum thread gives a quick workaround. Just set &#8220;SMTP AUTHENTICATION&#8221; to login as noted below. /usr/share/squirrelmail/config/config.php]]></description>
			<content:encoded><![CDATA[<p>Just a quick note to myself&#8230; A co-worker just notified me that they cannot send email using the web interface&#8211;squirrelmail.</p>
<p><code>squirrelmail Server replied: 553 sorry, that domain isn't in my list of allowed rcpthosts (#5.5.3 - chkuser)</code></p>
<p><a href="http://forum.qmailrocks.org/archive/index.php/t-2547.html">This qmailrocks forum thread gives a quick workaround.</a> Just set &#8220;SMTP AUTHENTICATION&#8221; to login as noted below.</p>
<p><code><br />
/usr/share/squirrelmail/config/config.php<br />
$no_list_for_subscribe = false;<br />
$smtp_auth_mech = 'login';<br />
$imap_auth_mech = 'login';<br />
$use_imap_tls = false;<br />
</code></p>
]]></content:encoded>
			<wfw:commentRss>/wordpress/2008/01/squirrelmail-smtp-authentication/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Qmail Error 451</title>
		<link>/wordpress/2007/10/qmail-error-451/</link>
		<comments>/wordpress/2007/10/qmail-error-451/#comments</comments>
		<pubDate>Tue, 30 Oct 2007 13:43:41 +0000</pubDate>
		<dc:creator>rupert</dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[qmail]]></category>
		<category><![CDATA[spam]]></category>

		<guid isPermaLink="false">/wordpress/?p=111</guid>
		<description><![CDATA[Finally, I was able to nail down the PBL problems I had with my qmail server. I was able to use Outlook 2007/2003 to use my pop/smtp. To use Outlook 2007, you should have the ff settings: 1. Tools -&#62; Account Settings. 2. Click on the desired account 3. Click on &#8220;More Settings&#8221; button 4.]]></description>
			<content:encoded><![CDATA[<p>Finally, I was able to nail down the PBL problems I had with my qmail server. I was able to use Outlook 2007/2003 to use my pop/smtp. To use Outlook 2007, you should have the ff settings:</p>
<p>1. Tools -&gt; Account Settings.<br />
2. Click on the desired account<br />
3. Click on &#8220;More Settings&#8221; button<br />
4. In the outgoing server tab, ensure that you have &#8220;My outgoing server (SMTP) requires authentication&#8221; checked.<br />
5. In the outgoing server tab, ensure that you have &#8220;Use same settings as my incoming mail server&#8221; checked.<br />
6. In the Advanced Tab, you can set it to &#8220;Auto&#8221;</p>
<p><strong>Spamhaus problem. 451 http://www.spamhaus.org/query/bl?ip=219.142.133.68. </strong><br />
You can remove spamhaus when you send email, but that&#8217;s quite dangerous. If you want to completely remove the PBL checking,</p>
<p>1. Check your blacklist settings. You can remove the line below, or change it to an PBL listings like <a href="http://forum.qmailrocks.org/archive/index.php/t-3103.html">http://forum.qmailrocks.org/archive/index.php/t-3103.html</a></p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">more</span> <span style="color: #000000; font-weight: bold;">/</span>var<span style="color: #000000; font-weight: bold;">/</span>qmail<span style="color: #000000; font-weight: bold;">/</span>control<span style="color: #000000; font-weight: bold;">/</span>blacklist
<span style="color: #660033;">-r</span> sbl.spamhaus.org</pre></div></div>

<p>2. Restart qmail</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>init.d<span style="color: #000000; font-weight: bold;">/</span>qmailctl stop
<span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>init.d<span style="color: #000000; font-weight: bold;">/</span>qmailctl start</pre></div></div>

<p><strong>553 sorry, that domain isn&#8217;t in my list of allowed rcpthosts (#5.5.3 &#8211; chkuser)</strong><br />
Here&#8217;s a good description of the problem on relaying. <a herf="http://www.palomine.net/qmail/relaying.html">http://www.palomine.net/qmail/relaying.html<br />
</a>. If you &#8220;enabled smtp authentication&#8221; and used your settings for loggin-in, then this would not happen. I experienced this when I changed my Outlook 2007 settings to &#8220;Log on to incoming mail server before sending mail&#8221;.</p>
<p>References: <a href="http://www.peternew.co.uk/?p=85">http://www.peternew.co.uk/?p=85</a><br />
<a href="http://www.spamhaus.org/sbl/howtouse.html">http://www.spamhaus.org/sbl/howtouse.html</a></p>
]]></content:encoded>
			<wfw:commentRss>/wordpress/2007/10/qmail-error-451/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Installing a qmail server</title>
		<link>/wordpress/2007/02/installing-a-qmail-server/</link>
		<comments>/wordpress/2007/02/installing-a-qmail-server/#comments</comments>
		<pubDate>Wed, 31 Jan 2007 23:35:28 +0000</pubDate>
		<dc:creator>rupert</dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[centos]]></category>
		<category><![CDATA[qmail]]></category>

		<guid isPermaLink="false">/wordpress/?p=29</guid>
		<description><![CDATA[Its been almost two years now since I installed a mail server. Nevertheless, qmail still rocks as qmailtoaster becomes more convenient to install. I also tried the install on a fresh CentOS4.4 machines, and it works like a charm. -------------------------------------------------------------------- EZ QmailToaster Fresh Install on CentOS 4.3 Nick Hemmesch &#60;nick @ndhsoft.com&#62; June 08, 2006 --------------------------------------------------------------------]]></description>
			<content:encoded><![CDATA[<p>Its been almost two years now since I installed a mail server. Nevertheless, <a href="http://www.qmailtoaster.com/centos/cnt40/EZ-QmailToaster-CentOS-4.3.txt">qmail still rocks as qmailtoaster becomes more convenient to install.</a> I also tried the install on a fresh CentOS4.4 machines, and it works like a charm.</p>

<div class="wp_syntax"><div class="code"><pre class="text" style="font-family:monospace;">--------------------------------------------------------------------
EZ QmailToaster Fresh Install on CentOS 4.3
Nick Hemmesch &lt;nick @ndhsoft.com&gt; June 08, 2006
--------------------------------------------------------------------
&nbsp;
CentOS 4.3: This test install was performed on an
P4 3Ghz with 2GB ram on an Intel m/b. 
&nbsp;
--------------------------------------------------------------------
This tutorial is for CentOS 4.3 (cnt40) i386 
&nbsp;
To install CentOS 4.3 x86_64, replace cnt40 with cnt4064
&nbsp;
To install Fedora Core 4 &amp;amp; 5, change download path from centos to
fedora &amp;amp; cnt40 to fdr40, fdr4064, fdr50 or fdr5064 per your distro
--------------------------------------------------------------------
&nbsp;
Notes:
&nbsp;
You must have either a local dns server or a local caching name
server. If you need a caching namserver, we will add one in Step 8.
&nbsp;
Be sure to replace &quot;your-domain.com&quot; with your real domain name,
and &quot;your.fqdn.com&quot; with your server's &quot;Fully Qualified Domain Name&quot;.
&nbsp;
--------------------------------------------------------------------
1. Download CentOS 4.3 CD iso's or the DVD iso.
--------------------------------------------------------------------
&nbsp;
  Burn iso's to CD, or DVD if you downloded a DVD iso
&nbsp;
  Boot with your CD 1 or the DVD
&nbsp;
--------------------------------------------------------------------
2. CentOS Installation (This is the configuration of my test box):
--------------------------------------------------------------------
&nbsp;
  Splash Page: &lt;enter&gt; to install in graphical mode  
&nbsp;
  CD Found window: Choose &quot;Skip&quot; to bypass media test  
&nbsp;
  Welcome to CentOS: Click &quot;Next&quot;
&nbsp;
  Language Selection: Select your language &amp;amp; Click &quot;Next&quot;
&nbsp;
  Keyboard Configuration: Select language type &amp;amp; Click &quot;Next&quot;
&nbsp;
  Installation Type: Select &quot;Server&quot; &amp;amp; Click &quot;Next&quot;
&nbsp;
  Disk Partitioning Setup: Select &quot;Automatically Partition &amp;amp; Click &quot;Next&quot;
&nbsp;
      Warning: Click &quot;Yes&quot;
&nbsp;
  Automatic Partitioning: Select &quot;Remove all partitions&quot; &amp;amp; Click &quot;Next&quot;
&nbsp;
      Warning: Click &quot;Yes&quot;
&nbsp;
  Disk Setup: Click &quot;Next&quot;
&nbsp;
  Boot Loader Configuration: Click &quot;Next&quot;
&nbsp;
  Network Configuration: Click &quot;Edit&quot;
&nbsp;
      Edit Interface eth0: Deselect &quot;Configure using DHCP&quot;
&nbsp;
      Select &quot;Activate on boot&quot;
&nbsp;
      Enter your &quot;IP Address&quot; &amp;amp; &quot;Netmask&quot;
&nbsp;
      Click &quot;OK
&nbsp;
      Set the hostname:
&nbsp;
          Deselect &quot;automatically via DHCP&quot;
&nbsp;
          Select &quot;manually&quot; &amp;amp; enter your &quot;fully qualified domain name&quot;
&nbsp;
      Miscellaneous Settings:
&nbsp;
          Gateway: enter IP address of your gateway
&nbsp;
          Primary DNS: enter IP address of primary dns server
&nbsp;
          Secondary DNS: enter IP address of secondary dns server
&nbsp;
      Click &quot;Next&quot;
&nbsp;
  Firewall Configuration:
&nbsp;
      Select &quot;No firewall&quot;
&nbsp;
      Select &quot;Disabled&quot; mode for SELinux
&nbsp;
      Click &quot;Next&quot;
&nbsp;
          Warning - No Firewall: Click &quot;Proceed&quot;
&nbsp;
  Additional Language Support&quot; Click &quot;Next&quot;
&nbsp;
  Time Zone Selection: Select your time zone &amp;amp; Click &quot;Next&quot;
&nbsp;
  Set Root Password: Enter your root password twice &amp;amp; Click &quot;Next&quot;
&nbsp;
--------------------------------------------------------------------
3. Package Group Selection - Select ONLY the following groups:
--------------------------------------------------------------------
&nbsp;
  Server Configuration Tools: Select
&nbsp;
  Web Server: Select
&nbsp;
      Click &quot;Details&quot; and add php-mysql plus the defaults
&nbsp;
  DNS Name Server: Select
&nbsp;
  FTP Server: Select
&nbsp;
  MySQL Database: Select
&nbsp;
      Click &quot;Details&quot; and add mysql-bench, mysql-server plus the defaults
&nbsp;
  Development Tools: Select
&nbsp;
      Click &quot;Details&quot; and add expect to the defaults
&nbsp;
  Administration Tools: Select
&nbsp;
  System Tools: Select
&nbsp;
      Click &quot;Details&quot; and add mrtg to the defaults
&nbsp;
  Click &quot;Next&quot;
&nbsp;
  About to Install: Click &quot;Next&quot;
&nbsp;
      Required Install Media: verify and click &quot;Continue&quot;
&nbsp;
  Installing Packages: Click &quot;Next&quot; &amp;amp; watch the install
&nbsp;
  After installation: remove your media &amp;amp; Click &quot;Reboot&quot;
&nbsp;
--------------------------------------------------------------------
4. After reboot, login as root:
--------------------------------------------------------------------
&nbsp;
  mkdir -p /usr/src/qtms-install
&nbsp;
  cd /usr/src/qtms-install
&nbsp;
  This example is CentOS 4.3 i386 so the qmailtoaster switch is cnt40 
&nbsp;
--------------------------------------------------------------------
5. Prepare to Install QmailToaster:
--------------------------------------------------------------------
&nbsp;
  wget http://www.qmailtoaster.com/centos/cnt40/cnt40-deps.sh
&nbsp;
      sh cnt40-deps.sh
&nbsp;
  wget http://www.qmailtoaster.com/centos/cnt40/cnt40-perl.sh
&nbsp;
      sh cnt40-perl.sh
&nbsp;
  wget http://www.qmailtoaster.com/centos/cnt40/cnt40-svcs.sh
&nbsp;
  wget http://www.qmailtoaster.com/centos/cnt40/firewall.sh
&nbsp;
      nano -w cnt40-svcs.sh
&nbsp;
      edit MYSQLPW=your-mysql-password
&nbsp;
      ctl-o and enter to save
&nbsp;
      ctl-x to exit
&nbsp;
      nano -w firewall.sh
&nbsp;
      edit MYIP=&quot;your-IP-address&quot;
&nbsp;
      ctl-o and enter to save
&nbsp;
      ctl-x to exit
&nbsp;
      sh cnt40-svcs.sh
&nbsp;
  === NOTE ===
&nbsp;
  This script turns on or off all necessary services. Then the script sets
  up your mysql root account, creates and grants privileges for your vpopmail
  mysql account, makes a symlink so your krb5 is read properly, edits your
  php.ini, sets inittab to start at runlevel 3, and sets up your firewall.
&nbsp;
  Note: You might see some service errors while the script runs,
  don't worry about them.
&nbsp;
  ============
&nbsp;
  Update all your packages:
&nbsp;
      yum -y update
&nbsp;
  REBOOT
&nbsp;
--------------------------------------------------------------------
6. Get QmailToaster Packages:
--------------------------------------------------------------------
&nbsp;
  cd /usr/src/qtms-install
&nbsp;
  wget http://www.qmailtoaster.com/info/current-download-script.sh
&nbsp;
      sh current-download-script.sh
&nbsp;
  This script downloads all necessary packages into you current
  directory (should be /usr/src/qtms-install/).
&nbsp;
--------------------------------------------------------------------
7. Install QmailToaster Packages:
--------------------------------------------------------------------
&nbsp;
  wget http://www.qmailtoaster.com/centos/cnt40/cnt40-install-script.sh
&nbsp;
      sh cnt40-install-script.sh
&nbsp;
  Check your services:
&nbsp;
      setup: Select Services
&nbsp;
          See that the following services are selected: acpid anacron
&nbsp;
          atd autofs cpuspeed crond djbdns freshclam haldaemon httpd
&nbsp;
          iptables kudzu messagebus mysqld network ntpd qmail rawdevices
&nbsp;
          smartd sshd syslog xinet
&nbsp;
          Also: irqbalance (w/dual processors) xfs (w/xwindows)
&nbsp;
--------------------------------------------------------------------
8. Add djbdns (if you don't want bind)
--------------------------------------------------------------------
&nbsp;
  rpm -e --nodeps bind bind-chroot caching-nameserver
&nbsp;
  rpmbuild --rebuild --with cnt40 djbdns*.src.rpm
&nbsp;
  rpm -Uvh ../redhat/RPMS/i386/djbdns-localcache*.rpm
&nbsp;
  echo &quot;search your-domain.com&quot; &amp;gt; /etc/resolv.conf
  echo &quot;nameserver 127.0.0.1&quot; &amp;gt;&amp;gt; /etc/resolv.conf
&nbsp;
  REBOOT
&nbsp;
--------------------------------------------------------------------
9. Setup QmailToaster:
--------------------------------------------------------------------
&nbsp;
  qmailctl stat
&nbsp;
  (Should look somewhat like this)
&nbsp;
      [root@gateway ~]# qmailctl stat
      authlib: up (pid 2425) 65 seconds
      clamd: up (pid 2425) 65 seconds
      imap4: up (pid 2421) 65 seconds
      imap4-ssl: up (pid 2423) 65 seconds
      pop3: up (pid 2414) 65 seconds
      pop3-ssl: up (pid 2409) 65 seconds
      send: up (pid 2416) 65 seconds
      smtp: up (pid 2418) 65 seconds
      spamd: up (pid 2407) 65 seconds
      authlib/log: up (pid 2417) 65 seconds
      clamd/log: up (pid 2417) 65 seconds
      imap4/log: up (pid 2422) 65 seconds
      imap4-ssl/log: up (pid 2424) 65 seconds
      pop3/log: up (pid 2415) 65 seconds
      pop3-ssl/log: up (pid 2413) 65 seconds
      send/log: up (pid 2420) 65 seconds
      smtp/log: up (pid 2419) 65 seconds
      spamd/log: up (pid 2408) 65 seconds
      [root@gateway ~]#
&nbsp;
  Add a domain:
&nbsp;
      /home/vpopmail/bin/vadddomain your-domain.com
&lt;postmaster -password&gt;
&nbsp;
  Add a user:
&nbsp;
      /home/vpopmail/bin/vadduser you@your-domain.com &lt;your -password&gt;
&nbsp;
  Edit /etc/php.ini and set register_globals = On
&nbsp;
      service httpd restart  
&nbsp;
  Bring up your browser and go to:
&nbsp;
      http://www.your-domain.com/admin-toaster/
&nbsp;
        Username: admin
        Password: toaster
&nbsp;
      Change your password . . . 
&nbsp;
  Edit /etc/php.ini and set register_globals = Off
&nbsp;
      service httpd restart  
&nbsp;
  Check your mail server:
&nbsp;
      http://www.your-domain.com/webmail
&nbsp;
      login with your full email address and your password
&nbsp;
      Send yourself an email - should show right away
&nbsp;
      Send an email to yourself if you have another address
&nbsp;
      Go to your other email account and reply to the message you sent
&nbsp;
  If Isoqlog doesn't show right away, do this:
&nbsp;
      sh /usr/share/toaster/isoqlog/bin/cron.sh
&nbsp;
--------------------------------------------------------------------
10. Add domainkeys:
--------------------------------------------------------------------
&nbsp;
  Make dir for yourdomain.com: 
&nbsp;
      mkdir /var/qmail/control/domainkeys/your-domain.com 
&nbsp;
  Make domainkey (Remove the &quot;\&quot;): 
&nbsp;
      dknewkey /var/qmail/control/domainkeys/your-domain.com/private &amp;gt; \
                                                         your-domain-dk.txt 
&nbsp;
      chown root:qmail /var/qmail/control/domainkeys/your-domain.com/private
      chmod 444 /var/qmail/control/domainkeys/your-domain.com/private
&nbsp;
  Make dns entry: 
&nbsp;
      BIND - in the your-domain.com zone file (see yourdomain-dk.txt):
&nbsp;
         private._domainkey IN TXT &quot;k=rsa; p=MEwwDQY . . . to end of key&quot;
            (NOTE QUOTATION MARKS MUST BE THERE) 
&nbsp;
      DJBDNS - in /var/djbdns/tinydns/root/data (make from your-domain-dk.txt): 
&nbsp;
        '_domainkey.your-domain.com:o=-; r=postmaster@your-domain.com
        'private._domainkey.your-domain.com:k=rsa; p=MEwwDQY . . . to end of key 
&nbsp;
  Test your mailserver:
&nbsp;
      http://domainkeys.sourceforge.net/policycheck.html
      http://domainkeys.sourceforge.net/selectorcheck.html
&nbsp;
      In squirrelmail, send a test email, select View Full Header and you
      should find something like the following:
&nbsp;
      ----------- snip ------------
      DomainKey-Status: good
      Received: by simscan 1.2.0 ppid: 22641, pid: 22644, t: 0.8416s
           scanners: clamav: 0.88.2/m:38/d:1476 spam: 3.1.1
      X-Spam-Checker-Version: SpamAssassin 3.1.1 (2006-03-10) on ndh1.whatgives.org
      X-Spam-Level: *
      X-Spam-Status: No, score=1.6 required=5.0 tests=FROM_DOMAIN_NOVOWEL
           autolearn=no version=3.1.1
      Received: from unknown (HELO ns1.ndhsdns.com) (216.221.100.227)
           by ndh1.whatgives.org with (DHE-RSA-AES256-SHA encrypted) SMTP; 22 May 2006 20:03:36 -0000
      Received-SPF: pass (ndh1.whatgives.org: SPF record at ndhsdns.com designates 216.221.100.227 as permitted sender)
      Received: (qmail 28034 invoked by uid 89); 22 May 2006 20:03:36 -0000
      Comment: DomainKeys? See http://antispam.yahoo.com/domainkeys
      DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws;
           s=private; d=ndhsdns.com;
           b=XVKQZe446BXMnSoQKvgchf0DRx4v8YQYZn5KVLj5O8XYf7V1dX7ETaJ1VGWGp5Bf ;
      Received: from unknown (HELO www.ndhsdns.com) (127.0.0.1)
           by ns1.ndhsdns.com with SMTP; 22 May 2006 20:03:36 -0000
      ----------- snip ------------
&nbsp;
--------------------------------------------------------------------
11. Logs for all packages except freshclam are at:
--------------------------------------------------------------------
&nbsp;
  /var/log/qmail/*
&nbsp;
  Freshclam is at /var/log/clamav
&lt;/your&gt;&lt;/postmaster&gt;&lt;/enter&gt;&lt;/nick&gt;</pre></div></div>

<p>Notes:<br />
The only problem I stumbbled upon is when using vadddomain, as the mysql password was still set to &#8220;SsEeCcRrEeTt&#8221;. Edit these files before adding a domain. I dont use the web interface when adding a domain, i prefer it by command line.<br />
<code><br />
[root@mail vpopmail]# find . | grep mysql<br />
./etc/vpopmail.mysql.dist<br />
./etc/vpopmail.mysql<br />
</code></p>
<p>After all the installs is completed, reboot and check if qmail is running.<br />
<code><br />
Administrator links:<br />
http://your-mail-server-ip/admin-toaster/ -&gt; this is the main administration interface<br />
http://your-mail-server-ip/qmailadmin/     -&gt; administrative interface to manage accounts<br />
http://your-mail-server-ip/webmail/         -&gt; an email account interface<br />
</code></p>
]]></content:encoded>
			<wfw:commentRss>/wordpress/2007/02/installing-a-qmail-server/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
