Fedora Linux Support Community & Resources Center
Sections ›› Home | Forums | Guidelines | Forum Help | Fedora FAQ | Fedora News 

Go Back   FedoraForum.org > Fedora Support > Servers

Servers The place to discuss any Fedora server problems you may have.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 2004-08-08, 05:11 PM CDT
xyklopz Offline
Registered User
 
Join Date: May 2004
Posts: 8
Sendmail + SMTP + SSL

I'm working on a Fedora Core 2 box and I'm trying to get my sendmail configured for my SMTP relay. I would like the SMTP relay to only allow SMTP connections over SSL and would like sendmail to accept authenticated SMTP SSL logins. I have dovecot up and running for my IMAP dameon and I have successfully setup the SSL certs with dovecot and now once I get this issue with sendmail resolved, my email system will be intact.

Please anyone out there have any suggestions?

Note: I've googled for hours and have followed what most people have done already but my sendmail is still allowing non secure + non auth connections from both inside and outside the lan. I want it to only accept secure + auth connections, which it currently does. However, I want it to reject non secure +/- no auth connections.
Reply With Quote
  #2  
Old 2004-08-08, 05:35 PM CDT
imdeemvp's Avatar
imdeemvp Offline
Registered User
 
Join Date: Feb 2004
Age: 41
Posts: 8,250
did you try www.linuxquestions.org ??

i really have little experience with server and network but you may find a thread there that could help you or just wait for one of the moderators to respond you in a better way.....i believe crackers has experience in servers...
__________________
HELP with JAVA, MP3's, Wireless, Repo's, YUM, Partitions, System Monitors, Nvidia, ATI drivers, LIMEWIRE PRO & MORE!.

Easiest and most friendly desktop ever is PCLinuxOS! Includes all this apps. Just try it.

"The greater the struggle THE greater the achievment."

Do you know HIM?

If you are an idiot click here. NThis will test you linux skills

Last edited by imdeemvp; 2004-08-08 at 05:38 PM CDT.
Reply With Quote
  #3  
Old 2004-08-08, 05:38 PM CDT
xyklopz Offline
Registered User
 
Join Date: May 2004
Posts: 8
I've tried everywhere! I'm making progress now, I have it requiring atleast 128 bit encryption and it is validating the SMTP user/pass against the box passwd/shadow which is fine, however the SMTP is still allowing anonymous relay even though it's over a SSL.
Reply With Quote
  #4  
Old 2004-08-08, 05:39 PM CDT
imdeemvp's Avatar
imdeemvp Offline
Registered User
 
Join Date: Feb 2004
Age: 41
Posts: 8,250
well thats' good
__________________
HELP with JAVA, MP3's, Wireless, Repo's, YUM, Partitions, System Monitors, Nvidia, ATI drivers, LIMEWIRE PRO & MORE!.

Easiest and most friendly desktop ever is PCLinuxOS! Includes all this apps. Just try it.

"The greater the struggle THE greater the achievment."

Do you know HIM?

If you are an idiot click here. NThis will test you linux skills
Reply With Quote
  #5  
Old 2004-08-08, 06:18 PM CDT
xyklopz Offline
Registered User
 
Join Date: May 2004
Posts: 8
Okay this is what I have based off of what I've seen from other sites running sendmail

/etc/mail/sendmail.mc:
Code:
...
define(`confAUTH_OPTIONS', `A p')dnl
TRUST_AUTH_MECH(`LOGIN PLAIN')dnl
define(`confAUTH_MECHANISMS', `LOGIN PLAIN')dnl
...
define(`confCACERT_PATH',`/etc/mail/certs')dnl
define(`confCACERT',`/etc/mail/certs/ca-bundle.crt')dnl
define(`localCERT', `/etc/mail/certs/our-cert.pem')dnl
define(`confCLIENT_CERT',`localCERT')dnl
define(`confCLIENT_KEY',`localCERT')dnl
define(`confSERVER_CERT',`localCERT')dnl
define(`confSERVER_KEY',`localCERT')dnl
...
FEATURE(`access_db',`hash -T<TMPF> -o /etc/mail/access.db')dnl
/etc/mail/access
Code:
...
mydomain.com RELAY
TLS_Clt:mydomain.com ENCR:128
TLS_Srv:mydomain.com ENCR:128
TLS_Rcpt:mydomain.com ENCR:128
Note:
-If I add VERIFY to ENCR, whenever I try my username/password (from the UNIX system) it denies me giving me error 403 not authenticated even though I'm sending the correct username/password.
-If I add PERM to ENCR, it has no affect compared to leaving it out.


/usr/lib/sasl2/Sendmail.conf
Code:
pwcheck_method:saslauthd
My SMTP connection is forcing the 128-bit enc properly however it is not forcing the user to authenticate. It will still allow anonymous access which I want to prevent but I do want authorized users to be able to access the sendmail smtp server from outside the network if they have the proper privelages (aka username in /etc/passwd and password in /etc/shadow). PLEASE HELP

Last edited by xyklopz; 2004-08-08 at 06:32 PM CDT.
Reply With Quote
  #6  
Old 2004-08-09, 02:38 PM CDT
xyklopz Offline
Registered User
 
Join Date: May 2004
Posts: 8
Problem Solved.

After researching more and talking to a local guru I discovered my problem. My /etc/mail/access file was incorrect and was allowing mydomain.com relay without AUTH. Therefore, removing that along with all the localhost entries and making my access file to strictly enforce ENC and let salsauthd to do the AUTH.

Thus my resulting access file:
Code:
TLS_Clt:     ENCR:128
TLS_Srv:     ENCR:128
TLS_Rcpt:    ENCR:128
and also note the following sendmail.mc change:

Code:
define(`confAUTH_OPTIONS', `A p y')dnl
Hope this helps someone! This made me server require AUTH for every SMTP connection and it forces atleast 128-bit encryption. :-)
Reply With Quote
  #7  
Old 2004-09-03, 12:13 AM CDT
pejcao Offline
Registered User
 
Join Date: Jan 2004
Posts: 4
with that magic u did, can you relay from yer server (where sendmail is running, 127.0.0.1)? I mean, without autenticating yerself?

Also, can you relay mail to yahoo and alike? Do the comon web mail servers like yahoo, hotmail, etc, allow encrypted connections? on self signed certs?

Last edited by pejcao; 2004-09-03 at 01:17 PM CDT.
Reply With Quote
  #8  
Old 2004-11-19, 11:32 AM CST
STEVE555 Online
Registered User
 
Join Date: Nov 2004
Posts: 64
Hi to all,my problem is this,I have a hotmail e-mail account and I can access it with Windows XP Professional O.S.I have Fedora Core 3 dual booting with it.I have been trying to access my hotmail account via Kmail and Sendmail.The servers I have been using after a search on the web are smtp.email.msn.com and pop3.email.msn.com .But when I use Kmail to access my e-mals,a dialouge box comes up and says that it could not connect to pop3.email.msn.com.

can anybody help me with this one?

Steve
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Sendmail SMTP_Auth or Pop-Before-SMTP? Shawnm_14 Servers 0 2008-06-17 02:28 PM CDT
Sendmail - Outbound SMTP gschwick General Support 1 2006-09-22 06:04 AM CDT
sendmail & ISP's smtp ashleysnix Servers 2 2005-09-05 06:36 PM CDT
How to set my sendmail to use it for SMTP sending only alphonsebrown Servers 4 2005-06-28 01:46 PM CDT
Sendmail SMTP Problem Frederic Herman gmane.linux.redhat.fedora.general 2 2004-06-14 05:01 AM CDT

Automatic Translations (Powered by Powered by Google):
Afrikaans Albanian Arabic Belarusian Bulgarian Catalan Chinese Croatian Czech Danish Dutch English Estonian Filipino Finnish French Galician German Greek Hebrew Hindi Hungarian Icelandic Indonesian Italian Japanese Korean Latvian Lithuanian Macedonian Malay Maltese Norwegian Persian Polish Portuguese Romanian Russian Serbian Slovak Slovenian Spanish Swahili Swedish Taiwanese Thai Turkish Ukrainian Vietnamese Yiddish

All times are GMT -7. The time now is 02:54 AM CST.

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
Hosting provided by ThePlanet



All trademarks, and forum posts in this site are property of their respective owner(s).

FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact | Founding Members
Designed By Ewdison Then | Powered by vBulletin ©2000-2009, Jelsoft Enterprises Ltd.
FedoraForum is Powered by Open Source Projects and Products
Translated to other languages supported by vB Enterprise Translator