LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   Need some help trying to get SMTP Authentication to work with Sendmail (https://www.linuxquestions.org/questions/slackware-14/need-some-help-trying-to-get-smtp-authentication-to-work-with-sendmail-239687/)

blk96gt 10-07-2004 01:37 AM

Need some help trying to get SMTP Authentication to work with Sendmail
 
I finally got sendmail configured to let me send and recieve mail to and from user@mydomain.com on my server. I'm also able to check my mail using a program like Kmail, but I'm not able to send(from Kmail, I can send fine from the console). I did some searching and the problem seems to be that I don't have SMTP authentication enabled on my server. I found on the sendmail site that I needed to install Cyrus SASL, which I did. After that it says to compile sendmail with the correct options. This is the part that's confusing me.

There are two documents that I've been trying to use, this one http://www.sendmail.org/~ca/email/auth.html and this one http://www.sendmail.org/compiling.html#BuildingSendmail. It says to add these two lines to my site.config.m4 file(which doesn't exist):
Code:

APPENDDEF(`confENVDEF', `-DSASL')
APPENDDEF(`conf_sendmail_LIBS', `-lsasl')

I have tried adding them to my cf.m4 file and then running
Code:

m4 /usr/share/sendmail/cf/m4/cf.m4 config.mc > /etc/mail/sendmail.cf
and then restarting Sendmail, but I get an unknown configuration line error for those two lines. I have also tried adding those lines to my config.mc file, but I still get the same error.

I guess my question is, do I need to actually recompile Sendmail from source to get this option to work? Do those commands maybe need to go in a certain spot in the file? Any help would be appreciated. Thanks.


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