Re: Setting up sendmail part 2

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Shane Presley wrote:
Thanks everyone for the great help with my problem yesterday!  You
were of course correct.  I have modified sendmail.mc to use
DaemonPortOptions=Port=smtp, Name=MTA and my server now accepts
connections on port 25!

So if I telnet from our internal networks exchange server to my fedora
box port 25, I get an connection from sendmail.

But I'm still having some strange problems.  When I try to send mail
to my fedora box, I never seem to receive it.  I have tried sending
mail to root@xxxxxxxxxxxxxxxxxxxxxxx or bb@xxxxxxxxxxxxxxxxxxxxxx
(which is an account on the server).

Does your Fedora box call itself mylinubox.mydomain.com? If not, you'll need to tell it to accept mail for that domain, by adding a line:


mylinubox.mydomain.com

to /etc/mail/local-host-names and then restart sendmail.

If I run tcpdump I see our exchange server connect to deliver it.  And
it appears to?  Here's a small sample:

08:35:18.666064 IP (tos 0x0, ttl 127, id 20657, offset 0, flags [DF],
proto 6, length: 52) exchange.mydomain.com.smtp > mylinuxbox.46818: F
[tcp sum ok] 130:130(0) ack 7 win 64234 <nop,nop,timestamp 26319854
149656531>
08:35:18.666424 IP (tos 0x0, ttl  64, id 44455, offset 0, flags [DF],
proto 6, length: 52) mylinuxbox.46818 > exchange.mydomain.com.smtp: F
[tcp sum ok] 7:7(0) ack 131 win 5840 <nop,nop,timestamp 149656533
26319854>
08:35:18.666719 IP (tos 0x0, ttl 127, id 20658, offset 0, flags [DF],
proto 6, length: 52) exchange.mydomain.com.smtp > mylinuxbox.46818: .
[tcp sum ok] 131:131(0) ack 8 win 64234 <nop,nop,timestamp 26319854
149656533>

But I never see anything in /var/spool/mail/ for root or bb.

Looking in logs, nothing in /var/log/message.  /var/log/maillog shows
entries for when I send mail out from my box (that works).  But no
entries are made when my exchange server tries to deliver mail to me.

Try increasing the log level. Add:

define(`confLOG_LEVEL',`13')dnl

to your sendmail.mc file, rebuild sendmail.cf and restart sendmail.

See what happens when you manually send mail to your box using telnet (>>> is things you type, <<< are responses from sendmail):

$ telnet mylinubox.mydomain.com smtp
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
<<< 220 mylinubox.mydomain.com ESMTP Sendmail 8.13.1/8.13.1; Wed, 27 Oct 2004 13:49:45 +0100
>>> HELO test
<<< 250 mylinubox.mydomain.com Hello exchange.mydomain.com [127.0.0.1], pleased to meet you
>>> MAIL FROM:<me@xxxxxxxxxxxx>
<<< 250 2.1.0 <me@xxxxxxxxxxxx>... Sender ok
>>> RCPT TO:<root@xxxxxxxxxxxxxxxxxxxxxxx>
<<< 250 2.1.5 <root@xxxxxxxxxxxxxxxxxxxxxxx>... Recipient ok
>>> DATA
<<< 354 Enter mail, end with "." on a line by itself
>>> To: <root@xxxxxxxxxxxxxxxxxxxxxxx>
>>> From: <me@xxxxxxxxxxxx>
>>> Subject: Test Message
>>>
>>> Test
>>> .
<<< 250 2.0.0 i9RCnjsf025836 Message accepted for delivery
>>> QUIT
<<< 221 2.0.0 mylinubox.mydomain.com closing connection
Connection closed by foreign host.


Paul.


[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux