Latest LQ Deal: Latest LQ Deals
Go Back > Forums > Linux Forums > Linux - General > LinuxAnswers Discussion
User Name
LinuxAnswers Discussion This forum is to discuss articles posted to LinuxAnswers.


  Search this Thread
Old 09-08-2004, 08:38 PM   #1
Registered: Jul 2004
Location: Silicon Valley, CA
Distribution: Slackware
Posts: 171

Rep: Reputation: 38

This thread is to discuss the article titled: Sendmail SMTP AUTH Howto
Old 12-10-2004, 02:53 PM   #2
LQ Newbie
Registered: Oct 2003
Posts: 3

Rep: Reputation: 0
This HOWTO is excellent, but it has one problem which drove me crazy for about 4 days.

Use this line to ./configure SASL2 instead. Notice that my --with-plugindir is NOT under /usr/local/lib, but under /usr/lib.

./configure --prefix=/usr --enable-anon --enable-plain --enable-login --disable-krb4 --with-mysql \
--with-saslauthd=/var/state/saslauthd --with-openssl --with-plugindir=/usr/lib/sasl2 \
--enable-cram --enable-digest --enable-otp

Greetings to all, and congratulations --and thank you-- for the great HOWTO.
Old 01-22-2005, 10:28 PM   #3
Registered: Jan 2005
Posts: 232

Rep: Reputation: 36
i registered to these forums just so i can say thank you for the excellent article.

one thing you might want to fix is to explain where these files came from:
installpkg sendmail-sasl-8.13.0-i486-2sub.tgz
installpkg sendmail-cf-8.13.1-noarch-1.tgz
i think you renamed them.

great job.
Old 03-17-2005, 11:11 AM   #4
LQ Newbie
Registered: Oct 2003
Posts: 3

Rep: Reputation: 0
I have a question for all of you out there.

Regarding certificates, take a look at this part:

We are nearly done, but first we must create an SSL certificate so that STARTTLS will function. Run the following commands to first create a Certificate Authority (CA)

mkdir /etc/mail/certs
cd /etc/mail/certs
openssl req -new -x509 -keyout cakey.pem -out cacert.pem -days 1865
When prompted for the Common Name be sure to enter the FQDN of your webserver i.e.
Now that we have our own CA lets go ahead and make a certificate and sign it.

openssl req -nodes -new -x509 -keyout sendmail.pem -out sendmail.pem -days 1460
Isn't the sendmail.pem certificate NOT supposed to be self-signed, but signed by the Certificate Authority?
Old 03-17-2005, 07:57 PM   #5
Registered: Jan 2005
Posts: 232

Rep: Reputation: 36
the only thing you gain if your certificate is signed by a ca is that people don't have to click 'accept certificate' when connecting.

you normally have an option to accept the certificate permanently
Old 03-25-2005, 02:45 AM   #6
LQ Newbie
Registered: Mar 2005
Posts: 1

Rep: Reputation: 0
wont get it to work

i get this error msg..what can i do wrong?

saslauthd[4724] :main : could not chdir to: /var/state/saslauthd
saslauthd[4724] :main : chdir: No such file or directory
saslauthd[4724] :main : Check to make sure the directory exists and is
saslauthd[4724] :main : writeable by the user this process runs as.

...only to mkdir..
but i still cant relay...only if i put for example in /etc/mail/access then i can post to my hotmail account......
I have this in my access

localhost RELAY
192.168.1 RELAY

Last edited by serial69; 03-25-2005 at 03:12 AM.
Old 09-14-2005, 03:14 PM   #7
LQ Newbie
Registered: Sep 2005
Posts: 1

Rep: Reputation: 0
Cyrus' make ended on a segmentation fault. My server was set up by another employee and packages have been installed in fits and starts, as needed.

Since trying to compile the sasl libs also segfaulted I'm hoping that it might be due to some compiler version incompatibility.

I'm about to install the gcc gdb packages in the mad hope that it will make the problem go away. But....

Anyway, here's the error. It's the same for versions .17 through .21

gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../include I../lib -I../sasldb -I../include -I/usr/include/mysql -Wall -W -g -O2 -MT sasldb_init.lo -MD -MP -MF .deps/sasldb_init.Tpo -c sasldb_init.c -fPIC -DPIC -o sasldb_init.lo
if /bin/sh ../libtool --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../include -I../lib -I../sasldb -I../include -I/usr/include/mysql -Wall -W -g -O2 -MT plugin_common.lo -MD -MP -MF ".deps/plugin_common.Tpo" \
-c -o plugin_common.lo `test -f 'plugin_common.c' || echo './'`plugin_common.c; \
then mv ".deps/plugin_common.Tpo" ".deps/plugin_common.Plo"; \
else rm -f ".deps/plugin_common.Tpo"; exit 1; \
gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../include -I../lib -I../sasldb -I../include -I/usr/include/mysql -Wall -W -g -O2 -MT plugin_common.lo -MD -MP -MF .deps/plugin_common.Tpo -c plugin_common.c -fPIC -DPIC -o plugin_common.lo
plugin_common.c: In function `_plug_make_prompts':
plugin_common.c:606: internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:> for instructions.
make[2]: *** [plugin_common.lo] Error 1
make[2]: Leaving directory `/usr/local/src/cyrus-sasl-2.1.19/plugins'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/local/src/cyrus-sasl-2.1.19'
make: *** [all] Error 2
Old 11-12-2006, 02:12 PM   #8
Registered: Nov 2006
Location: Slovenia
Distribution: Slackware 13.37
Posts: 511

Rep: Reputation: 37
i followed this howto now 4 times
and i still have the same problem
when i start sendmail
there are no errors reported
no error in /var/log/maillog
but sendmail just doesn't run
if i try to send mail it says SMTP server down in pine
if i try to send mail from "outside" it says SMTP server refusing connection in Thunderbird
port 25 is opened with iptables, also port 465
tried both, sending without SSL and with SSL
but it doesn't work
when i run nmap localhost there is no port 25 or 465
this is my nmap:
21/tcp   open  ftp
22/tcp   open  ssh
53/tcp   open  domain
80/tcp   open  http
110/tcp  open  pop3
113/tcp  open  auth
i removed sendmail, cyrus-sasl, even m4(don't know why i did this)
and reinstalled everything with installpkg and this howto
but there were no results

even here:
/usr/sbin/sendmail -d0.1 -bv root

In the Compiled With line make sure you see STARTTLS and SASLv2. If you do, go ahead and CTRL+C out, if you don't see both
please re-read this howto more carefully and recompile Sendmail and/or Cyrus SASLv2.
i see no compiled with
this is what happens:
root@x:/etc/rc.d# /usr/sbin/sendmail -d0.1 -bv root
i use slackware 10.2 and i used a newer version of sendmail 8.13.8
maybe something has changed since this is a little newer version that the one it was used in this howto?!

i tried geting sendmail to work for the last 6 hours
i just have no other ideas what to do
can you please help me?
Old 03-12-2007, 02:40 PM   #9
LQ Newbie
Registered: Nov 2004
Location: Bangladesh
Distribution: nothing
Posts: 1

Rep: Reputation: 0
sendmail relay problem solve how to

I am using redhat 9 and using sendmail. my local smtp address relay do'nt not work.

The message could not be sent because one of the recipients was rejected by the server. The rejected e-mail address was ''. Subject 'test mail', Account: '', Server: '', Protocol: SMTP, Server Response: '550 5.1.1 <>... User unknown', Port: 25, Secure(SSL): No, Server Error: 550, Error Number: 0x800CCC79
Old 09-17-2007, 07:42 PM   #10
LQ Newbie
Registered: Sep 2007
Posts: 1

Rep: Reputation: 0
This article is not seen as completed
It ends with "if you are on DSL you probably know what I".
Then what? Where is the whole story?
Old 09-17-2007, 07:49 PM   #11
Registered: Jan 2005
Posts: 232

Rep: Reputation: 36
I know what you'r looking at and I've no idea what it is, or how to get to the actual article from there. I have it bookmerked though:

By the way the article is wrong where it says 'you can skip down to the Client-Side SMTP AUTH + SMART_HOST section', you cannot skip the part about Sendmail.conf, as I documented here:


sendmail, slackware

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Sendmail SMTP AUTH Howto SiegeX Slackware 169 01-12-2015 06:43 AM
Sendmail, SMTP Auth, and FreeBSD oxleyk *BSD 8 07-07-2005 03:43 PM
Sendmail SMART_HOST + SMTP AUTH Howto SiegeX Slackware 15 09-06-2004 01:42 AM
SMTP Auth for sendmail wolftechmn Linux - Networking 4 11-27-2003 01:17 PM
Sendmail / SMTP Auth cleaner416 Linux - Networking 3 10-06-2003 10:40 AM > Forums > Linux Forums > Linux - General > LinuxAnswers Discussion

All times are GMT -5. The time now is 12:07 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration