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
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.