LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 04-24-2006, 04:08 PM   #1
VAS
LQ Newbie
 
Registered: Jul 2005
Location: Russia
Distribution: choosing...
Posts: 26

Rep: Reputation: 15
Using sendmail as a client with AUTH


My ISP provides a mail service, but mail server requires authentification for sending mail, and I need to configure mail server to send mail because I want to use mutt as mail reader. I found an article how to do that, but "makemap" says:
Code:
smmurf:/etc/mail/auth# makemap hash client-info < client-info
makemap: error opening type hash map client-info: Permission denied
smmurf:/etc/mail/auth#
Does anyone know how to fix it, or may be someone can give an advice what mail server wouldn't cause such problems with authentification, and give a link to manual how to configure it.
Thanks.
 
Old 04-24-2006, 05:28 PM   #2
gilead
Senior Member
 
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,123

Rep: Reputation: 162Reputation: 162
It could be that you don't have permission to open the client-info file that contains the list of client info. It could also be that you don't have permission to create the client-info.db in the directory where you ran the command. Or, it may be that the info in the client-info file wasn't in a format suitable for a hash map.

Have you had a look at the SMTP AUTH HOWTO here at http://www.linuxquestions.org/questi...d.php?t=224543? I've used it to build a couple of systems and it works well.
 
Old 04-24-2006, 05:48 PM   #3
VAS
LQ Newbie
 
Registered: Jul 2005
Location: Russia
Distribution: choosing...
Posts: 26

Original Poster
Rep: Reputation: 15
Well, I don't think the problem is in permissions, because as you see in my bash prompt I tried to do it as root. So may be the problem is in file format, it contains such a string:
AuthInfo:mail.myISP.net "U:my_login_name" "I:my_email_address" "P:my_password"

I've just tried to use file format that you give in your HOWTO, but the error still exists. So I have no idea how can it be fixed :?

Last edited by VAS; 04-24-2006 at 05:55 PM.
 
Old 04-24-2006, 05:53 PM   #4
jschiwal
Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 654Reputation: 654Reputation: 654Reputation: 654Reputation: 654Reputation: 654
From the manpage:

Quote:
makemap [-C file] [-N] [-c cachesize] [-d] [-D commentchar] [-e] [-f] [-l] [-o] [-r] [-s] [-t delim] [-u] [-v] maptype mapnam
DESCRIPTION
Makemap creates the database maps used by the keyed map lookups in sendmail(8). It reads input from the standard input and outputs them to the indicated mapname.
You are taking the input from the exact same file that you are using as an output.
Do you maybe want:
smmurf:/etc/mail/auth# makemap hash client-info.db < client-info
 
Old 04-24-2006, 05:58 PM   #5
gilead
Senior Member
 
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,123

Rep: Reputation: 162Reputation: 162
My authinfo file has the following format:
Code:
AuthInfo:mail.isp.domain "U:username@isp.domain" "P:apassword" "M:PLAIN"
AuthInfo: "U:username@isp.domain" "P:apassword" "M:PLAIN"
 
Old 04-24-2006, 05:58 PM   #6
VAS
LQ Newbie
 
Registered: Jul 2005
Location: Russia
Distribution: choosing...
Posts: 26

Original Poster
Rep: Reputation: 15
I've payed attention on the filenames yet, and tried to give different names, but nothing changed
Code:
smmurf:/etc/mail/auth# makemap hash client-info.db < client-info
makemap: error opening type hash map client-info.db: Permission denied
 
Old 04-24-2006, 06:02 PM   #7
VAS
LQ Newbie
 
Registered: Jul 2005
Location: Russia
Distribution: choosing...
Posts: 26

Original Poster
Rep: Reputation: 15
The problem isn't in the file format - I've just checked it twice again.
 
Old 04-24-2006, 06:03 PM   #8
gilead
Senior Member
 
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,123

Rep: Reputation: 162Reputation: 162
It sounds like you don't have write permissions for the directory (regardless of being root). What is the output of ls -ld /etc/mail/auth please? I get the following on my system:
Code:
/tmp/auth# /usr/sbin/makemap -v hash authinfo < authinfo
makemap: error opening type hash map authinfo: Permission denied

Last edited by gilead; 04-24-2006 at 06:05 PM.
 
Old 04-24-2006, 06:07 PM   #9
VAS
LQ Newbie
 
Registered: Jul 2005
Location: Russia
Distribution: choosing...
Posts: 26

Original Poster
Rep: Reputation: 15
smmurf:/etc/mail# ls -ld auth/
drw------- 2 root smmsp 80 2006-04-25 02:00 auth/

Yes, it was a problem, thanks.
I'm sorry for such a simple question and that I wasn't attentive

Last edited by VAS; 04-24-2006 at 06:10 PM.
 
Old 04-24-2006, 06:11 PM   #10
gilead
Senior Member
 
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,123

Rep: Reputation: 162Reputation: 162
It's permissions then - here's mine before and after altering permissions:
Code:
/tmp/auth# ls -ld /tmp/auth
drw------- 2 root root 4096 2006-04-25 09:01 /tmp/auth
root@fender:/tmp/auth# /usr/sbin/makemap -v hash authinfo < authinfo
makemap: error opening type hash map authinfo: Permission denied
root@fender:/tmp/auth# chmod -c 0700 /tmp/auth
mode of `/tmp/auth' changed to 0700 (rwx------)
root@fender:/tmp/auth# /usr/sbin/makemap -v hash authinfo < authinfo
key=`authinfo:mail.isp.domain', val=`"U:username@isp.domain" "P:apassword" "M:PLAIN"'
key=`authinfo:', val=`"U:username@isp.domain" "P:apassword" "M:PLAIN"'
 
Old 04-24-2006, 06:11 PM   #11
gilead
Senior Member
 
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,123

Rep: Reputation: 162Reputation: 162
No problem - glad it's working
 
  


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
another question on sendmail auth. sorry siweb Linux - Software 0 06-26-2004 08:39 AM
sendmail as a smtp auth client pezzer55 Linux - General 0 03-29-2004 08:47 AM
SMTP Auth for sendmail wolftechmn Linux - Networking 4 11-27-2003 01:17 PM
Sendmail / SMTP Auth cleaner416 Linux - Networking 3 10-06-2003 10:40 AM
sendmail auth mechanism oberon Linux - Software 0 05-20-2003 08:39 AM


All times are GMT -5. The time now is 08:00 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