<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>[L]ash in BackGround</title>
	<atom:link href="http://lashbg.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://lashbg.wordpress.com</link>
	<description></description>
	<lastBuildDate>Fri, 20 Jun 2008 21:36:06 +0000</lastBuildDate>
	<language>it</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='lashbg.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>[L]ash in BackGround</title>
		<link>http://lashbg.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://lashbg.wordpress.com/osd.xml" title="[L]ash in BackGround" />
	<atom:link rel='hub' href='http://lashbg.wordpress.com/?pushpress=hub'/>
		<item>
		<title>Giggle 0.4</title>
		<link>http://lashbg.wordpress.com/2007/12/21/giggle-04/</link>
		<comments>http://lashbg.wordpress.com/2007/12/21/giggle-04/#comments</comments>
		<pubDate>Fri, 21 Dec 2007 22:58:26 +0000</pubDate>
		<dc:creator>lashbg</dc:creator>
				<category><![CDATA[Debian]]></category>
		<category><![CDATA[Giggle]]></category>
		<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://lashbg.wordpress.com/2007/12/21/giggle-04/</guid>
		<description><![CDATA[E&#8217; in debian la nuova versione di giggle!! Questa nuova versione in particolare supporta il nuovo formato in cui sono salvati i remote branch e li visualizza nella history; inoltre è stata aggiunta la possibiltà di salvare le patch!<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=lashbg.wordpress.com&amp;blog=618392&amp;post=45&amp;subd=lashbg&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>E&#8217; in <a href="http://debian.org">debian</a> la nuova versione di <a href="http://developer.imendio.com/projects/giggle/">giggle</a>!!<br />
Questa nuova versione in particolare supporta il nuovo formato in cui sono salvati i remote branch e li visualizza nella history; inoltre è stata aggiunta la possibiltà di salvare le patch!</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/lashbg.wordpress.com/45/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/lashbg.wordpress.com/45/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/lashbg.wordpress.com/45/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/lashbg.wordpress.com/45/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/lashbg.wordpress.com/45/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/lashbg.wordpress.com/45/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/lashbg.wordpress.com/45/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/lashbg.wordpress.com/45/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/lashbg.wordpress.com/45/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/lashbg.wordpress.com/45/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/lashbg.wordpress.com/45/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/lashbg.wordpress.com/45/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/lashbg.wordpress.com/45/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/lashbg.wordpress.com/45/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/lashbg.wordpress.com/45/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/lashbg.wordpress.com/45/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=lashbg.wordpress.com&amp;blog=618392&amp;post=45&amp;subd=lashbg&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://lashbg.wordpress.com/2007/12/21/giggle-04/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/c7126eaf62118bb5f1d04f7f419f7896?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">lashbg</media:title>
		</media:content>
	</item>
		<item>
		<title>Giggle in Debian</title>
		<link>http://lashbg.wordpress.com/2007/05/09/giggle-in-debian/</link>
		<comments>http://lashbg.wordpress.com/2007/05/09/giggle-in-debian/#comments</comments>
		<pubDate>Wed, 09 May 2007 19:51:59 +0000</pubDate>
		<dc:creator>lashbg</dc:creator>
				<category><![CDATA[Debian]]></category>
		<category><![CDATA[Giggle]]></category>
		<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://lashbg.wordpress.com/2007/05/09/giggle-in-debian/</guid>
		<description><![CDATA[E&#8217; entrato da poco in Debian il mio primo pachetto!!!! Giggle è un programma grafico fatto con le gtk che permette di visionare un repository git!<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=lashbg.wordpress.com&amp;blog=618392&amp;post=30&amp;subd=lashbg&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>E&#8217; entrato da poco in <a href="http://debian.org">Debian</a> il mio primo <a href="http://packages.debian.org/unstable/devel/giggle">pachetto</a>!!!!<br />
<a href="http://developer.imendio.com/projects/giggle/">Giggle</a> è un programma grafico fatto con le <a href="http://www.gtk.org/">gtk</a> che permette di visionare un repository <a>git</a>!</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/lashbg.wordpress.com/30/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/lashbg.wordpress.com/30/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/lashbg.wordpress.com/30/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/lashbg.wordpress.com/30/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/lashbg.wordpress.com/30/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/lashbg.wordpress.com/30/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/lashbg.wordpress.com/30/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/lashbg.wordpress.com/30/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/lashbg.wordpress.com/30/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/lashbg.wordpress.com/30/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/lashbg.wordpress.com/30/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/lashbg.wordpress.com/30/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/lashbg.wordpress.com/30/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/lashbg.wordpress.com/30/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/lashbg.wordpress.com/30/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/lashbg.wordpress.com/30/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=lashbg.wordpress.com&amp;blog=618392&amp;post=30&amp;subd=lashbg&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://lashbg.wordpress.com/2007/05/09/giggle-in-debian/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/c7126eaf62118bb5f1d04f7f419f7896?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">lashbg</media:title>
		</media:content>
	</item>
		<item>
		<title>Debian &#8220;Etch&#8221; 4r0</title>
		<link>http://lashbg.wordpress.com/2007/04/10/debian-etch-4r0/</link>
		<comments>http://lashbg.wordpress.com/2007/04/10/debian-etch-4r0/#comments</comments>
		<pubDate>Tue, 10 Apr 2007 13:00:21 +0000</pubDate>
		<dc:creator>lashbg</dc:creator>
				<category><![CDATA[Debian]]></category>
		<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://lashbg.wordpress.com/2007/04/10/debian-etch-4r0/</guid>
		<description><![CDATA[È stata rilasciata Etch; la nuova stable!!!!!!!!!!!!!!!!!!! Per la gioia dei mouse-maniaci questa versione ha un installer grafico; grande innovazione per debian che fino ad ora era rimasta affezzionata all&#8217;interfacia pseudografica con ncurses (che preferisco :) Qui trovate i cd(21) o dvd(3) da scaricare da http/ftp, bittorrent o jigdo; io uso quest&#8217;ultimo, visto che devo [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=lashbg.wordpress.com&amp;blog=618392&amp;post=22&amp;subd=lashbg&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>È stata rilasciata <a href="http://www.us.debian.org/News/2007/20070408">Etch</a>; la nuova stable!!!!!!!!!!!!!!!!!!!<br />
Per la gioia dei mouse-maniaci questa versione ha un installer grafico; grande innovazione per debian che fino ad ora era rimasta affezzionata all&#8217;interfacia pseudografica con ncurses (che preferisco :)</p>
<p><a href="http://www.us.debian.org/CD/">Qui</a> trovate i cd(21) o dvd(3) da scaricare da http/ftp, bittorrent o jigdo; io uso quest&#8217;ultimo, visto che devo scaricare sia dvd per i386 che per amd64 con jigdo non devo scaricare due volte i pachetti indipendenti dall&#8217;architettura con un risparmio di banda e tempo :)</p>
<p>Buona Etch a tutti!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/lashbg.wordpress.com/22/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/lashbg.wordpress.com/22/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/lashbg.wordpress.com/22/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/lashbg.wordpress.com/22/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/lashbg.wordpress.com/22/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/lashbg.wordpress.com/22/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/lashbg.wordpress.com/22/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/lashbg.wordpress.com/22/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/lashbg.wordpress.com/22/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/lashbg.wordpress.com/22/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/lashbg.wordpress.com/22/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/lashbg.wordpress.com/22/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/lashbg.wordpress.com/22/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/lashbg.wordpress.com/22/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/lashbg.wordpress.com/22/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/lashbg.wordpress.com/22/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=lashbg.wordpress.com&amp;blog=618392&amp;post=22&amp;subd=lashbg&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://lashbg.wordpress.com/2007/04/10/debian-etch-4r0/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/c7126eaf62118bb5f1d04f7f419f7896?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">lashbg</media:title>
		</media:content>
	</item>
		<item>
		<title>Postfix + Mysql + TLS + Saslauth [Sarge]</title>
		<link>http://lashbg.wordpress.com/2007/01/17/4/</link>
		<comments>http://lashbg.wordpress.com/2007/01/17/4/#comments</comments>
		<pubDate>Wed, 17 Jan 2007 21:28:02 +0000</pubDate>
		<dc:creator>lashbg</dc:creator>
				<category><![CDATA[Debian]]></category>
		<category><![CDATA[Howto]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[postfix]]></category>
		<category><![CDATA[saslauth]]></category>
		<category><![CDATA[tls]]></category>

		<guid isPermaLink="false">http://lashbg.wordpress.com/2007/01/17/4/</guid>
		<description><![CDATA[Qualche appunto su come mettere su un sistema di posta con virtual domain su mysql, connessioni crittate e autenticazione. Il tutto ovviamente su Debian Sarge I pacchetti che ci servono sono: postfix postfix-tls postfix-mysql mysql-client mysql-server sasl2-bin libsasl2-modules pam-mysql Iniziamo creando il databse con le tabelle che ci servono su mysql: CREATE DATABASE mailserver; # [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=lashbg.wordpress.com&amp;blog=618392&amp;post=4&amp;subd=lashbg&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Qualche appunto su come mettere su un sistema di posta con virtual domain su mysql, connessioni crittate e autenticazione.<br />
Il tutto ovviamente su <a href="http://http://www.us.debian.org/releases/stable/">Debian Sarge</a></p>
<p>I pacchetti che ci servono sono: <em>postfix postfix-tls postfix-mysql mysql-client mysql-server sasl2-bin libsasl2-modules pam-mysql</em></p>
<p>Iniziamo creando il databse con le tabelle che ci servono su mysql:</p>
<blockquote><p><code>CREATE DATABASE mailserver;</p>
<p>#<br />
# Table structure for table alias<br />
#<br />
USE mailserver;<br />
CREATE TABLE alias (<br />
  address varchar(255) NOT NULL default '',<br />
  goto text NOT NULL,<br />
  domain varchar(255) NOT NULL default '',<br />
  created datetime NOT NULL default '0000-00-00 00:00:00',<br />
  modified datetime NOT NULL default '0000-00-00 00:00:00',<br />
  active tinyint(1) NOT NULL default '1',<br />
  PRIMARY KEY  (address)<br />
) TYPE=MyISAM;</p>
<p>#<br />
# Table structure for table domain<br />
#<br />
USE mailserver;<br />
CREATE TABLE domain (<br />
  domain varchar(255) NOT NULL default '',<br />
  description varchar(255) NOT NULL default '',<br />
  aliases int(10) NOT NULL default '0',<br />
  mailboxes int(10) NOT NULL default '0',<br />
  maxquota int(10) NOT NULL default '0',<br />
  transport varchar(255) default NULL,<br />
  backupmx tinyint(1) NOT NULL default '0',<br />
  created datetime NOT NULL default '0000-00-00 00:00:00',<br />
  modified datetime NOT NULL default '0000-00-00 00:00:00',<br />
  active tinyint(1) NOT NULL default '1',<br />
  PRIMARY KEY  (domain)<br />
) TYPE=MyISAM;</p>
<p>#<br />
# Table structure for table mailbox<br />
#<br />
USE mailserver;<br />
CREATE TABLE mailbox (<br />
  username varchar(255) NOT NULL default '',<br />
  password varchar(255) NOT NULL default '',<br />
  name varchar(255) NOT NULL default '',<br />
  maildir varchar(255) NOT NULL default '',<br />
  quota int(10) NOT NULL default '0',<br />
  domain varchar(255) NOT NULL default '',<br />
  created datetime NOT NULL default '0000-00-00 00:00:00',<br />
  modified datetime NOT NULL default '0000-00-00 00:00:00',<br />
  active tinyint(1) NOT NULL default '1',<br />
  PRIMARY KEY  (username)<br />
) TYPE=MyISAM;<br />
</code></p></blockquote>
<p>Ora creiamo l&#8217;utente che dovrà accedere al db:</p>
<blockquote><p><code>GRANT insert,update,select ON mailserver.* TO mailuser@127.0.0.1 IDENTIFIED BY 'password'</code></p></blockquote>
<p>Bisogna creare i file di configurazione di postfix per accedere a mysql, mettiamoli in <em>/etc/postfix/mysql/</em></p>
<p><strong>virtual_alias_maps.cf</strong></p>
<blockquote><p><code>user = mailuser<br />
password = password<br />
hosts = 127.0.0.1<br />
dbname = mailserver<br />
table = alias<br />
select_field = goto<br />
where_field = address</code></p></blockquote>
<p><strong>virtual_domains_maps.cf</strong></p>
<blockquote><p><code>user = mailuser<br />
password = password<br />
hosts = 127.0.0.1<br />
dbname = mailserver<br />
table = domain<br />
select_field = domain<br />
where_field = domain<br />
# la direttiva 'additional_conditions' permette di aggiungere delle clausole<br />
# alla ricerca all'interno del database, nel caso seguente (che consiglio di non<br />
# decommentare, richiede che la il dominio non sia di backup e che sia attivo.<br />
#additional_conditions = and backupmx = '0' and active = '1'<br />
</code></p></blockquote>
<p><strong>virtual_mailbox_maps.cf</strong></p>
<blockquote><p><code>user = mailuser<br />
password = password<br />
hosts = 127.0.0.1<br />
dbname = mailserver<br />
table = mailbox<br />
select_field = maildir<br />
where_field = username<br />
#additional_conditions = and active = '1'<br />
</code></p></blockquote>
<p><strong>virtual_mailbox_limit_maps.cf</strong></p>
<blockquote><p><code>user = mailuser<br />
password = password<br />
hosts = 127.0.0.1<br />
dbname = mailserver<br />
table = mailbox<br />
select_field = quota<br />
where_field = username<br />
#additional_conditions = and active = '1'<br />
</code></p></blockquote>
<p><strong>relay_domains_maps.cf</strong></p>
<blockquote><p><code>user = mailuser<br />
password = password<br />
hosts = 127.0.0.1<br />
dbname = mailserver<br />
table = domain<br />
select_field = domain<br />
where_field = domain<br />
additional_conditions = and backupmx = '1'<br />
</code></p></blockquote>
<p>Ora che abbiamo finito di trafficare con query e sql passiamo a configurare saslauthd e pam per l&#8217;autenticazione.<br />
Bisogna creare i file <em>/etc/postfix/sasl/smtpd.conf</em> e <em>/etc/pam.d/smtp</em> :</p>
<p><strong>smtpd.conf</strong></p>
<blockquote><p><code>pwcheck_method: saslauthd<br />
mech_list: plain login<br />
</code></p></blockquote>
<p><strong>smtp</strong></p>
<blockquote><p><code>auth    required   pam_mysql.so user=mailuser passwd=password host=127.0.0.1 db=mailserver table=mailbox usercolumn=username passwdcolumn=password crypt=1<br />
account sufficient pam_mysql.so user=mailuser passwd=password host=127.0.0.1 db=mailserver table=mailbox usercolumn=username passwdcolumn=password crypt=1<br />
</code></p></blockquote>
<p>Ora visto che postfix gira in un chroot dobbiamo fare in modo che possa vedere il soket creato da saslauth:<br />
Creiamo la cartella per saslauthd all&#8217;interno del chroot postfix:</p>
<blockquote><p><code> mkdir -p /var/spool/postfix/var/run/saslauthd </code></p></blockquote>
<p>facciamo in modo che appartenga al gruppo sasl:</p>
<blockquote><p><code> chgrp sasl /var/spool/postfix/var/run/saslauthd </code></p></blockquote>
<p>e aggiungiamo l&#8217;utente postfix al gruppo sasl:</p>
<blockquote><p><code> addgroup postfix sasl </code></p></blockquote>
<p>rimuoviamo la cartella <em>/var/run/saslauthd/</em> e al suo posto creiamo un collegamento a <em>/var/spool/postfix/var/run/saslauthd/</em> :</p>
<blockquote><p><code>rm -r /var/run/saslauthd/<br />
ln -s /var/spool/postfix/var/run/saslauthd /var/run/saslauthd<br />
</code></p></blockquote>
<p>Come ultima cosa dobbiamo editare il file <em>/etc/default/saslauthd</em>, bisogna decommentare:</p>
<blockquote><p><code>#START=yes</code></p></blockquote>
<p>il meccanismo di autenticazione deve essere pam:</p>
<blockquote><p><code>MECHANISMS="pam"</code></p></blockquote>
<p>e aggiungiamo:</p>
<blockquote><p><code>PARAMS="-r"</code></p></blockquote>
<p>in questo modo verrò considerato in sede di autenticazione non solo l&#8217;username ma anche il dominio cosi da non creare conflitti.<br />
Possiamo ora riavviare saslauthd:</p>
<blockquote><p><code>/etc/init.d/saslauthd restart</code></p></blockquote>
<p>Ultima cosa da fare prima di configurare postfix è creare l&#8217;utente vmail, che sarà l&#8217;utente proprietario di tutte le mail dei nostri virtual domain, che saranno memorizzate in <em>/var/spool/mail/vmail</p>
<blockquote><p><code>groupadd -g 5000 vmail<br />
useradd -g vmail -u 5000 vmail -d /var/spool/mail/vmail -m<br />
</code></p></blockquote>
<p>per sicurezza ho anche dato:<br />
<blockquote><code>passwd -l vmail </code></p></blockquote>
<p> che impedisce all&#8217;utente vmail di loggarsi e gli ho messo come bash: <em>/bin/false</em> nel file <em>/etc/passwd</em></p>
<p>E&#8217; giunta l&#8217;ora di configurare postfix!!!!!!!!!!<br />
Aggiungiamo al file <em>/etc/ppostfix/main.cf</em>:</p>
<blockquote><p><code>virtual_alias_maps = mysql:/etc/postfix/mysql/virtual_alias_maps.cf</p>
<p># vengono assegnate all'utente che gestirà e mailbox un uid e gid statici<br />
# cosa da evitare di dover creare un utente reale per ogni utente virutale<br />
virtual_gid_maps = static:5000<br />
virtual_uid_maps = static:5000</p>
<p># questa direttiva indica dove verranno collocate le mailbox virtuali<br />
virtual_mailbox_base = /var/spool/mail/vmail</p>
<p># indica con quale backend (mysql) e dove trovare la lista dei domini gestiti<br />
# dal server<br />
virtual_mailbox_domains = mysql:/etc/postfix/mysql/virtual_domains_maps.cf<br />
virtual_mailbox_limit = 51200000</p>
<p># indica in quale file di configurazione sono presenti i parametri per ottenere la<br />
# lista delle mailbox presenti nel sistema<br />
virtual_mailbox_maps = mysql:/etc/postfix/mysql/virtual_mailbox_maps.cf<br />
virtual_minimum_uid = 5000<br />
virtual_transport = virtual</p>
<p># Per la gestione delle quote delle mailbox<br />
virtual_create_maildirsize = yes<br />
virtual_mailbox_extended = yes<br />
# dove trovare i limiti di dimensione della mailbox e come comportarsi<br />
virtual_mailbox_limit_maps = mysql:/etc/postfix/mysql/virtual_mailbox_limit_maps.cf<br />
virtual_mailbox_limit_override = yes<br />
virtual_maildir_limit_message = Sorry, the user's maildir has overdrawn his diskspace quota, please try again later.<br />
virtual_overquota_bounce = yes</p>
<p># indica i domini per cui il server deve accettare la posta in ingresso<br />
relay_domains = mysql:/etc/postfix/mysql/relay_domains_maps.cf</p>
<p>smtpd_sasl_auth_enable = yes<br />
smtpd_sasl_security_option = noanonymous<br />
smtpd_sasl_local_domain = $myhostname<br />
broken_sasl_auth_clients = yes<br />
smtpd_recipient_restrictions = permit_sasl_authenticated, permit_mynetworks, reject_unauth_destination, reject_unauth_pipelining, reject_invalid_hostname, reject_non_fqdn_hostname, reject_non_fqdn_sender, reject_non_fqdn_recipient</p>
<p>smtpd_use_tls = yes<br />
smtpd_tls_cert_file = /path/chiavi/ssl/certificato.key<br />
smtpd_tls_key_file = /path/chiavi/ssl/chiave.key<br />
smtpd_tls_auth_only = yes<br />
smtpd_tls_loglevel = 2<br />
smtpd_tls_received_header = yes<br />
smtpd_tls_session_cache_timeout = 3600s<br />
tls_random_source = dev:/dev/urandom<br />
</code></p></blockquote>
<p>Queste aggiunte le ho fatte al file che l&#8217;installazione mette di default scegliendo all&#8217;installzione &#8220;Solo locale&#8221;<br />
Nello stesso file vanno ancora modificati due valori:</p>
<blockquote><p><code>myhostname = pippo.esempio.it</code></p></blockquote>
<p>dove pippo.esempio.it è un FQDN valido; e aggiungere il vostro ip esterno a</p>
<blockquote><p><code>inet_interfaces = 127.0.0.1, ipesterno</code></p></blockquote>
<p>L&#8217;ultima modifica da fare è decommentare in <em>/etc/postfix/master.cf:</em></p>
<blockquote><p><code>tlsmgr    fifo  -       -       n       300     1       tlsmgr<br />
smtps     inet  n       -       n       -       -       smtpd -o smtpd_tls_wrappermode=yes -o smtpd_sasl_auth_enable=yes<br />
</code></p></blockquote>
<p>Ora possiamo riavviare postfix!!!!!!!!!!!!!!!!!!!!!!!!</p>
<blockquote><p><code>/etc/init.d/postfix restart</code></p></blockquote>
<p>Il nostro server di posta ora è attivo e funzionante!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!</p>
<p>Nel riempire il database bisogna tenere conto che l&#8217;autenticazione viene fatta da pam quindi il record password va riempito con la password crittografata con la funzione crypt; php, perl, python dovrebero avere una funziona apposita, oppure scrivete un programmino in C.</p>
<p>Link:<br />
<a href="http://guide.debianizzati.org/index.php/Postfix-mysql">http://guide.debianizzati.org/index.php/Postfix-mysql</a><br />
<a href="http://www.howtoforge.com/fedora_virtual_postfix_mysql_quota_courier">http://www.howtoforge.com/virtual_postfix_mysql_quota_courier</a></p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/lashbg.wordpress.com/4/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/lashbg.wordpress.com/4/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/lashbg.wordpress.com/4/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/lashbg.wordpress.com/4/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/lashbg.wordpress.com/4/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/lashbg.wordpress.com/4/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/lashbg.wordpress.com/4/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/lashbg.wordpress.com/4/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/lashbg.wordpress.com/4/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/lashbg.wordpress.com/4/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/lashbg.wordpress.com/4/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/lashbg.wordpress.com/4/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/lashbg.wordpress.com/4/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/lashbg.wordpress.com/4/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/lashbg.wordpress.com/4/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/lashbg.wordpress.com/4/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=lashbg.wordpress.com&amp;blog=618392&amp;post=4&amp;subd=lashbg&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://lashbg.wordpress.com/2007/01/17/4/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/c7126eaf62118bb5f1d04f7f419f7896?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">lashbg</media:title>
		</media:content>
	</item>
	</channel>
</rss>
