[{"data":1,"prerenderedAt":268},["ShallowReactive",2],{"Categories":3,"NavIndexCategoriesCountFooter":203,"content-\u002F2007\u002F11\u002F26\u002Fsetting-outgoing-ip-address-for-domain-in-exim4\u002F":204},[4,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,68,70,71,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,137,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202],{"category":5},"System Administration",{"category":5},{"category":5},{"category":5},{"category":5},{"category":5},{"category":5},{"category":5},{"category":5},{"category":5},{"category":5},{"category":5},{"category":5},{"category":5},{"category":5},{"category":5},{"category":5},{"category":5},{"category":5},{"category":5},{"category":5},{"category":27},"Software Development",{"category":5},{"category":5},{"category":5},{"category":5},{"category":27},{"category":27},{"category":5},{"category":5},{"category":5},{"category":27},{"category":5},{"category":5},{"category":5},{"category":27},{"category":27},{"category":27},{"category":27},{"category":5},{"category":5},{"category":5},{"category":27},{"category":27},{"category":5},{"category":5},{"category":5},{"category":5},{"category":5},{"category":5},{"category":27},{"category":5},{"category":5},{"category":27},{"category":27},{"category":27},{"category":27},{"category":5},{"category":27},{"category":27},{"category":67},"Drones & RC",{"category":69},"DIY Projects",{"category":67},{"category":72},"Photography",{"category":69},{"category":69},{"category":69},{"category":67},{"category":69},{"category":69},{"category":69},{"category":69},{"category":69},{"category":69},{"category":69},{"category":69},{"category":69},{"category":69},{"category":69},{"category":69},{"category":69},{"category":69},{"category":67},{"category":69},{"category":69},{"category":67},{"category":67},{"category":72},{"category":72},{"category":72},{"category":67},{"category":67},{"category":67},{"category":67},{"category":67},{"category":67},{"category":67},{"category":67},{"category":67},{"category":67},{"category":5},{"category":5},{"category":72},{"category":67},{"category":67},{"category":67},{"category":67},{"category":67},{"category":67},{"category":5},{"category":67},{"category":67},{"category":72},{"category":72},{"category":67},{"category":67},{"category":67},{"category":67},{"category":67},{"category":67},{"category":67},{"category":67},{"category":67},{"category":67},{"category":67},{"category":67},{"category":72},{"category":67},{"category":138},"3D Printing - Laser Cutting - CNC",{"category":138},{"category":138},{"category":138},{"category":138},{"category":138},{"category":138},{"category":138},{"category":138},{"category":138},{"category":138},{"category":138},{"category":5},{"category":138},{"category":27},{"category":27},{"category":138},{"category":138},{"category":72},{"category":158},"Photography,3D Printing - Laser Cutting - CNC",{"category":27},{"category":27},{"category":69},{"category":27},{"category":27},{"category":27},{"category":27},{"category":5},{"category":67},{"category":5},{"category":5},{"category":27},{"category":27},{"category":27},{"category":27},{"category":27},{"category":69},{"category":27},{"category":27},{"category":27},{"category":27},{"category":181},"Home Assistant",{"category":181},{"category":72},{"category":27},{"category":27},{"category":72},{"category":138},{"category":5},{"category":72},{"category":72},{"category":138},{"category":27},{"category":181},{"category":181},{"category":72},{"category":72},{"category":72},{"category":72},{"category":72},{"category":72},{"category":72},{"category":72},191,{"id":205,"title":206,"body":207,"category":5,"date":255,"description":213,"embedImage":256,"extension":257,"image":256,"intro":256,"meta":258,"navigation":259,"path":260,"seo":261,"series":256,"sitemap":262,"stem":263,"tags":264,"__hash__":267},"content\u002F2007\u002F11\u002F26\u002Fsetting-outgoing-ip-address-for-domain-in-exim4.md","Setting outgoing IP address for domain in exim4",{"type":208,"value":209,"toc":252},"minimark",[210,214,217,220,226,229,239,246],[211,212,213],"p",{},"Thanks to Dave Evans on the exim4 users list for this.",[211,215,216],{},"I need to set different IP addresses for different outgoing domains.",[211,218,219],{},"Since I only have a few - we took a simple approach",[211,221,222],{},[223,224,225],"code",{},"\u002Fetc\u002Fexim4\u002Finterfaces",[211,227,228],{},"has lines of the form",[230,231,236],"pre",{"className":232,"code":234,"language":235},[233],"language-text","domain: ip\ndomain: ip\ndomain: ip\n","text",[223,237,234],{"__ignoreMap":238},"",[211,240,241,242,245],{},"Then - in ",[223,243,244],{},"\u002Fetc\u002Fexim4\u002Fconf.d\u002Ftransport\u002F30_exim4-config_remote_smtp"," (or wherever your definition of remote_smtp transport is) add the following to the remote_smtp transport:",[230,247,250],{"className":248,"code":249,"language":235},[233],"interface = ${lookup{$sender_address_domain}lsearch{\u002Fetc\u002Fexim4\u002Finterfaces}{$value}{default_ip_in_case_no_match}}\n",[223,251,249],{"__ignoreMap":238},{"title":238,"searchDepth":253,"depth":253,"links":254},2,[],"2007-11-26 17:29:13 +0100",null,"md",{},true,"\u002F2007\u002F11\u002F26\u002Fsetting-outgoing-ip-address-for-domain-in-exim4",{"title":206,"description":213},{"loc":260},"2007\u002F11\u002F26\u002Fsetting-outgoing-ip-address-for-domain-in-exim4",[265,266],"exim4","smtp","OYRztVnkbxPoV02q7woHU-ei0dG3BjseScmAfzWiSRU",1775293015947]