{"id":10556,"date":"2023-06-01T10:26:11","date_gmt":"2023-06-01T10:26:11","guid":{"rendered":"https:\/\/myprojects.advchaweb.com\/?p=10556"},"modified":"2026-02-05T03:43:55","modified_gmt":"2026-02-05T03:43:55","slug":"setup-postfix-on-ubuntu-20-04-localhost-and-use-sendinblue-brevo-smtp","status":"publish","type":"post","link":"https:\/\/myprojects.advchaweb.com\/index.php\/2023\/06\/01\/setup-postfix-on-ubuntu-20-04-localhost-and-use-sendinblue-brevo-smtp\/","title":{"rendered":"Setup Postfix on Ubuntu 20.04 Localhost and Use Sendinblue\/Brevo SMTP"},"content":{"rendered":"<p>Ref: https:\/\/www.linuxbabe.com\/mail-server\/postfix-smtp-relay-ubuntu-sendinblue<br \/>\nhttps:\/\/oastic.com\/posts\/configure-postfix-to-send-email-using-sendinblue-as-smtp-server\/<\/p>\n<blockquote class=\"wp-embedded-content\" data-secret=\"1ozfLVO0z5\"><p><a href=\"https:\/\/myprojects.advchaweb.com\/index.php\/2019\/08\/15\/setup-postfix-on-ubuntu-16-04-localhost-and-use-gmail-smtp\/\">Setup Postfix on Ubuntu 16.04 Localhost and Use Gmail SMTP<\/a><\/p><\/blockquote>\n<p><iframe loading=\"lazy\" class=\"wp-embedded-content\" sandbox=\"allow-scripts\" security=\"restricted\" style=\"position: absolute; visibility: hidden;\" title=\"&#8220;Setup Postfix on Ubuntu 16.04 Localhost and Use Gmail SMTP&#8221; &#8212; My Projects &amp; Live\" src=\"https:\/\/myprojects.advchaweb.com\/index.php\/2019\/08\/15\/setup-postfix-on-ubuntu-16-04-localhost-and-use-gmail-smtp\/embed\/#?secret=q66ey3p3fj#?secret=1ozfLVO0z5\" data-secret=\"1ozfLVO0z5\" width=\"600\" height=\"338\" frameborder=\"0\" marginwidth=\"0\" marginheight=\"0\" scrolling=\"no\"><\/iframe><\/p>\n<p>Create the Brevo account (https:\/\/www.sendinblue.com\/)<br \/>\nchoose the free plan<\/p>\n<p>FOLLOW THE SETUP IN THE ABOVE REFS<br \/>\nONLY THE WORKING SETTING FOR ME (localhost) IN \/etc\/postfix\/main.cf<\/p>\n<pre class=\"lang:default decode:true \">...\r\n#smtp_tls_wrappermode = yes\r\n...\r\n#sendinblue\/brevo setting\r\nsmtp_sasl_auth_enable = yes\r\nsmtp_sasl_password_maps = hash:\/etc\/postfix\/sasl_passwd\r\nsmtp_sasl_security_options = noanonymous\r\nsmtp_tls_security_level = may\r\nheader_size_limit = 4096000\r\nrelayhost = [smtp-relay.sendinblue.com]:587<\/pre>\n<p>AND THE SETTING SMTP FOR \/etc\/postfix\/sasl_passwd you can find IN https:\/\/app.brevo.com\/settings\/keys\/smtp LIKE<\/p>\n<pre class=\"lang:default decode:true\">[smtp-relay.sendinblue.com]:587      smtp_username:smtp_password<\/pre>\n<p>NOW:<br \/>\n[smtp-relay.brevo.com]:587 smtp_username:smtp_password<\/p>\n<span class=\"rcp-restricted-content-message\">SORRY, ONLY ADMIN CAN SHOW THIS!<\/span>\n<p>NOW:<\/p>\n<span class=\"rcp-restricted-content-message\">SORRY, ONLY ADMIN CAN SHOW THIS!<\/span>\n<p>TLS = Port 587<\/p>\n<p>THEN TEST<\/p>\n<pre class=\"lang:default decode:true\">echo \"Test Email message body\" | mail -s \"Email test subject\" advcha@yahoo.com<\/pre>\n<p>CHECK IN sudo tail \/var\/log\/mail.log<br \/>\nTHE WORKING SMTP WOULD BE LIKE THIS<\/p>\n<pre class=\"lang:default decode:true \">Jun  1 17:16:18 teddy postfix\/qmgr[2394692]: 0A43BC08D1F: from=&lt;satria@teddy.test&gt;, size=371, nrcpt=1 (queue active)\r\nJun  1 17:16:19 teddy postfix\/smtp[2394701]: 0A43BC08D1F: to=&lt;advcha@yahoo.com&gt;, relay=smtp-relay.sendinblue.com[1.179.113.51]:587, delay=403, delays=401\/0.03\/1.4\/0.18, dsn=2.0.0, status=sent (250 Message queued as &lt;20230601100937.0A43BC08D1F@teddy.localdomain&gt;)\r\nJun  1 17:16:19 teddy postfix\/qmgr[2394692]: 0A43BC08D1F: removed\r\nJun  1 17:16:19 teddy postfix\/smtp[2394697]: 6140AC08EB8: to=&lt;advcha@yahoo.com&gt;, relay=smtp-relay.sendinblue.com[1.179.113.51]:587, delay=326, delays=324\/0.02\/1.4\/0.19, dsn=2.0.0, status=sent (250 Message queued as &lt;20230601101054.6140AC08EB8@teddy.localdomain&gt;)\r\nJun  1 17:16:19 teddy postfix\/qmgr[2394692]: 6140AC08EB8: removed\r\nJun  1 17:16:21 teddy postfix\/pickup[2394691]: 39707C08D20: uid=1000 from=&lt;satria@teddy.test&gt;\r\nJun  1 17:16:21 teddy postfix\/cleanup[2394970]: 39707C08D20: message-id=&lt;20230601101621.39707C08D20@teddy.localdomain&gt;\r\nJun  1 17:16:21 teddy postfix\/qmgr[2394692]: 39707C08D20: from=&lt;satria@teddy.test&gt;, size=371, nrcpt=1 (queue active)\r\nJun  1 17:16:22 teddy postfix\/smtp[2394701]: 39707C08D20: to=&lt;advcha@yahoo.com&gt;, relay=smtp-relay.sendinblue.com[1.179.113.51]:587, delay=1.2, delays=0.02\/0\/0.99\/0.19, dsn=2.0.0, status=sent (250 Message queued as &lt;20230601101621.39707C08D20@teddy.localdomain&gt;)\r\nJun  1 17:16:22 teddy postfix\/qmgr[2394692]: 39707C08D20: removed<\/pre>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Ref: https:\/\/www.linuxbabe.com\/mail-server\/postfix-smtp-relay-ubuntu-sendinblue https:\/\/oastic.com\/posts\/configure-postfix-to-send-email-using-sendinblue-as-smtp-server\/ Setup Postfix on Ubuntu 16.04 Localhost and Use Gmail SMTP Create the Brevo account (https:\/\/www.sendinblue.com\/) choose the free plan FOLLOW THE SETUP IN THE ABOVE REFS ONLY THE WORKING SETTING FOR ME (localhost) IN \/etc\/postfix\/main.cf &#8230; #smtp_tls_wrappermode = yes &#8230; #sendinblue\/brevo setting smtp_sasl_auth_enable = yes smtp_sasl_password_maps = hash:\/etc\/postfix\/sasl_passwd smtp_sasl_security_options = noanonymous smtp_tls_security_level &hellip; <a href=\"https:\/\/myprojects.advchaweb.com\/index.php\/2023\/06\/01\/setup-postfix-on-ubuntu-20-04-localhost-and-use-sendinblue-brevo-smtp\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Setup Postfix on Ubuntu 20.04 Localhost and Use Sendinblue\/Brevo SMTP&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[17,121],"tags":[],"class_list":["post-10556","post","type-post","status-publish","format-standard","hentry","category-ubuntu","category-ubuntu-20-04"],"_links":{"self":[{"href":"https:\/\/myprojects.advchaweb.com\/index.php\/wp-json\/wp\/v2\/posts\/10556","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/myprojects.advchaweb.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/myprojects.advchaweb.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/myprojects.advchaweb.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/myprojects.advchaweb.com\/index.php\/wp-json\/wp\/v2\/comments?post=10556"}],"version-history":[{"count":7,"href":"https:\/\/myprojects.advchaweb.com\/index.php\/wp-json\/wp\/v2\/posts\/10556\/revisions"}],"predecessor-version":[{"id":14005,"href":"https:\/\/myprojects.advchaweb.com\/index.php\/wp-json\/wp\/v2\/posts\/10556\/revisions\/14005"}],"wp:attachment":[{"href":"https:\/\/myprojects.advchaweb.com\/index.php\/wp-json\/wp\/v2\/media?parent=10556"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/myprojects.advchaweb.com\/index.php\/wp-json\/wp\/v2\/categories?post=10556"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/myprojects.advchaweb.com\/index.php\/wp-json\/wp\/v2\/tags?post=10556"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}