LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 02-06-2008, 05:31 AM   #1
hua
Member
 
Registered: Oct 2006
Location: Slovak Republic
Distribution: Slackware 14.2, current
Posts: 448

Rep: Reputation: 68
Sendmail on slackware PLAIN login trouble


I am working out an email server on Slackware 12 with sendmail 8.14.
I read about the secure switch in sendmail. I want to use the SMTP TLS support.
Something is wrong with it. I created the needed certificates and the certificate negotiation is successful. (I use the stunnel for it)
The problem is that the login does not work. When I request EHELO options there are authentication methodes CRAM-MD5 and DIGEST-MD5 but not PLAIN and LOGIN. There is also STARTTLS.
I cannot use AUTH MD5-s because the clients want to use OUTLOOK (EXPRESS) and it does not support MD5.

To be true I did not understand the MD5 aut methodes. I recnfigure the sendmail many times. I defined the AUTH-TRUSTED-METHOD `PLAIN LOGIN CRAM-MD5 DIGEST-MD5' but still no PLAIN LOGIN.

I think that the LOGIN authentication should be used after STARTTLS. But if it is not working without TLS it wount work with TLS. True?

I tried with webmail too (squirrelmail). It seems to work with it, the mail status get the state sent. But the mail arival is problematic.

How can I make PLAIN and LOGIN work?
 
Old 02-06-2008, 09:51 PM   #2
gilead
Senior Member
 
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,138

Rep: Reputation: 168Reputation: 168
Have you had a look at the Sendmail SMTP AUTH Howto on this site? It should cover what you need to do. It's quite detailed and I've used it successfully here.
 
Old 02-11-2008, 04:18 AM   #3
hua
Member
 
Registered: Oct 2006
Location: Slovak Republic
Distribution: Slackware 14.2, current
Posts: 448

Original Poster
Rep: Reputation: 68
Thank you. I read lot of SMTP AUTH Howtos but this is the best.
Now seems everithing good but when I try snding relayed mail I get error

553 5.3.5 host.server.com. config error: mail loops back to me (MX problem?)
554 5.3.5 <root@host.server.com>... Local configuration error

I found lot of howtos for this too but none of these did resove my problm.
I checked and I have my host name in local-host-names.

echo '$=w' | sendmail -bt -d0.4:

Compiled with: DNSMAP LOG MAP_REGEX MATCHGECOS MILTER MIME7TO8 MIME8TO7
NAMED_BIND NETINET NETUNIX NEWB NIS PIPELINING SASLv2 SCANF SOCKETMAP STATTLS TCPWRAPPERS USERDB XDEBUG

Canonical name: host.mydomain.com
UUCP nodename: host
a.k.a.: host
a.k.a.: [192.168.1.2]
a.k.a.: [127.0.0.1]

SYSTEM IDENTIY (after readcf)
(short domain name) $w = host
(canonical domain name) $j = host.mydomain.com
(subdomain name) $m = mydomain.com
(node name) $k = host

ADDRESS TEST MODE (ruleset 3 NOT automaticallty invoked)
Enter <ruleset> <address>
> [192.168.1.2]
Cw<mydomain.com><mail.mydomain.com><host.mydomain.com>
localhost.localdomain
localhost
[127.0.0.1]
host
host.mydomain.com

Where is host it is the name of the sever without domain host(mydomain.com).

Maybe this should be fully qualified domain-name??

Help Pls.

Last edited by hua; 02-11-2008 at 04:20 AM.
 
Old 02-11-2008, 05:51 PM   #4
gilead
Senior Member
 
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,138

Rep: Reputation: 168Reputation: 168
Do host.server.com and host.mydomain.com have the same IP address or the same MX record in DNS?

If not are you trying to relay mail through your ISP with SMART_HOST? In that case, the smart host entry should be your ISP's mail server, not yours.
 
Old 02-12-2008, 07:25 AM   #5
hua
Member
 
Registered: Oct 2006
Location: Slovak Republic
Distribution: Slackware 14.2, current
Posts: 448

Original Poster
Rep: Reputation: 68
I didn't really catch what smart-host does. It seems that in our Country (Slovakia) the ISP does not block the port 25.
I don't know if I need the smart-host entry at all.

I have a SUSE server in other city and I can directly connect to port 25 on the postfix server.
I try to reconfigure the sendmail.cf without smart-host function.

May cause the loopback error the smart-host. (when it is no need to use it)
How can I find out if I need to use smarthost ??
How is related the smarthost with the mailertable??
 
  


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
"Scrolling up" in a plain login prompt (no X) ddvlad Fedora 4 09-28-2006 02:55 PM
Differences between SASL PLAIN and LOGIN mechanism? Chowroc Linux - Networking 1 02-04-2005 11:46 PM
Trouble with Sendmail DNice Linux - Distributions 1 11-05-2004 10:47 AM
sendmail trouble msound Linux - Software 20 04-09-2004 08:48 PM
sendmail trouble FirstTimeUser Linux - Newbie 1 07-13-2003 12:22 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 12:38 PM.

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