<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Комментарии: Локальный postfix c релеем на GMail</title>
	<atom:link href="http://svdev.ru/blog/local-postfix-gmail-relay/feed/" rel="self" type="application/rss+xml" />
	<link>http://svdev.ru/blog/local-postfix-gmail-relay/</link>
	<description>Блокнот разработчика</description>
	<lastBuildDate>Thu, 16 Feb 2012 17:09:47 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
	<item>
		<title>Автор: Дерябин Сергей</title>
		<link>http://svdev.ru/blog/local-postfix-gmail-relay/comment-page-1/#comment-10250</link>
		<dc:creator>Дерябин Сергей</dc:creator>
		<pubDate>Wed, 06 Jul 2011 10:39:26 +0000</pubDate>
		<guid isPermaLink="false">http://svdev.ru/?p=494#comment-10250</guid>
		<description>Вот конфиг целиком.

[cc_bash line_numbers=&quot;false&quot;]
# 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

smtp_use_tls = yes
smtp_tls_key_file = /etc/ssl/server.pem
smtp_tls_cert_file = $smtp_tls_key_file
smtp_tls_CAfile = $smtp_tls_key_file
smtp_tls_note_starttls_offer = yes
smtp_tls_loglevel = 0
smtpd_tls_auth_only = yes
smtpd_use_tls = yes
smtpd_tls_loglevel = 0
smtpd_tls_received_header = yes
smtpd_tls_session_cache_timeout = 3600s
tls_random_source = dev:/dev/urandom
smtpd_tls_key_file = /etc/ssl/server.pem
smtpd_tls_cert_file = $smtpd_tls_key_file
smtpd_tls_CAfile = $smtpd_tls_key_file

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 = remza-team.ru
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
mydestination = remza-team.ru, localhost.localdomain, localhost
#relayhost = smtp.mail.ru 
relayhost = [smtp.gmail.com]:587
mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128
#mailbox_size_limit = 0
#recipient_delimiter = +
inet_interfaces = 127.0.0.1
#default_transport = error
#relay_transport = error

smtp_sasl_auth_enable = yes
smtp_sasl_password_maps = hash:/etc/postfix/sasl_passwd
smtp_sasl_security_options =
[/cc_bash]</description>
		<content:encoded><![CDATA[<p>Вот конфиг целиком.</p>
<div class="codecolorer-container bash vibrant" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #666666; font-style: italic;"># See /usr/share/postfix/main.cf.dist for a commented, more complete version</span><br />
<br />
<br />
<span style="color: #666666; font-style: italic;"># Debian specific: &nbsp;Specifying a file name will cause the first</span><br />
<span style="color: #666666; font-style: italic;"># line of that file to be used as the name. &nbsp;The Debian default</span><br />
<span style="color: #666666; font-style: italic;"># is /etc/mailname.</span><br />
<span style="color: #666666; font-style: italic;">#myorigin = /etc/mailname</span><br />
<br />
smtpd_banner = <span style="color: #007800;">$myhostname</span> ESMTP <span style="color: #007800;">$mail_name</span> <span style="color: #7a0874; font-weight: bold;">&#40;</span>Ubuntu<span style="color: #7a0874; font-weight: bold;">&#41;</span><br />
biff = no<br />
<br />
<span style="color: #666666; font-style: italic;"># appending .domain is the MUA's job.</span><br />
append_dot_mydomain = no<br />
<br />
<span style="color: #666666; font-style: italic;"># Uncomment the next line to generate &quot;delayed mail&quot; warnings</span><br />
<span style="color: #666666; font-style: italic;">#delay_warning_time = 4h</span><br />
<br />
readme_directory = no<br />
<br />
<span style="color: #666666; font-style: italic;"># TLS parameters</span><br />
<span style="color: #007800;">smtpd_tls_cert_file</span>=<span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>ssl<span style="color: #000000; font-weight: bold;">/</span>certs<span style="color: #000000; font-weight: bold;">/</span>ssl-cert-snakeoil.pem<br />
<span style="color: #007800;">smtpd_tls_key_file</span>=<span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>ssl<span style="color: #000000; font-weight: bold;">/</span>private<span style="color: #000000; font-weight: bold;">/</span>ssl-cert-snakeoil.key<br />
<span style="color: #007800;">smtpd_use_tls</span>=<span style="color: #c20cb9; font-weight: bold;">yes</span><br />
<br />
smtp_use_tls = <span style="color: #c20cb9; font-weight: bold;">yes</span><br />
smtp_tls_key_file = <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>ssl<span style="color: #000000; font-weight: bold;">/</span>server.pem<br />
smtp_tls_cert_file = <span style="color: #007800;">$smtp_tls_key_file</span><br />
smtp_tls_CAfile = <span style="color: #007800;">$smtp_tls_key_file</span><br />
smtp_tls_note_starttls_offer = <span style="color: #c20cb9; font-weight: bold;">yes</span><br />
smtp_tls_loglevel = <span style="color: #000000;">0</span><br />
smtpd_tls_auth_only = <span style="color: #c20cb9; font-weight: bold;">yes</span><br />
smtpd_use_tls = <span style="color: #c20cb9; font-weight: bold;">yes</span><br />
smtpd_tls_loglevel = <span style="color: #000000;">0</span><br />
smtpd_tls_received_header = <span style="color: #c20cb9; font-weight: bold;">yes</span><br />
smtpd_tls_session_cache_timeout = 3600s<br />
tls_random_source = dev:<span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>urandom<br />
smtpd_tls_key_file = <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>ssl<span style="color: #000000; font-weight: bold;">/</span>server.pem<br />
smtpd_tls_cert_file = <span style="color: #007800;">$smtpd_tls_key_file</span><br />
smtpd_tls_CAfile = <span style="color: #007800;">$smtpd_tls_key_file</span><br />
<br />
smtpd_tls_session_cache_database = btree:<span style="color: #800000;">${data_directory}</span><span style="color: #000000; font-weight: bold;">/</span>smtpd_scache<br />
smtp_tls_session_cache_database = btree:<span style="color: #800000;">${data_directory}</span><span style="color: #000000; font-weight: bold;">/</span>smtp_scache<br />
<br />
<span style="color: #666666; font-style: italic;"># See /usr/share/doc/postfix/TLS_README.gz in the postfix-doc package for</span><br />
<span style="color: #666666; font-style: italic;"># information on enabling SSL in the smtp client.</span><br />
<br />
myhostname = remza-team.ru<br />
alias_maps = hash:<span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>aliases<br />
alias_database = hash:<span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>aliases<br />
mydestination = remza-team.ru, localhost.localdomain, localhost<br />
<span style="color: #666666; font-style: italic;">#relayhost = smtp.mail.ru </span><br />
relayhost = <span style="color: #7a0874; font-weight: bold;">&#91;</span>smtp.gmail.com<span style="color: #7a0874; font-weight: bold;">&#93;</span>:<span style="color: #000000;">587</span><br />
mynetworks = 127.0.0.0<span style="color: #000000; font-weight: bold;">/</span><span style="color: #000000;">8</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span>::ffff:127.0.0.0<span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #000000; font-weight: bold;">/</span><span style="color: #000000;">104</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span>::<span style="color: #000000;">1</span><span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #000000; font-weight: bold;">/</span><span style="color: #000000;">128</span><br />
<span style="color: #666666; font-style: italic;">#mailbox_size_limit = 0</span><br />
<span style="color: #666666; font-style: italic;">#recipient_delimiter = +</span><br />
inet_interfaces = 127.0.0.1<br />
<span style="color: #666666; font-style: italic;">#default_transport = error</span><br />
<span style="color: #666666; font-style: italic;">#relay_transport = error</span><br />
<br />
smtp_sasl_auth_enable = <span style="color: #c20cb9; font-weight: bold;">yes</span><br />
smtp_sasl_password_maps = hash:<span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>postfix<span style="color: #000000; font-weight: bold;">/</span>sasl_passwd<br />
smtp_sasl_security_options =</div></div>
]]></content:encoded>
	</item>
	<item>
		<title>Автор: sugrob</title>
		<link>http://svdev.ru/blog/local-postfix-gmail-relay/comment-page-1/#comment-10230</link>
		<dc:creator>sugrob</dc:creator>
		<pubDate>Tue, 05 Jul 2011 05:59:56 +0000</pubDate>
		<guid isPermaLink="false">http://svdev.ru/?p=494#comment-10230</guid>
		<description>Серега, привет.
А можешь показать остальную часть конфига? Ту в которой хост определяется и домен.
У меня что-то не работает как надо. Почта уходит, но в логах при этом пишет вот что:
...certificate verification failed for smtp.gmail.com[74.125.39.109]:587: untrusted issuer...</description>
		<content:encoded><![CDATA[<p>Серега, привет.<br />
А можешь показать остальную часть конфига? Ту в которой хост определяется и домен.<br />
У меня что-то не работает как надо. Почта уходит, но в логах при этом пишет вот что:<br />
&#8230;certificate verification failed for smtp.gmail.com[74.125.39.109]:587: untrusted issuer&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>Автор: Alex</title>
		<link>http://svdev.ru/blog/local-postfix-gmail-relay/comment-page-1/#comment-8937</link>
		<dc:creator>Alex</dc:creator>
		<pubDate>Mon, 11 Apr 2011 06:13:08 +0000</pubDate>
		<guid isPermaLink="false">http://svdev.ru/?p=494#comment-8937</guid>
		<description>Спасибо. Все работает. Без сертификата не работало.</description>
		<content:encoded><![CDATA[<p>Спасибо. Все работает. Без сертификата не работало.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Автор: Denis</title>
		<link>http://svdev.ru/blog/local-postfix-gmail-relay/comment-page-1/#comment-7030</link>
		<dc:creator>Denis</dc:creator>
		<pubDate>Thu, 17 Feb 2011 17:07:32 +0000</pubDate>
		<guid isPermaLink="false">http://svdev.ru/?p=494#comment-7030</guid>
		<description>Мне хватило:
relayhost = [smtp.gmail.com]:587

smtp_use_tls = yes
smtp_sasl_auth_enable = yes
smtp_sasl_password_maps = hash:/etc/postfix/sasl_passwd
smtp_sasl_security_options =</description>
		<content:encoded><![CDATA[<p>Мне хватило:<br />
relayhost = [smtp.gmail.com]:587</p>
<p>smtp_use_tls = yes<br />
smtp_sasl_auth_enable = yes<br />
smtp_sasl_password_maps = hash:/etc/postfix/sasl_passwd<br />
smtp_sasl_security_options =</p>
]]></content:encoded>
	</item>
</channel>
</rss>

