{"id":2378,"date":"2017-10-16T20:08:35","date_gmt":"2017-10-16T19:08:35","guid":{"rendered":"http:\/\/www.jmarior.net\/itank\/?p=2378"},"modified":"2018-07-10T05:04:38","modified_gmt":"2018-07-10T04:04:38","slug":"configurar-postfix-como-relay-de-gmail","status":"publish","type":"post","link":"https:\/\/www.jmarior.net\/itank\/configurar-postfix-como-relay-de-gmail\/","title":{"rendered":"Configurar Postfix como relay de GMail"},"content":{"rendered":"<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-2379\" src=\"https:\/\/www.jmarior.net\/itank\/files\/postfix_debian_gnu_linux_logo_picture-install-and-configure-postfix-with-dovecot-on-wheezy-debian-linux.png\" alt=\"\" width=\"323\" height=\"196\" \/><\/p>\n<p>Apunte de c\u00f3mo configurar Postfix como relay de GMail. Funcion\u00f3 en Ubuntu Server 14.04 LTS x64, 16.04 LTS x64 Proxmox VE v5.0 (Debian Linux x64)<\/p>\n<pre># apt-get install postfix mailutils libsasl2-2 ca-certificates libsasl2-modules\r\n# nano \/etc\/postfix\/main.cf<\/pre>\n<p><code>smtpd_tls_cert_file=\/etc\/ssl\/certs\/ssl-cert-snakeoil.pem<br \/>\nsmtpd_tls_key_file=\/etc\/ssl\/private\/ssl-cert-snakeoil.key<br \/>\nsmtpd_use_tls=yes<br \/>\nsmtpd_tls_session_cache_database = btree:${data_directory}\/smtpd_scache<br \/>\nsmtp_tls_session_cache_database = btree:${data_directory}\/smtp_scache<br \/>\ninet_interfaces = all<br \/>\nrelayhost = [smtp.gmail.com]:587<br \/>\nsmtp_sasl_auth_enable = yes<br \/>\nsmtp_sasl_password_maps = hash:\/etc\/postfix\/sasl_passwd<br \/>\nsmtp_sasl_security_options = noanonymous<br \/>\nsmtp_tls_CAfile = \/etc\/ssl\/certs\/ca-certificates.crt<br \/>\nsmtp_use_tls = yes<\/code><\/p>\n<pre>#\u00a0nano \/etc\/postfix\/sasl_passwd<\/pre>\n<p><code>[smtp.gmail.com]:587 USERNAME@gmail.com:PASSWORD<\/code><\/p>\n<pre>#\u00a0chmod 0400 \/etc\/postfix\/sasl_passwd\r\n#\u00a0postmap \/etc\/postfix\/sasl_passwd #\u00a0service postfix restart\r\n# echo \"Probando uno, dos\" | mail -s \"postfix relay\" usuario@dominio.xxx<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Apunte de c\u00f3mo configurar Postfix como relay de GMail. Funcion\u00f3 en Ubuntu Server 14.04 LTS x64, 16.04 LTS x64 Proxmox VE v5.0 (Debian Linux x64) # apt-get install postfix mailutils libsasl2-2 ca-certificates libsasl2-modules # nano \/etc\/postfix\/main.cf 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 inet_interfaces = all relayhost = [smtp.gmail.com]:587 smtp_sasl_auth_enable = yes smtp_sasl_password_maps [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":2379,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5],"tags":[1919,123,1980,1982,1981],"class_list":["post-2378","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-itank-ideas","tag-gmail","tag-gnu-linux","tag-postfix","tag-relay","tag-smtp"],"views":1112,"_links":{"self":[{"href":"https:\/\/www.jmarior.net\/itank\/wp-json\/wp\/v2\/posts\/2378","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.jmarior.net\/itank\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.jmarior.net\/itank\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.jmarior.net\/itank\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.jmarior.net\/itank\/wp-json\/wp\/v2\/comments?post=2378"}],"version-history":[{"count":0,"href":"https:\/\/www.jmarior.net\/itank\/wp-json\/wp\/v2\/posts\/2378\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.jmarior.net\/itank\/wp-json\/wp\/v2\/media\/2379"}],"wp:attachment":[{"href":"https:\/\/www.jmarior.net\/itank\/wp-json\/wp\/v2\/media?parent=2378"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.jmarior.net\/itank\/wp-json\/wp\/v2\/categories?post=2378"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.jmarior.net\/itank\/wp-json\/wp\/v2\/tags?post=2378"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}