{"id":859,"date":"2022-04-29T05:06:58","date_gmt":"2022-04-29T05:06:58","guid":{"rendered":"https:\/\/zineausa.com\/blog\/?p=859"},"modified":"2026-04-28T05:13:50","modified_gmt":"2026-04-28T05:13:50","slug":"setting-up-gophish-o365-sending-profile-2022","status":"publish","type":"post","link":"https:\/\/zineausa.com\/blog\/2022\/04\/setting-up-gophish-o365-sending-profile-2022\/","title":{"rendered":"Setting up Gophish O365 Sending Profile in 2022"},"content":{"rendered":"\n<p>Have always had a tough time getting Gophish to work to send emails via o365. Today I finally succeeded! Here&#8217;s how I did it:<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">First I used this <a href=\"https:\/\/www.redteam.cafe\/phishing\/connecting-gophish-with-office365\">guide<\/a> along with some Microsoft documentation and did the following:<\/h2>\n\n\n\n<ol class=\"wp-block-list\"><li>Went to admin.exchange.microsoft.com, click on <strong>recipients -> mailboxes -> [my user] -> general -> manage settings for emails apps<\/strong> -> and ensured SMTP was on.<\/li><li>Then on the same page, I went to <strong>settings -> mail flow<\/strong> -> and ensured the following ere on: turn on sending from aliases, turn on SMTP Auth for my org, and turn on use of legacy TLS clients<\/li><li>On the same page, I went to <strong>mail flow -> connector<\/strong>s -> and added a connector from my org to O365 with the IP of gophish as the source.<\/li><li>I went to https:\/\/aad.portal.azure.com and hit <strong>Azure Active Directory -> Properties -> Manage Security Defaults<\/strong> -> Disabled security defaults<\/li><li>I went to https:\/\/security.microsoft.com\/antispam and added my Gophish IP to the connection filter allowed list.<\/li><li>I ensured MFA was off for my account.<\/li><\/ol>\n\n\n\n<h2 class=\"wp-block-heading\">  Now,  time to go to Gophish and plug in the settings:<\/h2>\n\n\n\n<ol class=\"wp-block-list\"><li>Go to sending profiles<\/li><li>From needs to be first last &lt;o365 email><\/li><li>Host: smtp-legacy.office365.com:587<\/li><li>Username: o365 email<\/li><li>Password: o365 password<\/li><li>ignore cert errors<\/li><li>no headers needed<\/li><\/ol>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Have always had a tough time getting Gophish to work to send emails via o365. Today I finally succeeded! Here&#8217;s how I did it: First I used this guide along with some Microsoft documentation and did the following: Went to admin.exchange.microsoft.com, click on recipients -> mailboxes -> [my user] -> general -> manage settings for [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":861,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[7],"tags":[],"class_list":["post-859","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-how-to"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.6 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Setting up Gophish O365 Sending Profile in 2022 - Zinea InfoSec Blog<\/title>\n<meta name=\"description\" content=\"Have always had a tough time getting Gophish to work to send emails via o365. Today I finally succeeded! Here&#039;s how I did\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/zineausa.com\/blog\/2022\/04\/setting-up-gophish-o365-sending-profile-2022\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Setting up Gophish O365 Sending Profile in 2022 - Zinea InfoSec Blog\" \/>\n<meta property=\"og:description\" content=\"Have always had a tough time getting Gophish to work to send emails via o365. Today I finally succeeded! Here&#039;s how I did\" \/>\n<meta property=\"og:url\" content=\"https:\/\/zineausa.com\/blog\/2022\/04\/setting-up-gophish-o365-sending-profile-2022\/\" \/>\n<meta property=\"og:site_name\" content=\"Zinea InfoSec Blog\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/zineausa\/\" \/>\n<meta property=\"article:published_time\" content=\"2022-04-29T05:06:58+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2026-04-28T05:13:50+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/zineausa.com\/blog\/wp-content\/uploads\/2022\/04\/SNAG-5897.png\" \/>\n\t<meta property=\"og:image:width\" content=\"149\" \/>\n\t<meta property=\"og:image:height\" content=\"49\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Zinea\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@ZineaLLC\" \/>\n<meta name=\"twitter:site\" content=\"@ZineaLLC\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Zinea\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/zineausa.com\\\/blog\\\/2022\\\/04\\\/setting-up-gophish-o365-sending-profile-2022\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/zineausa.com\\\/blog\\\/2022\\\/04\\\/setting-up-gophish-o365-sending-profile-2022\\\/\"},\"author\":{\"name\":\"Zinea\",\"@id\":\"https:\\\/\\\/zineausa.com\\\/blog\\\/#\\\/schema\\\/person\\\/e3c58d4f0650f7fb571c01fcf836b1d0\"},\"headline\":\"Setting up Gophish O365 Sending Profile in 2022\",\"datePublished\":\"2022-04-29T05:06:58+00:00\",\"dateModified\":\"2026-04-28T05:13:50+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/zineausa.com\\\/blog\\\/2022\\\/04\\\/setting-up-gophish-o365-sending-profile-2022\\\/\"},\"wordCount\":232,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\\\/\\\/zineausa.com\\\/blog\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/zineausa.com\\\/blog\\\/2022\\\/04\\\/setting-up-gophish-o365-sending-profile-2022\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/zineausa.com\\\/blog\\\/wp-content\\\/uploads\\\/2022\\\/04\\\/SNAG-5897.png\",\"articleSection\":[\"How-to\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/zineausa.com\\\/blog\\\/2022\\\/04\\\/setting-up-gophish-o365-sending-profile-2022\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/zineausa.com\\\/blog\\\/2022\\\/04\\\/setting-up-gophish-o365-sending-profile-2022\\\/\",\"url\":\"https:\\\/\\\/zineausa.com\\\/blog\\\/2022\\\/04\\\/setting-up-gophish-o365-sending-profile-2022\\\/\",\"name\":\"Setting up Gophish O365 Sending Profile in 2022 - Zinea InfoSec Blog\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/zineausa.com\\\/blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/zineausa.com\\\/blog\\\/2022\\\/04\\\/setting-up-gophish-o365-sending-profile-2022\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/zineausa.com\\\/blog\\\/2022\\\/04\\\/setting-up-gophish-o365-sending-profile-2022\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/zineausa.com\\\/blog\\\/wp-content\\\/uploads\\\/2022\\\/04\\\/SNAG-5897.png\",\"datePublished\":\"2022-04-29T05:06:58+00:00\",\"dateModified\":\"2026-04-28T05:13:50+00:00\",\"description\":\"Have always had a tough time getting Gophish to work to send emails via o365. Today I finally succeeded! Here's how I did\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/zineausa.com\\\/blog\\\/2022\\\/04\\\/setting-up-gophish-o365-sending-profile-2022\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/zineausa.com\\\/blog\\\/2022\\\/04\\\/setting-up-gophish-o365-sending-profile-2022\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/zineausa.com\\\/blog\\\/2022\\\/04\\\/setting-up-gophish-o365-sending-profile-2022\\\/#primaryimage\",\"url\":\"https:\\\/\\\/zineausa.com\\\/blog\\\/wp-content\\\/uploads\\\/2022\\\/04\\\/SNAG-5897.png\",\"contentUrl\":\"https:\\\/\\\/zineausa.com\\\/blog\\\/wp-content\\\/uploads\\\/2022\\\/04\\\/SNAG-5897.png\",\"width\":149,\"height\":49},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/zineausa.com\\\/blog\\\/2022\\\/04\\\/setting-up-gophish-o365-sending-profile-2022\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/zineausa.com\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Setting up Gophish O365 Sending Profile in 2022\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/zineausa.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/zineausa.com\\\/blog\\\/\",\"name\":\"Zinea InfoSec Blog\",\"description\":\"Cyber Security Resources\",\"publisher\":{\"@id\":\"https:\\\/\\\/zineausa.com\\\/blog\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/zineausa.com\\\/blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/zineausa.com\\\/blog\\\/#organization\",\"name\":\"Zinea LLC\",\"url\":\"https:\\\/\\\/zineausa.com\\\/blog\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/zineausa.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/zineausa.com\\\/blog\\\/wp-content\\\/uploads\\\/2018\\\/05\\\/zinea-square.png\",\"contentUrl\":\"https:\\\/\\\/zineausa.com\\\/blog\\\/wp-content\\\/uploads\\\/2018\\\/05\\\/zinea-square.png\",\"width\":876,\"height\":876,\"caption\":\"Zinea LLC\"},\"image\":{\"@id\":\"https:\\\/\\\/zineausa.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/www.facebook.com\\\/zineausa\\\/\",\"https:\\\/\\\/x.com\\\/ZineaLLC\"]},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/zineausa.com\\\/blog\\\/#\\\/schema\\\/person\\\/e3c58d4f0650f7fb571c01fcf836b1d0\",\"name\":\"Zinea\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/81f66095634a4c974693824dc72cd0db7c7c44910d60dda2d1bf1be275ee107d?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/81f66095634a4c974693824dc72cd0db7c7c44910d60dda2d1bf1be275ee107d?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/81f66095634a4c974693824dc72cd0db7c7c44910d60dda2d1bf1be275ee107d?s=96&d=mm&r=g\",\"caption\":\"Zinea\"}}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Setting up Gophish O365 Sending Profile in 2022 - Zinea InfoSec Blog","description":"Have always had a tough time getting Gophish to work to send emails via o365. Today I finally succeeded! Here's how I did","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/zineausa.com\/blog\/2022\/04\/setting-up-gophish-o365-sending-profile-2022\/","og_locale":"en_US","og_type":"article","og_title":"Setting up Gophish O365 Sending Profile in 2022 - Zinea InfoSec Blog","og_description":"Have always had a tough time getting Gophish to work to send emails via o365. Today I finally succeeded! Here's how I did","og_url":"https:\/\/zineausa.com\/blog\/2022\/04\/setting-up-gophish-o365-sending-profile-2022\/","og_site_name":"Zinea InfoSec Blog","article_publisher":"https:\/\/www.facebook.com\/zineausa\/","article_published_time":"2022-04-29T05:06:58+00:00","article_modified_time":"2026-04-28T05:13:50+00:00","og_image":[{"width":149,"height":49,"url":"https:\/\/zineausa.com\/blog\/wp-content\/uploads\/2022\/04\/SNAG-5897.png","type":"image\/png"}],"author":"Zinea","twitter_card":"summary_large_image","twitter_creator":"@ZineaLLC","twitter_site":"@ZineaLLC","twitter_misc":{"Written by":"Zinea","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/zineausa.com\/blog\/2022\/04\/setting-up-gophish-o365-sending-profile-2022\/#article","isPartOf":{"@id":"https:\/\/zineausa.com\/blog\/2022\/04\/setting-up-gophish-o365-sending-profile-2022\/"},"author":{"name":"Zinea","@id":"https:\/\/zineausa.com\/blog\/#\/schema\/person\/e3c58d4f0650f7fb571c01fcf836b1d0"},"headline":"Setting up Gophish O365 Sending Profile in 2022","datePublished":"2022-04-29T05:06:58+00:00","dateModified":"2026-04-28T05:13:50+00:00","mainEntityOfPage":{"@id":"https:\/\/zineausa.com\/blog\/2022\/04\/setting-up-gophish-o365-sending-profile-2022\/"},"wordCount":232,"commentCount":0,"publisher":{"@id":"https:\/\/zineausa.com\/blog\/#organization"},"image":{"@id":"https:\/\/zineausa.com\/blog\/2022\/04\/setting-up-gophish-o365-sending-profile-2022\/#primaryimage"},"thumbnailUrl":"https:\/\/zineausa.com\/blog\/wp-content\/uploads\/2022\/04\/SNAG-5897.png","articleSection":["How-to"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/zineausa.com\/blog\/2022\/04\/setting-up-gophish-o365-sending-profile-2022\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/zineausa.com\/blog\/2022\/04\/setting-up-gophish-o365-sending-profile-2022\/","url":"https:\/\/zineausa.com\/blog\/2022\/04\/setting-up-gophish-o365-sending-profile-2022\/","name":"Setting up Gophish O365 Sending Profile in 2022 - Zinea InfoSec Blog","isPartOf":{"@id":"https:\/\/zineausa.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/zineausa.com\/blog\/2022\/04\/setting-up-gophish-o365-sending-profile-2022\/#primaryimage"},"image":{"@id":"https:\/\/zineausa.com\/blog\/2022\/04\/setting-up-gophish-o365-sending-profile-2022\/#primaryimage"},"thumbnailUrl":"https:\/\/zineausa.com\/blog\/wp-content\/uploads\/2022\/04\/SNAG-5897.png","datePublished":"2022-04-29T05:06:58+00:00","dateModified":"2026-04-28T05:13:50+00:00","description":"Have always had a tough time getting Gophish to work to send emails via o365. Today I finally succeeded! Here's how I did","breadcrumb":{"@id":"https:\/\/zineausa.com\/blog\/2022\/04\/setting-up-gophish-o365-sending-profile-2022\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/zineausa.com\/blog\/2022\/04\/setting-up-gophish-o365-sending-profile-2022\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/zineausa.com\/blog\/2022\/04\/setting-up-gophish-o365-sending-profile-2022\/#primaryimage","url":"https:\/\/zineausa.com\/blog\/wp-content\/uploads\/2022\/04\/SNAG-5897.png","contentUrl":"https:\/\/zineausa.com\/blog\/wp-content\/uploads\/2022\/04\/SNAG-5897.png","width":149,"height":49},{"@type":"BreadcrumbList","@id":"https:\/\/zineausa.com\/blog\/2022\/04\/setting-up-gophish-o365-sending-profile-2022\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/zineausa.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Setting up Gophish O365 Sending Profile in 2022"}]},{"@type":"WebSite","@id":"https:\/\/zineausa.com\/blog\/#website","url":"https:\/\/zineausa.com\/blog\/","name":"Zinea InfoSec Blog","description":"Cyber Security Resources","publisher":{"@id":"https:\/\/zineausa.com\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/zineausa.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/zineausa.com\/blog\/#organization","name":"Zinea LLC","url":"https:\/\/zineausa.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/zineausa.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/zineausa.com\/blog\/wp-content\/uploads\/2018\/05\/zinea-square.png","contentUrl":"https:\/\/zineausa.com\/blog\/wp-content\/uploads\/2018\/05\/zinea-square.png","width":876,"height":876,"caption":"Zinea LLC"},"image":{"@id":"https:\/\/zineausa.com\/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/zineausa\/","https:\/\/x.com\/ZineaLLC"]},{"@type":"Person","@id":"https:\/\/zineausa.com\/blog\/#\/schema\/person\/e3c58d4f0650f7fb571c01fcf836b1d0","name":"Zinea","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/81f66095634a4c974693824dc72cd0db7c7c44910d60dda2d1bf1be275ee107d?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/81f66095634a4c974693824dc72cd0db7c7c44910d60dda2d1bf1be275ee107d?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/81f66095634a4c974693824dc72cd0db7c7c44910d60dda2d1bf1be275ee107d?s=96&d=mm&r=g","caption":"Zinea"}}]}},"_links":{"self":[{"href":"https:\/\/zineausa.com\/blog\/wp-json\/wp\/v2\/posts\/859","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/zineausa.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/zineausa.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/zineausa.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/zineausa.com\/blog\/wp-json\/wp\/v2\/comments?post=859"}],"version-history":[{"count":3,"href":"https:\/\/zineausa.com\/blog\/wp-json\/wp\/v2\/posts\/859\/revisions"}],"predecessor-version":[{"id":864,"href":"https:\/\/zineausa.com\/blog\/wp-json\/wp\/v2\/posts\/859\/revisions\/864"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/zineausa.com\/blog\/wp-json\/wp\/v2\/media\/861"}],"wp:attachment":[{"href":"https:\/\/zineausa.com\/blog\/wp-json\/wp\/v2\/media?parent=859"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/zineausa.com\/blog\/wp-json\/wp\/v2\/categories?post=859"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/zineausa.com\/blog\/wp-json\/wp\/v2\/tags?post=859"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}