{"id":1527,"date":"2024-03-25T21:59:44","date_gmt":"2024-03-26T02:59:44","guid":{"rendered":"https:\/\/zewwy.ca\/?p=1527"},"modified":"2024-05-20T10:25:51","modified_gmt":"2024-05-20T15:25:51","slug":"first-time-postfix","status":"publish","type":"post","link":"https:\/\/zewwy.ca\/index.php\/2024\/03\/25\/first-time-postfix\/","title":{"rendered":"First time Postfix"},"content":{"rendered":"<p>I setup a new Container on Proxmox VE.<a href=\"https:\/\/forum.proxmox.com\/threads\/lxc-container-empty-template-box-in-web-gui.127173\/\"> I did derp out and didn&#8217;t realize you had to pre-download templates.<\/a> <a href=\"https:\/\/forum.proxmox.com\/threads\/error-startup-for-container-100-failed.97727\/\">It also failed to start, but apparently due to no storage space<\/a> (you can only see it when you pay close attention when creating the container, it won&#8217;t state so when trying to start it. YYou figure creation would simply fail)<\/p>\n<p>Debian 12, and off to the races&#8230;<\/p>\n<p><a href=\"https:\/\/i.imgur.com\/aPvQt3W.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter\" src=\"https:\/\/i.imgur.com\/aPvQt3W.png\" alt=\"\" width=\"1900\" height=\"913\" \/><\/a><\/p>\n<p>As usual.. first things first, updates. Classic.<\/p>\n<p>Went <a href=\"https:\/\/reintech.io\/blog\/configure-postfix-mail-server-debian-12\">to follow this basic guide<\/a>.<br \/>\nI created a user, and set password, started and enabled postfix service.<\/p>\n<p><a href=\"https:\/\/i.imgur.com\/toZYIoB.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter\" src=\"https:\/\/i.imgur.com\/toZYIoB.png\" alt=\"\" width=\"939\" height=\"211\" \/><\/a><\/p>\n<p>I figured I&#8217;d just do the old <a href=\"https:\/\/learn.microsoft.com\/en-us\/exchange\/mail-flow\/test-smtp-telnet?view=exchserver-2019\">send email via telnet trick<\/a>.<\/p>\n<p>Which kept saying connection refused. I found a <a href=\"https:\/\/serverfault.com\/questions\/371713\/unable-to-telnet-into-port-25-on-centos-postfix-server\">similar post<\/a>, and found nothing was listening on port 25. I checked the existing config file:<\/p>\n<pre>\/etc\/postfix\/main.cf<\/pre>\n<p>seemed there was nothing for smb like mentioned in that post, adding it manuallyy didn&#8217;t seem to help. I did notice that I didn&#8217;t have the chance to run the config wizard for postfix. <a href=\"https:\/\/phoenixnap.com\/kb\/postfix-smtp\">Which from this guide<\/a> tells you how to initiate it manually:<\/p>\n<pre>sudo dpkg-reconfigure postfix<\/pre>\n<p>After running this I was able to see the system listening on port 25:<\/p>\n<p><a href=\"https:\/\/i.imgur.com\/MAG3rrU.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter\" src=\"https:\/\/i.imgur.com\/MAG3rrU.png\" alt=\"\" width=\"838\" height=\"41\" \/><\/a><\/p>\n<p>After which the smtp email sendind via telnet worked.. but where was the email, or <a href=\"https:\/\/unix.stackexchange.com\/questions\/23277\/where-does-postfix-store-email\">user&#8217;s mailbox<\/a>? mbox style sounds kinda lame one file for all mail.. yeech&#8230;<\/p>\n<p><a href=\"https:\/\/i.imgur.com\/IeBcM7l.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter\" src=\"https:\/\/i.imgur.com\/IeBcM7l.png\" alt=\"\" width=\"707\" height=\"211\" \/><\/a><\/p>\n<p><a href=\"https:\/\/unix.stackexchange.com\/questions\/132654\/how-to-make-postfix-create-maildir\">maildir option sounds much better<\/a>&#8230;<\/p>\n<p>added &#8220;home_mailbox = \/var\/mail\/&#8221; to my postfix config file, and restarted postfix&#8230; now:<\/p>\n<p><a href=\"https:\/\/i.imgur.com\/FGXjN3w.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter\" src=\"https:\/\/i.imgur.com\/FGXjN3w.png\" alt=\"\" width=\"746\" height=\"207\" \/><\/a><\/p>\n<p>well that&#8217;s a bit better, but how can I get my mail in a better fashion, like a mailbox app, or web app? <a href=\"https:\/\/superuser.com\/questions\/1805532\/web-based-email-client-for-postfix\">Well Web app seems out of the question<\/a>&#8230;<\/p>\n<p>If I find a good solution to the mail checking problem I&#8217;ll update this blog post. Postfix is alright for an MTA I guess simple enough to configure. Well there&#8217;s apparently <a href=\"https:\/\/docs.vultr.com\/how-to-install-postfix-dovecot-and-roundcube-on-ubuntu-20-04\">this setup you can do, that is PostFix Mail Transfer Agent(MTA SMTP), with Dovecot a secure IMAP and POP3 Mail Delivery Agent(MDA). These two open-source applications work well with Roundcube. The web app to check mail.<\/a> Which seems like a lot to go through&#8230;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I setup a new Container on Proxmox VE. I did derp out and didn&#8217;t realize you had to pre-download templates. It also failed to start, but apparently due to no storage space (you can only see it when you pay close attention when creating the container, it won&#8217;t state so when trying to start it. &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/zewwy.ca\/index.php\/2024\/03\/25\/first-time-postfix\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;First time Postfix&#8221;<\/span><\/a><\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"sfsi_plus_gutenberg_text_before_share":"","sfsi_plus_gutenberg_show_text_before_share":"","sfsi_plus_gutenberg_icon_type":"","sfsi_plus_gutenberg_icon_alignemt":"","sfsi_plus_gutenburg_max_per_row":"","footnotes":""},"categories":[8],"tags":[457,458],"class_list":["post-1527","post","type-post","status-publish","format-standard","hentry","category-server-administration","tag-mail","tag-postfix"],"_links":{"self":[{"href":"https:\/\/zewwy.ca\/index.php\/wp-json\/wp\/v2\/posts\/1527","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/zewwy.ca\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/zewwy.ca\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/zewwy.ca\/index.php\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/zewwy.ca\/index.php\/wp-json\/wp\/v2\/comments?post=1527"}],"version-history":[{"count":1,"href":"https:\/\/zewwy.ca\/index.php\/wp-json\/wp\/v2\/posts\/1527\/revisions"}],"predecessor-version":[{"id":1528,"href":"https:\/\/zewwy.ca\/index.php\/wp-json\/wp\/v2\/posts\/1527\/revisions\/1528"}],"wp:attachment":[{"href":"https:\/\/zewwy.ca\/index.php\/wp-json\/wp\/v2\/media?parent=1527"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/zewwy.ca\/index.php\/wp-json\/wp\/v2\/categories?post=1527"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/zewwy.ca\/index.php\/wp-json\/wp\/v2\/tags?post=1527"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}