HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (http://www.howtoforge.com/forums/index.php)
-   Server Operation (http://www.howtoforge.com/forums/forumdisplay.php?f=5)
-   -   sendmail 8.13.6 on FC2 server with SASL/STARTTLS (http://www.howtoforge.com/forums/showthread.php?t=3421)

Anne H 30th March 2006 17:49

sendmail 8.13.6 on FC2 server with SASL/STARTTLS
 
Hi,

We installed sendmail 8.13.6, but authorization using a username and
password from Thunderbird is not working as before.

I don't have time to upgrade the server to FC4 or 5 right now. I'd just
like to configure sendmail 8.13.6 so that it worked as before.

The latest sendmail built for FC is 8.12.11, so I can't use that because
of the security problem.

The instructions with sendmail were used:
sh Build
sh Build -c -f `pwd`/devtools/Site/site.config.m4

to include STARTTLS, etc.

The previous configuration files (sendmail.mc) from 8.12.11 were
used.

The only thing I can think of is that the sendmail binary
produced is a dynamic library, whereas the one distributed
with FC2 is a shared executable. I've built sendmail shared, but it
fails with a segmentation fault.

Does anyone know the ENVDEFS that should be used to build
a shared binary for FC?

Thanks in advance. Any advice appreciated.

Anne Hammond

falko 31st March 2006 11:41

What's in the mail log when you try to send a mail?
What's the output of
Code:

telnet localhost 25
and then
Code:

ehlo localhost
?
What's the output of
Code:

netstat -tap
?

Anne H 1st April 2006 02:19

[root@geta sendmail-8.13.6]# telnet localhost 25
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
220 geta.colorado.edu ESMTP Sendmail 8.13.6/8.13.6; Fri, 31 Mar 2006 17:13:08 -0700
ehlo localhost
250-geta.colorado.edu Hello geta.colorado.edu [127.0.0.1], pleased to meet you
250-ENHANCEDSTATUSCODES
250-PIPELINING
250-8BITMIME
250-SIZE
250-DSN
250-ETRN
250-AUTH DIGEST-MD5 CRAM-MD5
250-STARTTLS
250-DELIVERBY
250 HELP

so STARTTLS is starting. Perhaps it has to do with AUTH not listing PLAIN
or LOGIN?

Not sure what you are looking for with netstat. It is really long so
I just cut out the part about imaps and pop3s.


[root@geta sendmail-8.13.6]# netstat -tap
Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 *:imaps *:* LISTEN 1612/dovecot
tcp 0 0 *:pop3s *:* LISTEN 1612/dovecot

--------------
[root@geta sendmail-8.13.6]# file /etc/sendmail8.12.11/sendmail
/etc/sendmail8.12.11/sendmail: setgid ELF 32-bit LSB shared object, Intel 80386, version 1 (SYSV), stripped
[root@geta sendmail-8.13.6]# file /etc/sendmail8.13.6/sendmail
/etc/sendmail8.13.6/sendmail: setgid ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), for GNU/Linux 2.2.5, dynamically linked (uses shared libs), not stripped

If I build sendmail with
APPENDDEF(`confLDOPTS', `-shared')

I get a segmentation fault. It doesn't start at all.

Anne H 1st April 2006 02:39

[root@geta sendmail-8.13.6]# file obj.Linux.2.6.5-1.358smp.i686/sendmail/sendmail
obj.Linux.2.6.5-1.358smp.i686/sendmail/sendmail: ELF 32-bit LSB shared object, Intel 80386, version 1 (SYSV), not stripped
[root@geta sendmail-8.13.6]# ./obj.Linux.2.6.5-1.358smp.i686/sendmail/sendmail -d0.1
Segmentation fault

falko 1st April 2006 11:58

Quote:

Originally Posted by Anne H
so STARTTLS is starting. Perhaps it has to do with AUTH not listing PLAIN
or LOGIN?

Yes, some email clients such as Outlook Express need LOGIN.

Quote:

Originally Posted by Anne H
Not sure what you are looking for with netstat. It is really long so
I just cut out the part about imaps and pop3s.


[root@geta sendmail-8.13.6]# netstat -tap
Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 *:imaps *:* LISTEN 1612/dovecot
tcp 0 0 *:pop3s *:* LISTEN 1612/dovecot

I wanted to see if sendmail is running, but you didn't post that part (or sendmail is really not running).

Anne H 4th April 2006 21:19

tcp 0 0 *:smtp *:* LISTEN
8866/

Yes, sendmail is running.


All times are GMT +2. The time now is 18:58.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.