{"id":5995,"date":"2020-06-01T17:42:02","date_gmt":"2020-06-01T14:42:02","guid":{"rendered":"https:\/\/kifarunix.com\/?p=5995"},"modified":"2024-03-14T22:00:53","modified_gmt":"2024-03-14T19:00:53","slug":"configure-postfix-to-use-gmail-smtp-on-ubuntu-20-04","status":"publish","type":"post","link":"https:\/\/kifarunix.com\/configure-postfix-to-use-gmail-smtp-on-ubuntu-20-04\/","title":{"rendered":"Configure Postfix to Use Gmail SMTP on Ubuntu 20.04"},"content":{"rendered":"\n<p>Welcome to our tutorial on how to configure Postfix to use Gmail SMTP on Ubuntu 20.04 to relay mails. <a href=\"http:\/\/www.postfix.org\/\" target=\"_blank\" rel=\"noreferrer noopener\">Postfix<\/a> is a free and open-source mail transfer agent that routes and delivers electronic mail. Postfix MTA can be configured to relay mails through an external SMTP servers such as Gmail SMTP server for a reliable mail delivery.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"configurepostfixgmailsmtp\"><a class=\"rank-math-link\" href=\"#configurepostfixgmailsmtp\">Configuring Postfix to Use Gmail SMTP Relay<\/a><\/h2>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"installpostfixubuntu20.04\"><a href=\"#installpostfixubuntu20.04\">Install Postfix on Ubuntu 20.04<\/a><\/h3>\n\n\n\n<p>You can install Postfix by installing the <code>postfix<\/code> package itself or via the <code>mailutils<\/code> package which installs along with it.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>apt install postfix<\/code><\/pre>\n\n\n\n<p>Or<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>apt install mailutils<\/code><\/pre>\n\n\n\n<p>During installation, you will be prompted to provide some information required to configure Postfix.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">Select the Mail Server Type<\/h4>\n\n\n\n<p>Select the mail server type configuration that best suits your environment needs. You are provided with multiple options;<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong><code>No configuration<\/code><\/strong>: Should be chosen to leave the current configuration unchanged.<\/li>\n\n\n\n<li><strong><code>Internet site<\/code><\/strong>: Mail is sent and received directly using SMTP.<\/li>\n\n\n\n<li><code><strong>Internet with smarthost<\/strong><\/code>: Mail is received directly using SMTP or by running a utility such as fetchmail. Outgoing mail is sent using a smarthost.<\/li>\n\n\n\n<li><strong><code>Satellite system<\/code><\/strong>: All mail is sent to another machine, called a &#8216;smarthost&#8217;, for delivery.<\/li>\n\n\n\n<li><strong><code>Local only<\/code><\/strong>: The only delivered mail is the mail for local users. There is no network.<\/li>\n<\/ul>\n\n\n\n<p>Select&nbsp;<code><strong>Internet Site<\/strong><\/code>&nbsp;to enable Postfix to sent and receive mails and press Enter to proceed.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"890\" height=\"674\" src=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2020\/06\/mail-server-type.png\" alt=\"Configure Postfix to Use Gmail SMTP on Ubuntu 20.04\" class=\"wp-image-6001\" title=\"\" srcset=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2020\/06\/mail-server-type.png?v=1591022180 890w, https:\/\/kifarunix.com\/wp-content\/uploads\/2020\/06\/mail-server-type-768x582.png?v=1591022180 768w\" sizes=\"(max-width: 890px) 100vw, 890px\" \/><\/figure>\n\n\n\n<h4 class=\"wp-block-heading\">Set System Mail Name<\/h4>\n\n\n\n<p>The <em><code>mail name<\/code><\/em> is the domain name used to &#8220;qualify&#8221; _ALL_ mail  addresses without a domain name, for example, <code><strong>kifarunix-demo.co<\/strong>m<\/code>,  in our case.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1798\" height=\"368\" src=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2020\/06\/system-mail-name.png\" alt=\"Configure Postfix to Use Gmail SMTP on Ubuntu 20.04\" class=\"wp-image-6002\" title=\"\" srcset=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2020\/06\/system-mail-name.png?v=1591022220 1798w, https:\/\/kifarunix.com\/wp-content\/uploads\/2020\/06\/system-mail-name-768x157.png?v=1591022220 768w, https:\/\/kifarunix.com\/wp-content\/uploads\/2020\/06\/system-mail-name-1536x314.png?v=1591022220 1536w\" sizes=\"(max-width: 1798px) 100vw, 1798px\" \/><\/figure>\n\n\n\n<p>You can always reset these settings by re-configuring postfix after the installation by executing the command below.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>dpkg-reconfigure postfix<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">Configuring Postfix to Use Gmail SMTP<\/h3>\n\n\n\n<p>Postfix is now set up with a default configuration. To make further configuration changes, edit the main Postfix configuration file, <code>\/etc\/postfix\/main.cf<\/code> and make any necessary changes as needed.<\/p>\n\n\n\n<p>You can view Postfix configuration values using the postconf command;<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>postconf<\/code><\/pre>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"setpostfixrelayserver\">Set the Postfix Relay server<\/h4>\n\n\n\n<p>Postfix can be configured to deliver mails indirectly via a&nbsp;relay host. A relay host can be defined on a Postfix configuration file using the <code><strong>relayhost<\/strong><\/code> parameter.<\/p>\n\n\n\n<p>By default, the value of the <code><strong>relayhost<\/strong><\/code> parameter is <strong>empty<\/strong>. This configures Postfix is to try to deliver mail directly to the Internet, which is usually not desirable.<\/p>\n\n\n\n<p>According to <a href=\"http:\/\/www.postfix.org\/postconf.5.html#relayhost\" target=\"_blank\" rel=\"noreferrer noopener\">Postfix configuration<\/a>, different values can be set for the relayhost parameter;<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>On an intranet, you can specify your organizational domain name. If your internal DNS uses no MX records, specify the name of the intranet gateway host instead.<\/li>\n\n\n\n<li>In the case of SMTP or LMTP delivery, specify one or more destinations in the form of a domain name, hostname, hostname:port, [hostname]:port, [hostaddress] or [hostaddress]:port, separated by comma or whitespace. The form [hostname] turns off MX lookups.<\/li>\n<\/ul>\n\n\n\n<p>In our case, we are setting Postfix relay to Gmail SMTP servers. Hence, open the Postfix main configuration file;<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>vim \/etc\/postfix\/main.cf<\/code><\/pre>\n\n\n\n<p>Find the line, <code>relayhost =<\/code>, and set its value to Gmail SMTP domain name as shown below;<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>...\nmydestination = $myhostname, kifarunix-demo.com, ubuntu20, localhost.localdomain, localhost\n<strong>relayhost = [smtp.gmail.com]:587\n<\/strong>mynetworks = 127.0.0.0\/8 [::ffff:127.0.0.0]\/104 [::1]\/128\n...<\/code><\/pre>\n\n\n\n<h4 class=\"wp-block-heading\">Configure Postfix SASL Authentication<\/h4>\n\n\n\n<p>According to <a rel=\"noreferrer noopener\" href=\"http:\/\/www.postfix.org\/SASL_README.html\" target=\"_blank\">Postfix<\/a>:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>SMTP servers need to decide whether an SMTP client is authorized to send mail to remote destinations, or only to destinations that the server itself is responsible for.<\/li>\n\n\n\n<li>Usually, SMTP servers accept mail to remote destinations when the client&#8217;s IP address is in the &#8220;same network&#8221; as the server&#8217;s IP address.<\/li>\n\n\n\n<li>SMTP clients outside the SMTP server&#8217;s network need a different way to get &#8220;same network&#8221; privileges. To address this need, Postfix supports SASL authentication. With this, a remote SMTP client can authenticate to the Postfix SMTP server, and the Postfix SMTP client can authenticate to a remote SMTP server.<\/li>\n\n\n\n<li>Once a client is authenticated, a server can give it &#8220;same network&#8221; privileges.<\/li>\n<\/ul>\n\n\n\n<p>To enable SASL server authentication, you need to;<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Enable SMTP client-side authentication by setting the value of&nbsp;<code><strong>smtp_sasl_auth_enable<\/strong><\/code>&nbsp;to&nbsp;<code><strong>yes<\/strong><\/code>.<br><br><code>smtp_sasl_auth_enable = yes<\/code><br><\/li>\n\n\n\n<li>Configure the Postfix SMTP client to send username and password information to the mail gateway server. This can be done by defining the path to&nbsp;<code>sasl_passwd<\/code>&nbsp;as using the <code><strong>smtp_sasl_password_maps<\/strong><\/code> parameter.<br><br><code>smtp_sasl_password_maps = hash:\/etc\/postfix\/sasl_passwd<\/code><br><\/li>\n\n\n\n<li>Enforce STARTTLS encryption for outgoing SMTP to ensure that connection to the remote smtp server will be encrypted using the <code><strong>smtp_tls_security_level<\/strong><\/code> parameter.<br><br><code>smtp_tls_security_level = encrypt<\/code><br><\/li>\n\n\n\n<li>Define the Postfix SMTP client SASL security options. This be zero or more of the following options;\n<ul class=\"wp-block-list\">\n<li><strong>noplaintext:<\/strong> Disallow methods that use plaintext passwords.<\/li>\n\n\n\n<li><strong>noactive<\/strong>: Disallow methods subject to active (non-dictionary) attack.<\/li>\n\n\n\n<li><strong>nodictionary<\/strong>: Disallow methods subject to passive (dictionary) attack.<\/li>\n\n\n\n<li><strong>noanonymous<\/strong>: Disallow methods that allow anonymous authentication.<\/li>\n\n\n\n<li><strong>mutual_auth<\/strong>: Only allow methods that provide mutual authentication.<br><br><code>smtp_sasl_security_options = noanonymous<\/code><\/li>\n<\/ul>\n<\/li>\n<\/ul>\n\n\n\n<p>These configs can be updated on Postfix configuration file (<strong>See the highlighted lines<\/strong>);<\/p>\n\n\n\n<pre class=\"scroll-box\"><code>...\n<strong>relayhost = [smtp.gmail.com]:587\n<\/strong>...\n#\n...\nsmtp_tls_CApath=\/etc\/ssl\/certs\n#smtp_tls_security_level=may\n<strong>smtp_tls_security_level=encrypt\n<\/strong>smtp_tls_session_cache_database = btree:${data_directory}\/smtp_scache\n...\nrecipient_delimiter = +\ninet_interfaces = all\ninet_protocols = all\n<strong>smtp_sasl_auth_enable = yes\nsmtp_sasl_password_maps = hash:\/etc\/postfix\/sasl_passwd\nsmtp_sasl_security_options = noanonymous<\/strong>\n<\/code><\/pre>\n\n\n\n<p>Save and exit the configurtion file.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">Set the SMTP SASL Credentials<\/h4>\n\n\n\n<p>As per our configurations above, the SASL credentials database file is set to <strong><code>\/etc\/postfix\/sasl_passwd<\/code><\/strong>.<\/p>\n\n\n\n<p>You should define the SMTP credentials in the format;<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code># destination                   credentials\n[smtp.domain.name]              username:password<\/code><\/pre>\n\n\n\n<p>As shown below;<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>vim <code>\/etc\/postfix\/sasl_passwd<\/code><\/code><\/pre>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>[smtp.gmail.com]:587 userid@gmail.com:password<\/code><\/pre>\n\n\n\n<p>Replace the <code><strong>userid@gmail<\/strong><\/code> and <code><strong>password<\/strong><\/code> with your Gmail account credentials.<\/p>\n\n\n\n<p>Note:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>If you specify the &#8220;<code>[<\/code>&#8221; and &#8220;<code>]<\/code>&#8221; in the&nbsp;<code>relayhost<\/code>&nbsp;destination, you must as well use the same format in the&nbsp;<code>smtp_sasl_password_maps<\/code>&nbsp;file.<\/li>\n\n\n\n<li>If you specify a non-default TCP Port (such as &#8220;<code>:submission<\/code>&#8221; or &#8220;<code>:587<\/code>&#8220;) in the&nbsp;<code>relayhost<\/code>&nbsp;destination, you must as well use the same form in the&nbsp;<code>smtp_sasl_password_maps<\/code>&nbsp;file.<\/li>\n<\/ul>\n\n\n\n<h4 class=\"wp-block-heading\">Secure the SASL Password File<\/h4>\n\n\n\n<p>The credentials are set in plaintext. To protect access to the file by other users, make the file read+write only for&nbsp;<code>root<\/code>.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>chown root:root \/etc\/postfix\/sasl_passwd\nchmod 600 \/etc\/postfix\/sasl_passwd<\/code><\/pre>\n\n\n\n<h4 class=\"wp-block-heading\">Create SASL Password DB file<\/h4>\n\n\n\n<p>Postfix requires that the&nbsp;<code>sasl_passwd<\/code>&nbsp;file to be a database such that it can be read faster. Use&nbsp;<code>postmap<\/code>&nbsp;command to convert the file into a database,&nbsp;<code>sasl_passwd.db<\/code>.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>postmap \/etc\/postfix\/sasl_passwd<\/code><\/pre>\n\n\n\n<p>This will assign the same ownership and permissions to the database file as set for the sasl_passwd file above.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>ls -l \/etc\/postfix\/sasl_passwd*<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>-rw------- 1 root root 53 Jun 1 13:57 \/etc\/postfix\/sasl_passwd\n-rw------- 1 root root 12288 Jun 1 14:06 \/etc\/postfix\/sasl_passwd.db<\/code><\/pre>\n\n\n\n<h4 class=\"wp-block-heading\">Check Postfix Configuration<\/h4>\n\n\n\n<p>Run the&nbsp;<code>postfix check<\/code>&nbsp;command to check the Postfix configuration for any error. Any error should printed on the output.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>postfix check<\/code><\/pre>\n\n\n\n<p>You can ignore the warning, <strong><code>postfix\/postfix-script: warning: symlink leaves directory: \/etc\/postfix\/.\/makedefs.out<\/code><\/strong>.<\/p>\n\n\n\n<p>Restart Postfix<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>systemctl restart postfix<\/code><\/pre>\n\n\n\n<p>To check the status;<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>systemctl status postfix<\/code><\/pre>\n\n\n\n<pre class=\"scroll-box\"><code>\u25cf postfix.service - Postfix Mail Transport Agent\n     Loaded: loaded (\/lib\/systemd\/system\/postfix.service; enabled; vendor preset: enabled)\n     Active: active (exited) since Mon 2020-06-01 14:11:55 UTC; 5s ago\n    Process: 7507 ExecStart=\/bin\/true (code=exited, status=0\/SUCCESS)\n   Main PID: 7507 (code=exited, status=0\/SUCCESS)\n\nJun 01 14:11:55 ubuntu20 systemd[1]: Starting Postfix Mail Transport Agent...\nJun 01 14:11:55 ubuntu20 systemd[1]: Finished Postfix Mail Transport Agent.\n<\/code><\/pre>\n\n\n\n<h4 class=\"wp-block-heading\">Send a Test Mail to Verify Postfix Gmail SMTP Relay<\/h4>\n\n\n\n<p>Once you are done with the configuration, you can try to send a test mail to verify that Gmail SMTP relay works fine. You can use mail client or any other for this purpose.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>echo \"Test Postfix Gmail SMTP Relay\" | mail -s \"Postfix Gmail SMTP Relay\" <strong>userid@gmail.com<\/strong><\/code><\/pre>\n\n\n\n<p>You can tail the logs to check the delivery status;<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>tail \/var\/log\/mail.log<\/code><\/pre>\n\n\n\n<p>If you get the error;<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>...<strong>status=deferred (SASL authentication failed; server smtp.gmail.com[74.125.133.108] said: 535-5.7.8 Username and Password not accepted.<\/strong><\/code><\/pre>\n\n\n\n<p>You need to login to the account you used for the SASL authentication and enable <a href=\"https:\/\/myaccount.google.com\/lesssecureapps\" target=\"_blank\" rel=\"noreferrer noopener\">Less secure app access<\/a>.<\/p>\n\n\n\n<p>NOTE that the use of less secure app access has been deprecated. See how you can use App password as an alternative in the guide below;<\/p>\n\n\n\n<p><a href=\"https:\/\/kifarunix.com\/configure-postfix-to-use-gmail-app-passwords\/\" target=\"_blank\" rel=\"noreferrer noopener\">Configure Postfix to Use Gmail App Passwords<\/a><\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1050\" height=\"443\" src=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2020\/06\/less-secure-app-gmail.png\" alt=\"Configure Postfix to Use Gmail SMTP on Ubuntu 20.04\" class=\"wp-image-6003\" title=\"\" srcset=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2020\/06\/less-secure-app-gmail.png?v=1591022246 1050w, https:\/\/kifarunix.com\/wp-content\/uploads\/2020\/06\/less-secure-app-gmail-768x324.png?v=1591022246 768w\" sizes=\"(max-width: 1050px) 100vw, 1050px\" \/><\/figure>\n\n\n\n<p>After that, retry to sent the test mail and check the logs and hurray, our test mail is delivered, <strong>status=sent<\/strong>.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>...\nJun 1 14:22:42 ubuntu20 postfix\/smtp[7650]: 6892D40186: to=<strong>userid@gmail.com<\/strong>, relay=smtp.gmail.com[173.194.76.109]:587, delay=4.8, delays=0.35\/0.03\/3.6\/0.8, dsn=2.0.0, <strong>status=sent<\/strong> (250 2.0.0 OK 1591021361 k12sm19227410wrn.42 - gsmtp)\n...<\/code><\/pre>\n\n\n\n<p>If you get the error, <strong><code>Network is unreachable <\/code><\/strong>;<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>postfix\/smtp&#91;10417]: connect to smtp.gmail.com&#91;2a00:1450:4013:c07::6c]:587: Network is unreachable<\/code><\/pre>\n\n\n\n<p>The change the following line int he main.cf;<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code><strong>inet_protocols = all<\/strong><\/code><\/pre>\n\n\n\n<p>to<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code><strong>inet_protocols = ipv4<\/strong><\/code><\/pre>\n\n\n\n<p>And restart Postfix service.<\/p>\n\n\n\n<p>That marks the end of our guide on how to install and configure Postfix to use Gmail SMTP relay host on Ubuntu 20.04. Enjoy.<\/p>\n\n\n\n<p>Read more about Postfix Configuration on;<\/p>\n\n\n\n<p><a rel=\"noreferrer noopener\" href=\"http:\/\/www.postfix.org\/BASIC_CONFIGURATION_README.html\" target=\"_blank\">Postfix Basic Configuration<\/a><\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Related Tutorials<\/h3>\n\n\n\n<p><a rel=\"noreferrer noopener\" href=\"https:\/\/kifarunix.com\/configure-nagios-email-notification-using-gmail\/\" target=\"_blank\">Configure Nagios Email Notification Using Gmail<\/a><\/p>\n\n\n\n<p><a rel=\"noreferrer noopener\" href=\"https:\/\/kifarunix.com\/configure-sendmail-to-use-gmail-relay-on-ubuntu-18-04-debian-10-9\/\" target=\"_blank\">Configure Sendmail to Use Gmail Relay on Ubuntu 18.04\/Debian 10\/9<\/a><\/p>\n\n\n\n<p><a rel=\"noreferrer noopener\" href=\"https:\/\/kifarunix.com\/encrypt-emails-using-enigmail-on-thunderbird\/\" target=\"_blank\">Encrypt Emails using Enigmail on Thunderbird<\/a><\/p>\n\n\n\n<p><a href=\"https:\/\/kifarunix.com\/configure-postfix-to-use-gmail-smtp-on-ubuntu-18-04\/\" target=\"_blank\" rel=\"noreferrer noopener\">Configure Postfix to Use Gmail SMTP on Ubuntu 18.04<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Welcome to our tutorial on how to configure Postfix to use Gmail SMTP on Ubuntu 20.04 to relay mails. Postfix is a free and open-source<\/p>\n","protected":false},"author":3,"featured_media":13773,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"rank_math_lock_modified_date":false,"footnotes":""},"categories":[121,272,1631],"tags":[1633,1634,1636,1632,288,1635,1200],"class_list":["post-5995","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-howtos","category-email","category-postfix","tag-configure-postfix-ubuntu-20-04","tag-configure-postfix-with-gmail-smtp-relay-host","tag-gmail-smtp-server","tag-install-postfix-on-ubuntu-20-04","tag-postfix","tag-postfix-gmail-smtp","tag-ubuntu-20-04","generate-columns","tablet-grid-50","mobile-grid-100","grid-parent","grid-50","resize-featured-image"],"_links":{"self":[{"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/posts\/5995"}],"collection":[{"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/comments?post=5995"}],"version-history":[{"count":10,"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/posts\/5995\/revisions"}],"predecessor-version":[{"id":21439,"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/posts\/5995\/revisions\/21439"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/media\/13773"}],"wp:attachment":[{"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/media?parent=5995"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/categories?post=5995"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/tags?post=5995"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}