Networking Forums

Networking Forums > Computer Networking > Linux Networking > sendmail probs on Mandrake

Reply
Thread Tools Display Modes

sendmail probs on Mandrake

 
 
Allan Bruce
Guest
Posts: n/a

 
      06-02-2004, 09:08 PM
I have installed sendmail from source on my Mandrake9.1 box. I had a few
probs getting it to build, but fixed them fine. Sendmail runs, but i get
two errors now:

1) when trying to send a mail, I get the following message:
"can not chdir(/var/spool/clientmqueue/): Permission denied Program mode
requires special privileges, e.g., root or TrustedUser."

2) when receiving mail, I get:
"erg.abdn.ac.uk... Unrecognized host name erg.abdn.ac.uk."
I test this by telneting to sendmail, and typing
"mail from (E-Mail Removed)"

does anybody know how to fix either of these?
Cheers
Allan


 
Reply With Quote
 
 
 
 
Bill Unruh
Guest
Posts: n/a

 
      06-02-2004, 09:16 PM
"Allan Bruce" <(E-Mail Removed)> writes:

]I have installed sendmail from source on my Mandrake9.1 box. I had a few
]probs getting it to build, but fixed them fine. Sendmail runs, but i get
]two errors now:

]1) when trying to send a mail, I get the following message:
]"can not chdir(/var/spool/clientmqueue/): Permission denied Program mode
]requires special privileges, e.g., root or TrustedUser."

Well what are the permissions of the directory?
You need to have sendmail run suid root.


]2) when receiving mail, I get:
]"erg.abdn.ac.uk... Unrecognized host name erg.abdn.ac.uk."
]I test this by telneting to sendmail, and typing
]"mail from (E-Mail Removed)"

It is having trouble resolving the name. If youdo
ping erg.abdn.ac.uk
on that machine do you get an answer?


]does anybody know how to fix either of these?
]Cheers
]Allan


 
Reply With Quote
 
Allan Bruce
Guest
Posts: n/a

 
      06-02-2004, 09:40 PM

"Bill Unruh" <(E-Mail Removed)> wrote in message
news:c9lg3u$6n0$(E-Mail Removed)...
> "Allan Bruce" <(E-Mail Removed)> writes:
>
> ]I have installed sendmail from source on my Mandrake9.1 box. I had a few
> ]probs getting it to build, but fixed them fine. Sendmail runs, but i get
> ]two errors now:
>
> ]1) when trying to send a mail, I get the following message:
> ]"can not chdir(/var/spool/clientmqueue/): Permission denied Program mode
> ]requires special privileges, e.g., root or TrustedUser."
>
> Well what are the permissions of the directory?
> You need to have sendmail run suid root.


The ownership is set to mail:mail and the permissions are 770

>
>
> ]2) when receiving mail, I get:
> ]"erg.abdn.ac.uk... Unrecognized host name erg.abdn.ac.uk."
> ]I test this by telneting to sendmail, and typing
> ]"mail from (E-Mail Removed)"
>
> It is having trouble resolving the name. If youdo
> ping erg.abdn.ac.uk
> on that machine do you get an answer?
>


There is no problems with the host, ping works for ipv4 and ipv6
Allan


 
Reply With Quote
 
Allan Bruce
Guest
Posts: n/a

 
      06-03-2004, 11:09 AM

"Bill Unruh" <(E-Mail Removed)> wrote in message
news:c9lg3u$6n0$(E-Mail Removed)...
> "Allan Bruce" <(E-Mail Removed)> writes:
>
> ]I have installed sendmail from source on my Mandrake9.1 box. I had a few
> ]probs getting it to build, but fixed them fine. Sendmail runs, but i get
> ]two errors now:
>
> ]1) when trying to send a mail, I get the following message:
> ]"can not chdir(/var/spool/clientmqueue/): Permission denied Program mode
> ]requires special privileges, e.g., root or TrustedUser."
>
> Well what are the permissions of the directory?
> You need to have sendmail run suid root.
>
>
> ]2) when receiving mail, I get:
> ]"erg.abdn.ac.uk... Unrecognized host name erg.abdn.ac.uk."
> ]I test this by telneting to sendmail, and typing
> ]"mail from (E-Mail Removed)"
>
> It is having trouble resolving the name. If youdo
> ping erg.abdn.ac.uk
> on that machine do you get an answer?
>
>
> ]does anybody know how to fix either of these?
> ]Cheers
> ]Allan
>
>


I got it working - the new version of sendmial requires permissions set for
group smmsp
Allan


 
Reply With Quote
 
ynotssor
Guest
Posts: n/a

 
      06-03-2004, 05:57 PM
"Allan Bruce" <(E-Mail Removed)> wrote in message
news:c9lfjl$glj$(E-Mail Removed)

> 1) when trying to send a mail, I get the following message:
> "can not chdir(/var/spool/clientmqueue/): Permission denied Program
> mode requires special privileges, e.g., root or TrustedUser."


From ${source}/sendmail/SECURITY:

sendmail must be a set-group-ID (default group: smmsp, recommended
gid: 25) program to allow for queueing mail in a group-writable
directory. Two .cf files are required: sendmail.cf for the daemon
and submit.cf for the submission program. The following permissions
should be used:

-r-xr-sr-x root smmsp ... /PATH/TO/sendmail
drwxrwx--- smmsp smmsp ... /var/spool/clientmqueue
drwx------ root wheel ... /var/spool/mqueue
-r--r--r-- root wheel ... /etc/mail/sendmail.cf
-r--r--r-- root wheel ... /etc/mail/submit.cf

[Notice: On some OS "wheel" is not used but "bin" or "root" instead,
however, this is not important here.]

That is, the owner of sendmail is root, the group is smmsp, and
the binary is set-group-ID. The client mail queue is owned by
smmsp with group smmsp and is group writable. The client mail
queue directory must be writable by smmsp, but it must not be
accessible for others. That is, do not use world read or execute
permissions. ...

> 2) when receiving mail, I get:
> "erg.abdn.ac.uk... Unrecognized host name erg.abdn.ac.uk."
> I test this by telneting to sendmail, and typing
> "mail from (E-Mail Removed)"


What you typed is not an SMTP dialog.


tony

--
use hotmail for email replies

 
Reply With Quote
 
ynotssor
Guest
Posts: n/a

 
      06-03-2004, 06:00 PM
"Bill Unruh" <(E-Mail Removed)> wrote in message
news:c9lg3u$6n0$(E-Mail Removed)

> Well what are the permissions of the directory?
> You need to have sendmail run suid root.


That is no longer true since 8.12.x. The sendmail binary must be sgid smmsp.


tony

--
use hotmail for email replies

 
Reply With Quote
 
 
 
Reply

Thread Tools
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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
802.11g under Mandrake 10.1... ropeyarn@gmail.com Wireless Internet 3 03-25-2005 12:20 AM
Mandrake 7 Elliot Rosewater Linux Networking 5 11-08-2004 04:22 PM
Mandrake & ADSL Peppino - Bo Linux Networking 2 09-17-2004 10:41 PM
BB log in probs William Broadband 6 07-12-2004 11:03 AM
dns probs Gareth not NLL or anybody else. Broadband 4 01-21-2004 05:49 AM



1 2 3 4 5 6 7 8 9 10 11