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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
04-24-2006, 04:08 PM
|
#1
|
|
LQ Newbie
Registered: Jul 2005
Location: Russia
Distribution: choosing...
Posts: 26
Rep:
|
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.
|
|
|
|
04-24-2006, 05:28 PM
|
#2
|
|
Senior Member
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 13.37
Posts: 4,082
Rep: 
|
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.
|
|
|
|
04-24-2006, 05:48 PM
|
#3
|
|
LQ Newbie
Registered: Jul 2005
Location: Russia
Distribution: choosing...
Posts: 26
Original Poster
Rep:
|
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.
|
|
|
|
04-24-2006, 05:53 PM
|
#4
|
|
Moderator
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733
|
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
|
|
|
|
04-24-2006, 05:58 PM
|
#5
|
|
Senior Member
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 13.37
Posts: 4,082
Rep: 
|
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"
|
|
|
|
04-24-2006, 05:58 PM
|
#6
|
|
LQ Newbie
Registered: Jul 2005
Location: Russia
Distribution: choosing...
Posts: 26
Original Poster
Rep:
|
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
|
|
|
|
04-24-2006, 06:02 PM
|
#7
|
|
LQ Newbie
Registered: Jul 2005
Location: Russia
Distribution: choosing...
Posts: 26
Original Poster
Rep:
|
The problem isn't in the file format - I've just checked it twice again.
|
|
|
|
04-24-2006, 06:03 PM
|
#8
|
|
Senior Member
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 13.37
Posts: 4,082
Rep: 
|
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.
|
|
|
|
04-24-2006, 06:07 PM
|
#9
|
|
LQ Newbie
Registered: Jul 2005
Location: Russia
Distribution: choosing...
Posts: 26
Original Poster
Rep:
|
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.
|
|
|
|
04-24-2006, 06:11 PM
|
#10
|
|
Senior Member
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 13.37
Posts: 4,082
Rep: 
|
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"'
|
|
|
|
04-24-2006, 06:11 PM
|
#11
|
|
Senior Member
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 13.37
Posts: 4,082
Rep: 
|
No problem - glad it's working 
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 01:04 PM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|