<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>sendmail Archives - Beshoy Girgis</title>
	<atom:link href="https://beshoy.girgis.us/tag/sendmail/feed/" rel="self" type="application/rss+xml" />
	<link>https://beshoy.girgis.us/tag/sendmail/</link>
	<description>Father, husband, son, nerd.</description>
	<lastBuildDate>Sun, 12 Mar 2017 08:06:20 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	
	<item>
		<title>Sendmail Failing to Send to Local Domain</title>
		<link>https://beshoy.girgis.us/2012/09/sendmail-failing-to-send-to-local-domain/</link>
					<comments>https://beshoy.girgis.us/2012/09/sendmail-failing-to-send-to-local-domain/#comments</comments>
		
		<dc:creator><![CDATA[Beshoy Girgis]]></dc:creator>
		<pubDate>Wed, 19 Sep 2012 21:14:34 +0000</pubDate>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Nerdy]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[sendmail]]></category>
		<category><![CDATA[server]]></category>
		<guid isPermaLink="false">https://beshoy.girgis.us/?p=182</guid>

					<description><![CDATA[I&#8217;ve run into this issue a couple of times now so I&#8217;m assuming others are as well.  Servers set up on Amazon EC2 with default sendmail configuration seem to get the following error in their /var/log/maillog: 12 Sep 19 19:48:26 DOMAIN sendmail[31192]: q8JJmQQV031192: ... User unknown 13 Sep 19 19:48:26 DOMAIN sendmail[31191]: q8JJmQ0D031191: to=orders@DOMAIN.com, ctladdr=DOMAIN.com <a class="read-more" href="https://beshoy.girgis.us/2012/09/sendmail-failing-to-send-to-local-domain/">[&#8230;]</a>]]></description>
										<content:encoded><![CDATA[<p>I&#8217;ve run into this issue a couple of times now so I&#8217;m assuming others are as well.  Servers set up on Amazon EC2 with default sendmail configuration seem to get the following error in their /var/log/maillog:</p>
<pre class="brush: shell; gutter: true; first-line: 1">12 Sep 19 19:48:26 DOMAIN sendmail[31192]: q8JJmQQV031192: ... User unknown
13 Sep 19 19:48:26 DOMAIN sendmail[31191]: q8JJmQ0D031191: to=orders@DOMAIN.com, ctladdr=DOMAIN.com (504/502), delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=30695, relay=[127.0.0.1] [127.0.0.1], dsn=5.1.1, stat=User unknow
14 Sep 19 19:48:26 DOMAIN sendmail[31192]: q8JJmQQV031192: from=, size=695, class=0, nrcpts=0, proto=ESMTP, daemon=MTA, relay=localhost [127.0.0.1]
15 Sep 19 19:48:26 DOMAIN sendmail[31191]: q8JJmQ0D031191: q8JJmQ0E031191: DSN: User unknown
16 Sep 19 19:48:26 DOMAIN sendmail[31192]: q8JJmQQX031192: from=&lt;&gt;, size=2616, class=0, nrcpts=1, msgid=, proto=ESMTP, daemon=MTA, relay=localhost [127.0.0.1]
17 Sep 19 19:48:26 DOMAIN sendmail[31191]: q8JJmQ0E031191: to=DOMAIN.com, delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=31719, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (q8JJmQQX031192 Message accepted for delivery)
20 Sep 19 19:48:26 DOMAIN sendmail[31193]: q8JJmQQX031192: to=, delay=00:00:00, xdelay=00:00:00, mailer=local, pri=32817, dsn=2.0.0, stat=Sent
21 Sep 19 19:49:36 DOMAIN sendmail[31200]: q8JJnaxi031200: from=DOMAIN.com, size=698, class=0, nrcpts=1, msgid=, relay=DOMAIN.com@localhost</pre>
<p>The solution that I have found to work is to modify /etc/mail/sendmail.mc and add the following to the very end:</p>
<pre class="brush: bash; gutter: true; first-line: 1">define(`MAIL_HUB', `DOMAIN.com.')dnl
define(`LOCAL_RELAY', `DOMAIN.com.')dnl</pre>
<p><span style="font-family: Georgia, 'Times New Roman', 'Bitstream Charter', Times, serif; font-size: 13px; line-height: 19px;">Be sure to replace DOMAIN with your local domain.</span></p>
<p><strong>Notice: </strong>The above define code entries start with a ` and end with a &#8216;.  Make sure you copy+paste the above as it is, and modify the domain as it&#8217;s not the standard begin with a ` and end with a `.</p>
<p>After doing so, you&#8217;ll need to install sendmail-cf and run a reconfiguration with the following:</p>
<pre class="brush: bash; gutter: true; first-line: 1">cd /etc/mail/
yum install sendmail-cf
/etc/mail/make</pre>
<p>Lastly, restart sendmail:</p>
<pre class="brush: bash; gutter: true; first-line: 1">service sendmail restart</pre>
]]></content:encoded>
					
					<wfw:commentRss>https://beshoy.girgis.us/2012/09/sendmail-failing-to-send-to-local-domain/feed/</wfw:commentRss>
			<slash:comments>4</slash:comments>
		
		
			</item>
	</channel>
</rss>

<!--
Performance optimized by W3 Total Cache. Learn more: https://www.boldgrid.com/w3-total-cache/

Object Caching 10/71 objects using disk
Page Caching using disk: enhanced 
Lazy Loading (feed)
Minified using disk
Database Caching using disk (Request-wide modification query)

Served from: beshoy.girgis.us @ 2026-06-12 02:45:29 by W3 Total Cache
-->