LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

Reply
 
Search this Thread
Old 10-13-2004, 05:57 AM   #1
harish_neo
LQ Newbie
 
Registered: Sep 2004
Location: Chennai, TN, India
Posts: 15

Rep: Reputation: 0
Fedora Core 2 Mail server ssl and smtp configuration steps


Hi,

I have Fedora Core 2 Linux Version installed in my computer. I have already setup to work as a mail server using sendmail and Dovecot. Kernel version: 2.6.5-1.358.

Now Iam trying to setup SSL and SMTP authentication in my computer. But iam not able to do it.

The following is wht i tried:
===================

1) I edited the /etc/mail/sendmail.mc file and uncommented the foll lines:

define(`confAUTH_OPTIONS', `A p y')dnl

TRUST_AUTH_MECH(`EXTERNAL DIGEST-MD5 CRAM-MD5 LOGIN PLAIN')dnl

define(`confAUTH_MECHANISMS', `EXTERNAL GSSAPI DIGEST-MD5 CRAM- MD5 LOGIN PLAIN')

2) I created a new ceritificate for sendmail using the command,

make sendmail.pem

3) I also updated the sendmail.mc file with

define(`CERT_DIR',`/usr/share/ssl/certs')
define(`confCACERT_PATH',`/usr/share/ssl/certs')
define(`confCACERT',`/usr/share/ssl/certs/ca-bundle.crt')
define(`confSERVER_CERT',`/usr/share/ssl/certs/sendmail.pem')
define(`confSERVER_KEY',`/usr/share/ssl/certs/sendmail.pem')
define(`confCLIENT_CERT',`CERT_DIR/cert.pem')
define(`confCLIENT_KEY',`CERT_DIR/key.pem')

4) I restarted sendmail, saslauthd and xinetd services.

And when I try to send a mail using Outlook express ( Winxp m/c), it says 454 TLS Not available due to Temporary reasons.

5) I also checked /etc/pam.d/smtp file, following is the contents of the file.

#%PAM-1.0
auth required pam_stack.so service=system-auth
account required pam_stack.so service=system-auth


Can anyone help me

-Hari
 
Old 10-13-2004, 08:16 AM   #2
scowles
Member
 
Registered: Sep 2004
Location: Texas, USA
Distribution: Fedora
Posts: 620

Rep: Reputation: 31
Everything you have done looks correct. Unfortunately, I have never been able to get OE to work with TLS. If you want to test your current configuration, try using an MUA like Thunderbird on your XP box.
 
Old 10-13-2004, 08:40 AM   #3
harish_neo
LQ Newbie
 
Registered: Sep 2004
Location: Chennai, TN, India
Posts: 15

Original Poster
Rep: Reputation: 0
Hi,

Even I tried with mozilla Thunderbird, it didnt work. I am pretty positive, the way I configured my server is where the problem is. I am just trying to configure ssl in my Fedora core 2 but no luck. But why would it say TLS related error. I was having Redhat 9 before and Outlook Express was just working fine. Once again Thanks for your help. Any suggestions :-)
 
Old 10-13-2004, 09:48 AM   #4
scowles
Member
 
Registered: Sep 2004
Location: Texas, USA
Distribution: Fedora
Posts: 620

Rep: Reputation: 31
I don't know if I can add much more to what you have already posted.

The only step I had to add to what you posted was to add the user to the sasl passwd database using saslpasswd2 -c. This step confused me because I have sendmail configured to use saslauthd which is configured to use pam as the auth mechanism. Pam in turn should authenticate using its rules as you outlined in your post. Strange! But Thunderbird works correctly at this end. I get the initial warning about the CERT, but once I accept it - I get the password prompt and the email is sent.

If I could suggest, start by getting SMTP auth working first without TLS. At least you can verify the auth mechanisms are working properly before moving on to the TLS integration.
 
Old 10-13-2004, 10:46 AM   #5
harish_neo
LQ Newbie
 
Registered: Sep 2004
Location: Chennai, TN, India
Posts: 15

Original Poster
Rep: Reputation: 0
Sure,

Let me try that :-)
 
  


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
SMTP & POP3 server on fedora core 3? fatum112 Linux - Networking 0 11-23-2005 05:19 AM
Mail server using Fedora Core 4 victorlid Linux - Newbie 6 09-22-2005 03:54 PM
How to setup mail server on fedora core 3.. ravindra_patel Fedora 2 06-21-2005 02:24 PM
fedora core 2 / apache / dns / mail server rioguia Linux - Security 2 01-18-2005 02:01 PM
what are those steps to setting up my network on fedora core 2? krt47 Linux - Networking 10 08-12-2004 02:17 PM


All times are GMT -5. The time now is 05:37 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration