<?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>vpopmail Archivi - Giuseppe</title>
	<atom:link href="https://www.iuculano.it/tag/vpopmail/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.iuculano.it/tag/vpopmail/</link>
	<description>Have you tried rebooting it?</description>
	<lastBuildDate>Sat, 29 Aug 2009 14:17:22 +0000</lastBuildDate>
	<language>it-IT</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	
	<item>
		<title>A professional mail server with qmail and vpopmail</title>
		<link>https://www.iuculano.it/linux/qmail-vpopmail-on-debian-sarge/</link>
					<comments>https://www.iuculano.it/linux/qmail-vpopmail-on-debian-sarge/#disqus_thread</comments>
		
		<dc:creator><![CDATA[Giuseppe]]></dc:creator>
		<pubDate>Sat, 08 Jul 2006 15:12:26 +0000</pubDate>
				<category><![CDATA[Debian]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[antispam]]></category>
		<category><![CDATA[antivirus]]></category>
		<category><![CDATA[imap]]></category>
		<category><![CDATA[pop]]></category>
		<category><![CDATA[qmail]]></category>
		<category><![CDATA[qmailadmin]]></category>
		<category><![CDATA[smtp]]></category>
		<category><![CDATA[spam]]></category>
		<category><![CDATA[vpopmail]]></category>
		<guid isPermaLink="false">http://www.iuculano.it/linux/qmail-vpopmail-on-debian-sarge/</guid>

					<description><![CDATA[<p>Qmail is a good solution for an email server, but I think the current official qmail-src package is outdated and not good for using on a modern mail server. That is why I created an unofficial qmail-src package with some suitable patches: SMTP-AUTH for Debian Sarge 3.1 (Fixed) qmail-dnsbl patch (added logging) qmail-queue-custom-error.patch (for simscan) [&#8230;]</p>
<p>L'articolo <a href="https://www.iuculano.it/linux/qmail-vpopmail-on-debian-sarge/">A professional mail server with qmail and vpopmail</a> sembra essere il primo su <a href="https://www.iuculano.it">Giuseppe</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>Qmail is a good solution for an email server, but I think the current official qmail-src package is outdated and not good for using on a modern mail server. That is why I created an <a href="http://debian.iuculano.it" rel="nofollow">unofficial qmail-src package</a> with some suitable patches:</p>
<p><b>SMTP-AUTH for Debian Sarge 3.1</b> (Fixed)<br />
<b>qmail-dnsbl patch</b> (added logging) <br />
<b>qmail-queue-custom-error.patch</b> (for simscan)<br />
<b>qmail-smtp-log-patch</b><br />
<b>chkuser</b> 2.0</p>
<p><!--adsense--><br />
qmail-dnsbl patch lets the client authenticate (using any method implemented), and then decides to perform the DNSBL check looking at the authentication status before the DATA SMTP command is performed.<br />
If the check fails, the server closes the SMTP conversation before receiving the mail, <b>avoiding any resource wasting</b>.</p>
<p>chkuser 2.0 The original qmail-smtpd accepts by default all messages, checking later for the existence of the recipients. So, if the message is delivered to a non-existing recipient, a lot of additional system work and network traffic is generated, with several expensive bouncing if the sender is a fake.</p>
<p>chkuser has been developed with the goal to improve the acceptance SMTP phase of qmail-smtpd. <br />
qmail-smtpd patched with chkuser may check the existence of e-mail recipients immediately in the SMTP acceptance phase of a message and rejects instantly all the messages sent to unexisting users, thus <b>avoiding additional traffic</b>, workload and messages bounced more times.</p>
<p>These goals are achieved by enquiring the existing vpopmail archives (each format is supported: cdb, MySQL, LDAP, etc.) by using standard vpopmail calls, or using customized chkuser routines.</p>
<p>chkuser 2.0 has detailed logging of accepted and refused recipients and senders, thus allowing a deeper analysis of &#8220;who&#8217;s sending to whom&#8221;. This can facilitate any further enhancements of anti-SPAM features.</p>
<p><b>N.B. Current qmail version works only with my vpopmail-mysql package!</b></p>
<p>You can get more details here: <a href="http://debian.iuculano.it" rel="nofollow">http://debian.iuculano.it</a> </p>
<p><!--adsense--><br />
So, let&#8217;s go, in less than ten minutes we can have a full performant mail server!</p>
<p>Just open your terminal and add my deb repository in your sources.list:</p>
<pre>
debian:~# vi /etc/apt/sources.list
</pre>
<p>Add these lines:</p>
<pre>
deb     <a href="http://debian.iuculano.it/apt" rel="nofollow">http://debian.iuculano.it/apt</a>  sarge main contrib non-free
deb-src <a href="http://debian.iuculano.it/apt" rel="nofollow">http://debian.iuculano.it/apt</a>  sarge main contrib non-free
</pre>
<p>and:</p>
<pre>
debian:~# apt-get update
</pre>
<p>My vpopmail package uses mysql backend, so we need mysql-server:</p>
<pre>
apt-get install mysql-server
</pre>
<p>It is strongly recommended to set a password for the mysql root user<br />
(which is NOT the same as the &#8220;normal&#8221; root user) with the command:</p>
<pre>
mysqladmin -u root password 'enter-your-good-new-password-here'
</pre>
<pre>
debian:~# mysqladmin -u root -p create vpopmail
debian:~# mysql -u root -p
Enter password:
Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 10 to server version: 4.0.24_Debian-10sarge2-log

Type 'help;' or '\h' for help. Type '\c' to clear the buffer.

mysql> GRANT ALL PRIVILEGES ON `vpopmail` . * TO 'vpopmail'@'localhost' \
IDENTIFIED BY 'some_pass' WITH GRANT OPTION ;
Query OK, 0 rows affected (0.01 sec)

mysql> quit
Bye
debian:~#
</pre>
<p>
Good, now we can install qmail, vpopmail, spamassasin</p>
<pre>
debian:~# apt-get install qmail-src spamassassin vpopmail-mysql spamc razor
pyzor ucspi-tcp-src libmailtools-perl libmail-spf-query-perl libsys-hostname-long-perl
</pre>
<p>Now we build ucspi-tcp</p>
<pre>
debian:~# build-ucspi-tcp
</pre>
<p>And finally, we build qmail!</p>
<pre>
debian:~# build-qmail
</pre>
<p>Don&#8217;t worry if you get an error message when installing the .deb package; we need to remove exim4!</p>
<pre>
debian:~# dpkg --force-depends --purge exim4 exim4-base exim4-config exim4-daemon-light
</pre>
<p>Now:</p>
<pre>
debian:~# dpkg -i /tmp/qmail/qmai*.deb
</pre>
<p>Very well, now if you want SMTP AUTH and chkuser, you should edit /etc/init.d/qmail</p>
<p>If you want chkuser you should change CHKUSER_START to DOMAIN or ALWAYS</p>
<p>If you want chkuser you should replace:</p>
<blockquote><p>
-u `id -u qmaild` -g `id -g nobody` -x /etc/tcp.smtp.cdb 0 smtp \
</p></blockquote>
<p> with:</p>
<blockquote><p>
-u vpopmail -g vckpw -x /etc/tcp.smtp.cdb 0 smtp \
</p></blockquote>
<p>
Setting your mail name:</p>
<pre>
vi /etc/qmail/me
</pre>
<p>And add your mail name, for example mail.domain.org</p>
<p>Setting mysql username and password for vpopmail</p>
<pre>
debian:~# vi /etc/vpopmail/vpopmail.mysql
</pre>
<p>and restart qmail and popmail POP3</p>
<pre>
debian:~# /etc/init.d/qmail restart && /etc/init.d/vpopmail-mysql restart
Stopping mail-transfer agent: qmail.
Starting mail-transfer agent: qmail.
Restarting vpopmail pop3 server: vpopmail.
debian:~#
</pre>
<p>Very well, we ‘re almost done!!</p>
<p><!--adsense--></p>
<p>Some check-ups:</p>
<pre>
debian:~# apt-get install recode
[...]
debian:~# vadddomain test.bogus
Please enter password for postmaster:
enter password again:
debian:~# ls -la /var/lib/vpopmail/domains/
totale 3
drwx------  3 vpopmail vchkpw 1024 2006-07-07 16:34 .
drwxr-xr-x  6 root     root   1024 2006-07-07 16:09 ..
drwx------  3 vpopmail vchkpw 1024 2006-07-07 16:34 test.bogus
debian:~# echo -en "postmaster@test.bogus" | recode data..base64
cG9zdG1hc3RlckB0ZXN0LmJvZ3Vz
debian:~# echo -en "test" | recode data..base64
dGVzdA==
debian:~# telnet localhost 25
Trying 127.0.0.1...
Connected to localhost.localdomain.
Escape character is '^]'.
220 mail.domain.com ESMTP
quit
221 mail.domain.com
Connection closed by foreign host.
debian:~# less /var/log/syslog
debian:~# telnet localhost 25
Trying 127.0.0.1...
Connected to localhost.localdomain.
Escape character is '^]'.
220 mail.domain.com ESMTP
HELO TEST
250 mail.domain.com
EHLO
250-mail.domain.com
250-AUTH LOGIN CRAM-MD5 PLAIN
250-AUTH=LOGIN CRAM-MD5 PLAIN
250-PIPELINING
250 8BITMIME
AUTH LOGIN
334 VXNlcm5hbWU6
cG9zdG1hc3RlckB0ZXN0LmJvZ3Vz
334 UGFzc3dvcmQ6
dGVzdA==
235 ok, postmaster@test.bogus, go ahead (#2.0.0)
mail from: test@nonexact.from
511 sorry, can't find a valid MX for sender domain (#5.1.1 - chkuser)
mail from: test@test.com
250 ok
RCPT TO: notexist@test.bogus
511 sorry, no mailbox here by that name (#5.1.1 - chkuser)
RCPT TO: postmaster@test.bogus
250 ok
quit
221 mail.domain.com
Connection closed by foreign host.
debian:~#
</pre>
<p>Good! Everything seems to work finely!</p>
<p>Now, the last thing you have to do is:</p>
<pre>
debian:~# apt-get install qmailadmin autorespond ezmlm-src clamav clamav-daemon clamav-freshclam
</pre>
<p>Install simscan (http://www.inter7.com/simscan/simscan-1.2.tar.gz) and edit init.d/qmail !</p>
<p>Simscan ./configure example:</p>
<pre>
./configure --enable-user=clamav --enable-clamav=y --enable-custom-smtp-reject=y --enable-attach=y
 --enable-spam=y --enable-spam-hits=14 --enable-spamc-user=y --enable-received=y 
--enable-clamavdb-path=/var/lib/clamav --enable-spam-auth-user=n 
--enable-quarantinedir=/var/qmail/quarantine --enable-dropmsg=y
</pre>
<p>L'articolo <a href="https://www.iuculano.it/linux/qmail-vpopmail-on-debian-sarge/">A professional mail server with qmail and vpopmail</a> sembra essere il primo su <a href="https://www.iuculano.it">Giuseppe</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.iuculano.it/linux/qmail-vpopmail-on-debian-sarge/feed/</wfw:commentRss>
			<slash:comments>6</slash:comments>
		
		
			</item>
	</channel>
</rss>

<!--
Performance optimized by W3 Total Cache. Learn more: https://www.boldgrid.com/w3-total-cache/

Object Caching 54/107 objects using Disk
Page Caching using Disk: Enhanced 
Minified using Disk
Database Caching 3/26 queries in 0.013 seconds using Disk

Served from: www.iuculano.it @ 2026-04-29 22:09:44 by W3 Total Cache
-->