<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<atom:link href="http://dev1galaxy.org/extern.php?action=feed&amp;tid=2224&amp;type=rss" rel="self" type="application/rss+xml" />
		<title><![CDATA[Dev1 Galaxy Forum / No mail out: hostname inconsistent]]></title>
		<link>http://dev1galaxy.org/viewtopic.php?id=2224</link>
		<description><![CDATA[The most recent posts in No mail out: hostname inconsistent.]]></description>
		<lastBuildDate>Tue, 31 Jul 2018 04:08:39 +0000</lastBuildDate>
		<generator>FluxBB</generator>
		<item>
			<title><![CDATA[Re: No mail out: hostname inconsistent]]></title>
			<link>http://dev1galaxy.org/viewtopic.php?pid=11010#p11010</link>
			<description><![CDATA[<p>I quite possibly don&#039;t understand how you get your hostname&#160; or mailname ....<br />The empty &lt;&gt; <br />(return / from / reply ) all not useful or this mail is going nowhere bat signal..</p><p>Is correct. </p><p>aside:<br /><em>A MTA (mail server) should refuse to accept such a thing ... so you get the mail bounced back.</em></p><p> Here are some ?reasonable?&#160; guesses and hints</p><p>1.&#160; setting the formal system mail name in <br />&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160;</p><div class="codebox"><pre><code> /etc/mailname</code></pre></div><p>guess:&#160; <br /><em>$HOSTNAME.frontier.com </em></p><p> (you will know the real name)</p><p>2. set mutts (from) email variable</p><p>e<em>xport EMAIL=you@yours.on.net</em></p><p>see the mutt config stuff later / last in this message.</p><p>More Waffle::<br />An email _requires_&#160; a&#160; complete header called&#160; From:<br />&#160; <br /> Either mutt is configured to use some&#160; You@DOMAIN.foo <br />(per MUTT mail account???? )</p><p> Or it&#160; looks it up in /etc/mailname <br />or<br />It constructs one from your login and&#160; hostname </p><p>or </p><p><em>It hands that problem to mail or sendmail <br /></em></p><p>A quick look at <strong>man mutt </strong>seems to indicate that it can use &quot;sendmail&quot; or &quot;xmail&quot; <br /> which would hint that it has a reasonable chance of honoring the /etc/mailname file.</p><p>Next ::<br />Gather some data and hints</p><p>Test your system sends ::</p><div class="codebox"><pre><code>$ cat  /etc/devuan_version  | mail -v  -s &quot;A test Mail&quot;  haines@localhost haines-external@the.real.internet.net</code></pre></div><p>which is assuming you have &quot;/usr/bin/mail&quot; onboard.</p><p><em>(( cat whatever Text file you feel comfortable ending up at your ISP admins account <img src="http://dev1galaxy.org/img/smilies/smile.png" width="15" height="15" alt="smile" /> .))</em></p><p>Test your &quot;sendmail&quot;&#160; &#160;(which will probably be exim4 or postfix providing the sendmail command as an alias)</p><div class="codebox"><pre><code> cat /etc/hosts | /usr/sbin/sendmail ${USER}@localhost </code></pre></div><p>see also:<br />((Every sane Mail Transfer Agent reads this:))</p><div class="codebox"><pre><code>/etc/aliases </code></pre></div><p>This NEXT is where you can set different&#160; &quot;home mail domains&quot; per user.<br />(it may be exim4 specific ?)</p><p>/etc/email-addresses <br /> If its there it has instructions in it ... but </p><div class="codebox"><pre><code> 
#This file contains email addresses to use for outgoing mail. Any local
# part not in here will be qualified by the system domain as normal.
#
# It should contain lines of the form:
#
#user: someone@isp.com
#otheruser: someoneelse@anotherisp.com

root: you@some.place</code></pre></div><p>Finally I would suggest that there would be a way to tell mutt your mail domain for external mail (per mail account) .</p><p> I found this is the <strong>muttrc manual</strong></p><div class="codebox"><pre><code> from
              Type: e-mail address
              Default: &quot;&quot;

              When set, this variable contains a default from address.  It can
              be  overridden using &quot;my_hdr&quot; (including from a &quot;send-hook&quot;) and
              $reverse_name.  This variable is ignored if $use_from is unset.

              This setting defaults to the contents of the  environment  vari-
              able $EMAIL.</code></pre></div><p>So I tried the easy way <img src="http://dev1galaxy.org/img/smilies/smile.png" width="15" height="15" alt="smile" /></p><div class="codebox"><pre><code>$export EMAIL=anotheremail@another.place.net
$mutt
press m 
          compose mail
press y
(wait a moment or three)

check new mail 

press q</code></pre></div><p>I rarely use mutt anymore.</p><p><strong><span class="bbu">Though it is still an <em>excellent </em>Mail User Agent </span>.</strong></p><p>Hopefully this was some help and not too confusing.</p>]]></description>
			<author><![CDATA[dummy@example.com (PeteGozz)]]></author>
			<pubDate>Tue, 31 Jul 2018 04:08:39 +0000</pubDate>
			<guid>http://dev1galaxy.org/viewtopic.php?pid=11010#p11010</guid>
		</item>
		<item>
			<title><![CDATA[No mail out: hostname inconsistent]]></title>
			<link>http://dev1galaxy.org/viewtopic.php?pid=10665#p10665</link>
			<description><![CDATA[<p>I put ascii on new hardware, but can&#039;t get mutt to send mail. Mail sent out has &quot;Return-path: &lt;&gt;&quot; in header. </p><p>The <span class="bbc">/etc/hosts, /etc/resolv.conf</span>,&#160; <span class="bbc">/etc/hostname</span>, and emacs4 configuration are the same as they were under Devuan jessie except for the change in hostname.</p><p>When I do <span class="bbc">$ hostname --fqdn</span> on both machines I get a proper fully qualified domain name. But when I do <span class="bbc">$ hostname -A</span>, I get simply&#160; the hostname of current machine without provider&#039;s domain, but on old machine it returned hostname.frontier.com .</p>]]></description>
			<author><![CDATA[dummy@example.com (Haines)]]></author>
			<pubDate>Sun, 08 Jul 2018 19:12:09 +0000</pubDate>
			<guid>http://dev1galaxy.org/viewtopic.php?pid=10665#p10665</guid>
		</item>
	</channel>
</rss>
