[gentoo-user] sendmail: write permition problem?

2009-11-10 Thread Jarry

Hi,
I can not make my mail server (sendmail) work. First I thought
ssmtp (on sending side) is wrong, so I tried to send mail
manually, using telnet:


obelix.somemydomain.com ~ # telnet mail.somemydomain.com 25
Trying 192.168.1.13...
Connected to mail.somemydomain.com.
Escape character is '^]'.
220 mail.somemydomain.com ESMTP Sendmail 8.14.0/8.14.0; Tue, 10 Nov 2009 
19:57:31 GMT

HELO
501 5.0.0 HELO requires domain address
MAIL FROM:r...@obelix.somemydomain.com
250 2.1.0 r...@obelix.somemydomain.com... Sender ok
RCPT TO:t...@somemydomain.com
250 2.1.5 t...@somemydomain.com... Recipient ok
DATA
354 Enter mail, end with . on a line by itself
Test message.
.
421 4.3.0 collect: Cannot write ./dfnAAJvV8n022567 (bfcommit, uid=0, 
gid=209): Permission denied

Connection closed by foreign host.
obelix.somemydomain.com ~ #


Q1: Why on my HELO sendmail does not respond with 250 OK?

Q2: What does that Cannot write ./dfnAAJvV8n022567 mean?
Maybe some write-permition on server side? But what/where?


mail.somemydomain.com ~ # ls -al /var/spool
total 28
drwxr-xr-x  7 root  root  4096 May 30 17:40 .
drwxr-xr-x 11 root  root  4096 Nov  9 19:30 ..
drwxrwx---  2 smmsp smmsp 4096 Nov 10 19:37 clientmqueue
drwxr-x---  3 root  cron  4096 Apr  7  2009 cron
drwsrws---  2 fcron fcron 4096 Nov 10 20:00 fcron
drwxr-xr-x  2 mail  root  4096 Apr  7  2009 mail
drwxr-xr-x  2 smmsp root  4096 Apr 24  2009 mqueue

mail.somemydomain.com ~ # more /etc/passwd | grep mail
mail:x:8:12:added by portage for mailbase:/var/spool/mail:/sbin/nologin
postmaster:x:14:1000:added by portage for 
mailbase:/var/spool/mail:/sbin/nologin
smmsp:x:209:209:added by portage for 
sendmail:/var/spool/mqueue:/sbin/nologin

mail.somemydomain.com ~ #


I just installed sendmail on mail.somemydomain.com instead
of ssmtp, and did not change a lot, just included all my
server names in /etc/mail/local-host-names. What do I have
to do more???

Jarry

--
___
This mailbox accepts e-mails only from selected mailing-lists!
Everything else is considered to be spam and therefore deleted.



Re: [gentoo-user] sendmail: write permition problem?

2009-11-10 Thread John Lowry


Jarry wrote:
 220 mail.somemydomain.com ESMTP Sendmail 8.14.0/8.14.0; Tue, 10 Nov 2009
 19:57:31 GMT
 HELO
 501 5.0.0 HELO requires domain address

 
 Q1: Why on my HELO sendmail does not respond with 250 OK?

The hostname in the HELO message needs to be included. It does not
unnecessarily need to be correct, but a lot of anti-spam measures will
reject it out of hand if the originating IP address does not have a PTR
address that matches it. So if you are connection from foo.example.com

HELO foo.example.com

 
 Q2: What does that Cannot write ./dfnAAJvV8n022567 mean?
 Maybe some write-permition on server side? But what/where?
 
 
 mail.somemydomain.com ~ # ls -al /var/spool
 total 28
 drwxr-xr-x  7 root  root  4096 May 30 17:40 .
 drwxr-xr-x 11 root  root  4096 Nov  9 19:30 ..
 drwxrwx---  2 smmsp smmsp 4096 Nov 10 19:37 clientmqueue
 drwxr-x---  3 root  cron  4096 Apr  7  2009 cron
 drwsrws---  2 fcron fcron 4096 Nov 10 20:00 fcron
 drwxr-xr-x  2 mail  root  4096 Apr  7  2009 mail
 drwxr-xr-x  2 smmsp root  4096 Apr 24  2009 mqueue
 
 mail.somemydomain.com ~ # more /etc/passwd | grep mail
 mail:x:8:12:added by portage for mailbase:/var/spool/mail:/sbin/nologin
 postmaster:x:14:1000:added by portage for
 mailbase:/var/spool/mail:/sbin/nologin
 smmsp:x:209:209:added by portage for
 sendmail:/var/spool/mqueue:/sbin/nologin
 mail.somemydomain.com ~ #
 
 
 I just installed sendmail on mail.somemydomain.com instead
 of ssmtp, and did not change a lot, just included all my
 server names in /etc/mail/local-host-names. What do I have
 to do more???
 
 Jarry