<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
<br>
<br>
Alexander Dalloz wrote:
<blockquote cite="mid1139890297.5856.102.camel@serendipity.dogma.lan"
 type="cite">
  <pre wrap="">Am Di, den 14.02.2006 schrieb Lovell Mcilwain um 4:50:

  </pre>
  <blockquote type="cite">
    <blockquote type="cite">
      <pre wrap="">How do you try to generate the .cf files? Simply run

make -C /etc/mail

(just to see if there are any errors/complaints)

  
      </pre>
    </blockquote>
    <pre wrap="">Output:
make: Entering directory `/etc/mail'
make: Leaving directory `/etc/mail'

sendmail.cf did have content in it this time.
    </pre>
    <blockquote type="cite">
      <pre wrap="">then

service sendmail restart

  
      </pre>
    </blockquote>
    <pre wrap="">I restarted the service:

Shutting down sendmail:                                    [  OK  ]
Shutting down sm-client:                                   [FAILED]
    </pre>
  </blockquote>
  <pre wrap=""><!---->
The submission agent wasn't running.

  </pre>
  <blockquote type="cite">
    <pre wrap="">Starting sendmail:                                         [  OK  ]
Starting sm-client:                                        [  OK  ]

I didn't get any complaints.
    </pre>
  </blockquote>
  <pre wrap=""><!---->
  </pre>
  <blockquote type="cite">
    <blockquote type="cite">
      <blockquote type="cite">
        <blockquote type="cite">
          <pre wrap="">[user@FC4FW share]$  m4 /etc/mail/sendmail.mc /etc/mail/sendmail.cf
          </pre>
        </blockquote>
      </blockquote>
    </blockquote>
  </blockquote>
  <pre wrap=""><!---->
  </pre>
  <blockquote type="cite">
    <blockquote type="cite">
      <pre wrap="">Not the correct command syntax.
      </pre>
    </blockquote>
  </blockquote>
  <pre wrap=""><!---->
You omitted the ">".

  </pre>
  <blockquote type="cite">
    <pre wrap="">This was the syntax I was told to use to append changes to my .cf file.  
If this isn't right what do I use? I had no clue about the previous 
command you gave me to generate the sendmail.cf file correctly.
    </pre>
  </blockquote>
  <pre wrap=""><!---->
m4 /etc/mail/sendmail.mc > /etc/mail/sendmail.cf

Better use the make command (which makes use of the Makefile inside
/etc/mail) and catches more than just the .mc file changes, too the
hashed map files.

Alexander
  

  </pre>
</blockquote>
So after your help with getting me started initially.  I found another
FAQ (<a class="moz-txt-link-freetext" href="http://www.cri.ch/linux/docs/sk0009.html">http://www.cri.ch/linux/docs/sk0009.html</a>) that gave me a step by
step of how to set up smtp relay for sendmail.<br>
<br>
The additional steps I took were as follows:<br>
<br>
Added the following to the sendmail.mc file:<br>
<code class="screen"><b> define(`SMART_HOST', `your-smtp-server')<br>
FEATURE(authinfo)dnl</b><br>
<b>define(`RELAY_MAILER_ARGS', `TCP $h 587')<br>
define(`ESMTP_MAILER_ARGS', `TCP $h 587')</b><br>
Updated the sendmail.cf file<br>
</code><code class="screen"><b> m4 /etc/mail/sendmail.mc >
/etc/mail/sendmail.cf</b><br>
<br>
Defined my account info in the AuthInfo file:<br>
</code><code class="screen"><b> AuthInfo:<your-smtp-server>
"U:<your-smtp-user>" "P:<your-smtp-password>" "M:DIGEST-MD5"</b><br>
Im not sure if the "M:" is correct since the server that I would be
logging into would be over TLS port 587 and usually just does a login
challenge and nothing more.  I don't know if I just need to specify
login.<br>
<br>
Updated the authinfo.db file<br>
</code><code class="screen"></code><b><code class="screen"> makemap
hash /etc/mail/authinfo < /etc/mail/authinfo</code></b><br>
<code class="screen"><br>
Created a userdb for header rewriting<br>
</code><b><code class="screen">user:mailname <a class="moz-txt-link-abbreviated" href="mailto:foo@bar.com">foo@bar.com</a></code></b><br>
Created the userdb.db file<br>
<b><code class="screen"> makemap btree /etc/mail/userdb.db <
/etc/mail/userdb</code></b><br>
<br>
Sendmail, Tested, and got the following output:<br>
<b>[root@FC4FW mail]# /usr/sbin/sendmail -bv root@localhost<br>
root@localhost... deliverable: mailer local, user root<br>
<br>
[root@FC4FW mail]# /usr/sbin/sendmail -bv <a class="moz-txt-link-abbreviated" href="mailto:lovell.mcilwain@gmail.com">lovell.mcilwain@gmail.com</a><br>
<a class="moz-txt-link-abbreviated" href="mailto:lovell.mcilwain@gmail.com">lovell.mcilwain@gmail.com</a>... deliverable: mailer relay, host
foo.barr.com, user <a class="moz-txt-link-abbreviated" href="mailto:user@foo.com">user@foo.com</a><br>
</b><br>
This would leave me to belive that this was successful from what I see
in the output. But then I take a look at /var/log/maillog and find the
following:<br>
<b><br>
</b>Feb 14 18:37:04 localhost sendmail[12272]: k1EEWlrh009414:
to=<a class="moz-txt-link-rfc2396E" href="mailto:lovell.mcilwain@gmail.com"><lovell.mcilwain@gmail.com></a>, <b>ctladdr=<a class="moz-txt-link-rfc2396E" href="mailto:root@localhost.localdomain"><root@localhost.localdomain></a></b>
(0/0), delay=09:04:17, xdelay=00:00:01, mailer=relay, pri=945174,
relay=foo.bar.com [11.222.333.444], dsn=5.0.0, <b>stat=Service
unavailabl</b>e<br>
Feb 14 18:37:04 localhost sendmail[12272]: k1EEWlrh009414:
k1ENb3vE012272: <b>sender notify: Service unavailable<br>
<br>
</b>I thought the tutorial has gotten me closer to where I wanted to be
but can anyone else tell me what else Im missing to get this to work
properly?  The things I noticed off the top of my head were:<br>
<br>
1.The authentication method is wrong but I can't see any documentation
that states that the entry "M:login" will work.<br>
2. It still looks like the return mail is showing as
<a class="moz-txt-link-abbreviated" href="mailto:root@localhost.localdomain">root@localhost.localdomain</a> when I thought the usersdb.db file was
supposed to take care of this.  Did I need to restart sendmail or re
run the m4 command to update that there is now a usersdb.db in
existance?<br>
<br>
3. Could this be an issue of not specifying the port number correctly
for sendmail to talk with the relay server properly?<br>
<br>
I know this mail was a bit lengthy but any help is appreciated :)<br>
</body>
</html>