<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<atom:link href="http://forum.ubuntu-fr.org/extern.php?action=feed&amp;tid=1069471&amp;type=rss" rel="self" type="application/rss+xml" />
		<title><![CDATA[Forum Ubuntu-fr.org / Configuration PostFix avec GMail et Webmail]]></title>
		<link>http://forum.ubuntu-fr.org/viewtopic.php?id=1069471</link>
		<description><![CDATA[Les sujets les plus récents dans Configuration PostFix avec GMail et Webmail.]]></description>
		<lastBuildDate>Wed, 05 Dec 2012 18:50:20 +0000</lastBuildDate>
		<generator>FluxBB</generator>
		<item>
			<title><![CDATA[Réponse à&#160;:  Configuration PostFix avec GMail et Webmail]]></title>
			<link>http://forum.ubuntu-fr.org/viewtopic.php?pid=11763041#p11763041</link>
			<description><![CDATA[<p>Bonsoir,<br />j&#039;arrive à utiliser mes mails vers l&#039;extérieur avec le relay_host de gmail, mais tous les mails envoyés m&#039;arrivent avec comme expéditeur mon adresse gmail...<br />N&#039;y a-t-il pas moyen que je puisse envoyé des mails vers d&#039;autres adresse externes (gmail, orange, sfr, hotmail, etc.) sans que je mette un relay host ?</p>]]></description>
			<author><![CDATA[dummy@example.com (Chucky2401)]]></author>
			<pubDate>Wed, 05 Dec 2012 18:50:20 +0000</pubDate>
			<guid>http://forum.ubuntu-fr.org/viewtopic.php?pid=11763041#p11763041</guid>
		</item>
		<item>
			<title><![CDATA[Réponse à&#160;:  Configuration PostFix avec GMail et Webmail]]></title>
			<link>http://forum.ubuntu-fr.org/viewtopic.php?pid=11184341#p11184341</link>
			<description><![CDATA[<p>Bonjour,</p><p>j&#039;ai décidé de repartir de zéro, et de faire fonctionner postfix et courier (à la place de dovecot) et de le faire fonctionner localement avant de sortir du local.<br />J&#039;ai donc suivis ce tutoriel : <a href="http://www.lafermeduweb.net/billet/tutorial-creer-un-serveur-web-complet-sous-debian-4-postfix-et-courier-168.html#postfix">http://www.lafermeduweb.net/billet/tuto … ml#postfix</a></p><p>J&#039;ai ensuite procéder à un test avec telnet, le mail est bien arrivé, mais le soucis c&#039;est que tout les mails que j&#039;envois en telnet, arrivents dans /var/spool/mail/{user} ; qui est un fichier texte, qui contient tous les mails...</p><p>Lorsque j&#039;essaie de faire un test avec roundcube, voici ce que j&#039;ai dans les logs :</p><div class="codebox"><pre class="vscroll"><code>Oct 20 10:34:22 tristan imapd: Connection, ip=[::ffff:127.0.0.1]
Oct 20 10:34:22 tristan authdaemond: received auth request, service=imap, authtype=login
Oct 20 10:34:22 tristan authdaemond: authmysql: trying this module
Oct 20 10:34:22 tristan authdaemond: SQL query: SELECT email, password, &quot;&quot;, 5000, 5000, &quot;/var/spool/mail/&quot;, CONCAT(SUBSTRING_INDEX(email,&#039;@&#039;,-1),&#039;/&#039;,SUBSTRING_INDEX(email,&#039;@&#039;,1),&#039;/&#039;), &quot;&quot;, name, &quot;&quot; FROM comptes WHERE email = &#039;chucky@**********&#039; 
Oct 20 10:34:22 tristan authdaemond: password matches successfully
Oct 20 10:34:22 tristan authdaemond: authmysql: sysusername=&lt;null&gt;, sysuserid=5000, sysgroupid=5000, homedir=/var/spool/mail/, address=chucky@**********, fullname=&lt;null&gt;, maildir=web.tristan/tristan/, quota=&lt;null&gt;, options=&lt;null&gt;
Oct 20 10:34:22 tristan authdaemond: authmysql: clearpasswd=&lt;null&gt;, passwd=XTNblvh93peL.
Oct 20 10:34:22 tristan authdaemond: Authenticated: sysusername=&lt;null&gt;, sysuserid=5000, sysgroupid=5000, homedir=/var/spool/mail/, address=chucky@**********, fullname=&lt;null&gt;, maildir=web.tristan/tristan/, quota=&lt;null&gt;, options=&lt;null&gt;
Oct 20 10:34:22 tristan authdaemond: Authenticated: clearpasswd=**********, passwd=XTNblvh93peL.
Oct 20 10:34:22 tristan imapd: LOGIN, user=chucky@**********, ip=[::ffff:127.0.0.1], port=[57141], protocol=IMAP
Oct 20 10:34:22 tristan imapd: LOGOUT, user=chucky@**********, ip=[::ffff:127.0.0.1], headers=0, body=0, rcvd=10, sent=237, time=0
Oct 20 10:34:22 tristan imapd: Connection, ip=[::ffff:127.0.0.1]
Oct 20 10:34:22 tristan authdaemond: received auth request, service=imap, authtype=login
Oct 20 10:34:22 tristan authdaemond: authmysql: trying this module
Oct 20 10:34:22 tristan authdaemond: SQL query: SELECT email, password, &quot;&quot;, 5000, 5000, &quot;/var/spool/mail/&quot;, CONCAT(SUBSTRING_INDEX(email,&#039;@&#039;,-1),&#039;/&#039;,SUBSTRING_INDEX(email,&#039;@&#039;,1),&#039;/&#039;), &quot;&quot;, name, &quot;&quot; FROM comptes WHERE email = &#039;chucky@**********&#039; 
Oct 20 10:34:22 tristan authdaemond: password matches successfully
Oct 20 10:34:22 tristan authdaemond: authmysql: sysusername=&lt;null&gt;, sysuserid=5000, sysgroupid=5000, homedir=/var/spool/mail/, address=chucky@**********, fullname=&lt;null&gt;, maildir=web.tristan/tristan/, quota=&lt;null&gt;, options=&lt;null&gt;
Oct 20 10:34:22 tristan authdaemond: authmysql: clearpasswd=&lt;null&gt;, passwd=XTNblvh93peL.
Oct 20 10:34:22 tristan authdaemond: Authenticated: sysusername=&lt;null&gt;, sysuserid=5000, sysgroupid=5000, homedir=/var/spool/mail/, address=chucky@**********, fullname=&lt;null&gt;, maildir=web.tristan/tristan/, quota=&lt;null&gt;, options=&lt;null&gt;
Oct 20 10:34:22 tristan authdaemond: Authenticated: clearpasswd=**********, passwd=XTNblvh93peL.
Oct 20 10:34:23 tristan imapd: LOGIN, user=chucky@**********, ip=[::ffff:127.0.0.1], port=[57142], protocol=IMAP
Oct 20 10:34:23 tristan imapd: LOGOUT, user=chucky@**********, ip=[::ffff:127.0.0.1], headers=0, body=0, rcvd=33, sent=346, time=1
Oct 20 10:34:28 tristan postfix/qmgr[7199]: 6716D37A55: from=&lt;chucky@**********&gt;, size=485, nrcpt=1 (queue active)
Oct 20 10:34:28 tristan postfix/trivial-rewrite[7281]: warning: do not list domain web.tristan in BOTH mydestination and virtual_mailbox_domains
Oct 20 10:34:28 tristan postfix/local[7282]: warning: dict_nis_init: NIS domain name not set - NIS lookups disabled
Oct 20 10:34:28 tristan postfix/trivial-rewrite[7281]: warning: do not list domain web.tristan in BOTH mydestination and virtual_mailbox_domains
Oct 20 10:34:28 tristan postfix/local[7282]: 6716D37A55: to=&lt;chucky@**********&gt;, orig_to=&lt;root@web.tristan&gt;, relay=local, delay=948, delays=948/0.22/0/0.25, dsn=2.0.0, status=sent (delivered to mailbox)
Oct 20 10:34:28 tristan postfix/qmgr[7199]: 6716D37A55: removed
Oct 20 10:34:34 tristan imapd: Connection, ip=[::ffff:127.0.0.1]
Oct 20 10:34:34 tristan authdaemond: received auth request, service=imap, authtype=login
Oct 20 10:34:34 tristan authdaemond: authmysql: trying this module
Oct 20 10:34:34 tristan authdaemond: SQL query: SELECT email, password, &quot;&quot;, 5000, 5000, &quot;/var/spool/mail/&quot;, CONCAT(SUBSTRING_INDEX(email,&#039;@&#039;,-1),&#039;/&#039;,SUBSTRING_INDEX(email,&#039;@&#039;,1),&#039;/&#039;), &quot;&quot;, name, &quot;&quot; FROM comptes WHERE email = &#039;chucky@**********&#039; 
Oct 20 10:34:34 tristan authdaemond: password matches successfully
Oct 20 10:34:34 tristan authdaemond: authmysql: sysusername=&lt;null&gt;, sysuserid=5000, sysgroupid=5000, homedir=/var/spool/mail/, address=chucky@**********, fullname=&lt;null&gt;, maildir=web.tristan/tristan/, quota=&lt;null&gt;, options=&lt;null&gt;
Oct 20 10:34:34 tristan authdaemond: authmysql: clearpasswd=&lt;null&gt;, passwd=XTNblvh93peL.
Oct 20 10:34:34 tristan authdaemond: Authenticated: sysusername=&lt;null&gt;, sysuserid=5000, sysgroupid=5000, homedir=/var/spool/mail/, address=chucky@**********, fullname=&lt;null&gt;, maildir=web.tristan/tristan/, quota=&lt;null&gt;, options=&lt;null&gt;
Oct 20 10:34:34 tristan authdaemond: Authenticated: clearpasswd=**********, passwd=XTNblvh93peL.
Oct 20 10:34:34 tristan imapd: LOGIN, user=chucky@**********, ip=[::ffff:127.0.0.1], port=[57146], protocol=IMAP
Oct 20 10:34:34 tristan imapd: LOGOUT, user=chucky@**********, ip=[::ffff:127.0.0.1], headers=0, body=0, rcvd=10, sent=237, time=0
Oct 20 10:34:34 tristan postfix/pickup[7198]: A08E337A55: uid=33 from=&lt;chucky@**********&gt;
Oct 20 10:34:34 tristan postfix/cleanup[7290]: A08E337A55: message-id=&lt;0dfb8b9d42b123d2981fe5f5a1a909f7@localhost&gt;
Oct 20 10:34:34 tristan postfix/qmgr[7199]: A08E337A55: from=&lt;chucky@**********&gt;, size=483, nrcpt=1 (queue active)
Oct 20 10:34:34 tristan postfix/trivial-rewrite[7281]: warning: do not list domain web.tristan in BOTH mydestination and virtual_mailbox_domains
Oct 20 10:34:34 tristan postfix/local[7282]: A08E337A55: to=&lt;chucky@**********&gt;, relay=local, delay=0.28, delays=0.21/0.02/0/0.05, dsn=2.0.0, status=sent (delivered to mailbox)</code></pre></div><p>Mais le mail n&#039;arrive nul part ! Je ne le vois nul part du tout, même pas dans les fichiers et même pas dans roundcube....</p><p>Voici ma config de postfix (main.cf) :</p><div class="codebox"><pre class="vscroll"><code>smtpd_banner = $myhostname ESMTP $mail_name (Debian/GNU)
biff = no
disable_vrfy_command = yes
smtpd_helo_required = yes

# appending .domain is the MUA&#039;s job.
append_dot_mydomain = no

# Pour faire simple, il est conseillé d&#039;utiliser le reverse DNS de votre serveur.
myhostname = *******
myorigin = ********
mydestination = **********, localhost.localdomain, localhost
relayhost =
mynetworks = 127.0.0.0/8
mailbox_size_limit = 0
recipient_delimiter = +
inet_interfaces = all

virtual_alias_maps = mysql:/etc/postfix/mysql-virtual_aliases.cf,mysql:/etc/postfix/mysql-virtual_aliases_comptes.cf
virtual_mailbox_domains = mysql:/etc/postfix/mysql-virtual_domaines.cf
virtual_mailbox_maps = mysql:/etc/postfix/mysql-virtual_comptes.cf
virtual_mailbox_base = /var/spool/mail/
virtual_uid_maps = static:5000
virtual_gid_maps = static:5000

virtual_create_maildirsize = yes
virtual_mailbox_extended = yes
virtual_mailbox_limit_maps = mysql:/etc/postfix/mysql-virtual_quotas.cf
virtual_mailbox_limit_override = yes
virtual_maildir_limit_message = &quot;La boite mail de votre destinataire est pleine, merci de reessayez plus tard.&quot;
virtual_overquota_bounce = yes</code></pre></div><p>EDIT : j&#039;ai trouvé le soucis, ça venait de cet erreur :<br />warning: do not list domain ****** in BOTH mydestination and virtual_mailbox_domains</p><p>J&#039;ai tout simplement enlever le nom de domain dans mydestination du main.cf !</p>]]></description>
			<author><![CDATA[dummy@example.com (Chucky2401)]]></author>
			<pubDate>Sat, 20 Oct 2012 08:53:32 +0000</pubDate>
			<guid>http://forum.ubuntu-fr.org/viewtopic.php?pid=11184341#p11184341</guid>
		</item>
		<item>
			<title><![CDATA[Réponse à&#160;:  Configuration PostFix avec GMail et Webmail]]></title>
			<link>http://forum.ubuntu-fr.org/viewtopic.php?pid=11134361#p11134361</link>
			<description><![CDATA[<p>Pour postfix, tu peut t&#039;inspirer de celui la :</p><div class="codebox"><pre class="vscroll"><code>$ cat /etc/postfix/main.cf 
# See /usr/share/postfix/main.cf.dist for a commented, more complete version

# Debian specific:  Specifying a file name will cause the first
# line of that file to be used as the name.  The Debian default
# is /etc/mailname.
#myorigin = /etc/mailname

smtpd_banner = $myhostname ESMTP $mail_name (Ubuntu)
biff = no

# appending .domain is the MUA&#039;s job.
append_dot_mydomain = no

# Uncomment the next line to generate &quot;delayed mail&quot; warnings
#delay_warning_time = 4h

readme_directory = no

# TLS parameters
smtpd_tls_cert_file=/etc/ssl/certs/ssl-cert-snakeoil.pem
smtpd_tls_key_file=/etc/ssl/private/ssl-cert-snakeoil.key
smtpd_use_tls=yes
smtpd_tls_session_cache_database = btree:${data_directory}/smtpd_scache
smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache

# See /usr/share/doc/postfix/TLS_README.gz in the postfix-doc package for
# information on enabling SSL in the smtp client.

myhostname = myhost.exemple.com
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
myorigin = /etc/mailname
mydestination = myhost.exemple.com, localhost.exemple.com, , localhost

relayhost = [smtp.gmail.com]:587
relay_transport = relay
relay_destination_concurrency_limit = 1

smtp_tls_CAfile = /etc/ssl/certs/ca-certificates.crt
smtp_use_tls = yes
smtp_tls_note_starttls_offer = yes
smtp_sasl_auth_enable = yes
smtp_sasl_password_maps = hash:/etc/postfix/sasl/passwd
smtp_sasl_security_options = noanonymous
smtp_sasl_tls_security_options = noanonymous
smtp_connection_cache_destinations = smtp.gmail.com
 
tls_random_source = dev:/dev/urandom

mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128
mailbox_size_limit = 0
recipient_delimiter = +
inet_interfaces = all</code></pre></div>]]></description>
			<author><![CDATA[dummy@example.com (xavier4811)]]></author>
			<pubDate>Mon, 15 Oct 2012 20:22:14 +0000</pubDate>
			<guid>http://forum.ubuntu-fr.org/viewtopic.php?pid=11134361#p11134361</guid>
		</item>
		<item>
			<title><![CDATA[Configuration PostFix avec GMail et Webmail]]></title>
			<link>http://forum.ubuntu-fr.org/viewtopic.php?pid=11134231#p11134231</link>
			<description><![CDATA[<p>Bonsoir à tous !</p><p>Depuis quelques jours j&#039;essaie de configurer postfix pour utiliser GMail avec celui-ci. Les mails à l&#039;interne fonctionne parfaitement.<br />Je tente en vain, sans succès, avec toujours la même erreur :</p><div class="codebox"><pre><code>Oct 15 22:07:06 web postfix/smtp[26059]: DB8BB36084: to=&lt;********@gmail.com&gt;, relay=smtp.gmail.com[173.194.67.108]:587,
delay=0.69, delays=0.01/0/0.62/0.06, dsn=5.5.1, status=bounced (host smtp.gmail.com[173.194.67.108] said: 530-5.5.1
Authentication Required. Learn more at 530 5.5.1 http://support.google.com/mail/bin/answer.py?answer=14257
w8sm15525347wif.4 (in reply to MAIL FROM command))
Oct 15 22:07:06 web postfix/qmgr[25985]: DB8BB36084: removed</code></pre></div><p>Je voudrais savoir, s&#039;il est possible, si quelqu&#039;un d&#039;entre vous tous, peut me dire quel fichier de conf il a besoin, et me dire s&#039;il y a un soucis quelques part.<br />Je tiens a dire, que je n&#039;ai pas trouver de tuto assez complet pour configurer Dovecot... Et je pense qu&#039;il est nécessaire, car j&#039;ai vu dans un tuto qu&#039;a la connexion telnet sur le serveur postfix, il faut la ligne 250-AUTH, que je n&#039;ai pas.</p><p>Sinon, je cherche un moyen de mettre en place un Webmail, mais sans BDD. Pour Roundcube c&#039;est foutu, car je ne comprends pas le fonctionnement de postfix et MySQL.<br />Et Squirrelmail ne fonctionne pas du tout, sans que je sache pourquoi.</p><p>Merci d&#039;avance pour vos réponses,<br />Cordialement</p>]]></description>
			<author><![CDATA[dummy@example.com (Chucky2401)]]></author>
			<pubDate>Mon, 15 Oct 2012 20:13:40 +0000</pubDate>
			<guid>http://forum.ubuntu-fr.org/viewtopic.php?pid=11134231#p11134231</guid>
		</item>
	</channel>
</rss>
