LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 03-03-2004, 06:12 PM   #1
scardog
LQ Newbie
 
Registered: Feb 2004
Distribution: Red Hat 8.0
Posts: 10

Rep: Reputation: 0
Question sendmail.cf sasl APPENDDEF problems


I am hoping someone can help me with this. I have been all over README files, Sendmail 3rd Edition, and Sendmail.org pages and I still can't figure out what I am doing wrong.

Basically I am trying to add SASL support to my configuration file so that off-site users can send mail using Outlook. (They are getting "connection unexpectedly ended by server" messages. ) In researching for virtual hosting I have come across several recommendations for adding SASL support to require connection authentication to thwart spammers from using my site as a relay station, but I can't get it to be added in my configuration.

I have created a filed called mechanic-mail.mc and included the following lines:
  • APPENDDEF(`confINCDIRS', `-I/usr/include')dnl
    APPENDDEF(`confLIBDIRS', `-L/usr/local/lib')dnl
    APPENDDEF(`conf_sendmail_ENVDEF', `-DSASL')dnl
    APPENDDEF(`conf_sendmail_LIBS', `-lsasl')dnl
Also included are:
  • define(`confAUTH_OPTONS', `A')dnl
    TRUST_AUTH_MECH(`DIGEST-MD5 CRAM-MD5 LOGIN PLAIN')dnl
    define(`authinfo') dnl Newly defined userdatabase for sasl. -SEC
I have tried building my config file with various combinations of the APPENDDEF lines, copying the mechanic-mail.cf to sendmail.cf, restarting sendmail, and then run obj.*/sendmail/sendmail -bs -Am, as suggested in Sendmail 3rd Edition, to check if the auth lines worked. I keep getting similar errors that read like this:
  • 554 5.0.0 /etc/mail/sendmail.cf: line 40: unknown configuration line "APPENDDEF(confINCDIRS, -I/usr/include)APPENDDEF(confLIBDIRS, -L/usr/local/lib)APPENDDEF(conf_sendmail_ENVDEF, -DSASL)APPENDDEF(conf_sendmail_LIBS, -lsasl)"
    Warning: Option: AuthMechanisms requires SASL support (-DSASL)
    Warning: Option: AuthOptions requires SASL support (-DSASL)
I have checked with the debugging tool (-d0.10) to see if Sendmail was compiled wth sasl and it comes up with SASL in the "compiled with" section. Nowhere could I find the actual names of the include and library files though I did find sasl.h in the directory mentioned above and sasl.o in .../sendmail/sendmail-8.12.8/obj.Linux.2.4.2-2.i586/sendmail/ (which I then copied to /usr/local/lib for obvious reasons. )

If I leave out the APPENDEF lines I get no errors but when I check the configuration connecting with the -bs -Am command options the 250-AUTH DIGEST-MD5 CRAM-MD5 line does NOT come up in the session. (and of course my off-site users cannot send mail.) There is no mention in any of the places I've read about where in the .mc file APPENDDEF lines should be placed (I assumed in the middle ie after OSTYPE(`linux') and before MAILER(smtp)) It seems like sendmail just doesn't like APPENDDEF commands, but that just can't be, can it?

Needless to say I have unhappy users and am under the gun any help would be most appreciated.

Thanks,
Scardog
 
Old 03-04-2004, 06:00 AM   #2
scardog
LQ Newbie
 
Registered: Feb 2004
Distribution: Red Hat 8.0
Posts: 10

Original Poster
Rep: Reputation: 0
Sorry, I had to bump.
 
Old 03-04-2004, 01:21 PM   #3
scardog
LQ Newbie
 
Registered: Feb 2004
Distribution: Red Hat 8.0
Posts: 10

Original Poster
Rep: Reputation: 0
Sorry, I must bump again.
 
Old 05-25-2004, 03:19 PM   #4
tsm_sf
LQ Newbie
 
Registered: May 2004
Posts: 1

Rep: Reputation: 0
Having the same problems, but...

One thing I did find out is that the authinfo setup is SOLELY used to authenticate against a remote smtp server. You'd only use that if you needed to connect and authenticate yourself to, say, your ISP's mail server if you were using sendmail as a client at home.

The APPENDDEF lines are used when _COMPILING_ sendmail, not in rebuilding your m4 file. Your installation might already be set, so check it by using this line as root:

Code:
sendmail -d0.1 -bv root | grep SASL
If you see SASL or SASLv2 then you're good to go AND know which version of the passwd commands and database you need to use. (One thing to keep in mind is that sasl and sasl2 are two totally different apps, and the commands and databases are not compatible. Not sure why both are installed by default... kind of annoying.)

If you don't see SASL in there, you need to recompile sendmail. Thankfully I didn't have to do that. Check out the man page for saslpasswd2, and be sure to hit Google for sasl, sasldb etc...



Anyhow, I can't seem to get sendmail to recognize the sasl database... but that's a topic for another post...

-Nathan
 
  


Reply


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
Slack 10.2 and sendmail with sasl problem mago Slackware 1 11-03-2005 11:49 AM
Does the Slackware Sendmail support SASL authentication? gargamel Slackware 7 07-30-2004 07:06 AM
SMTP AUTH, SASL and Sendmail not getting along prozach Linux - Software 0 12-02-2003 06:10 PM
Sendmail compiled with SASL gmartin Slackware 0 11-24-2003 09:41 PM
question about sasl for sendmail lzyking Linux - Software 1 12-04-2002 07:28 PM


All times are GMT -5. The time now is 02:47 AM.

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