Yes, I have problem in sending part. I could retrieve mails from other
servers.

grep '^smtp.*smtp' master.cf | grep -v smtpd gives me

smtp unix - - n - - smtp

All the directory you mentioned have world execute permission and file have
world read permission.

I run the strace as mentioned in DEBUG_README, and I found the below  trace
which contain one Permission denied message.

Sep 12 20:13:28 (none) mail.info root: open("/etc/resolv.conf", O_RDONLY) =
12
Sep 12 20:13:28 (none) mail.info root: fstat64(12, {st_mode=S_IFREG|0644,
st_size=52, ...}) = 0
Sep 12 20:13:28 (none) mail.info root: mmap2(NULL, 4096,
PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40019000
Sep 12 20:13:28 (none) mail.info root: read(12, "nameserver
209.183.54.151\nnamese"..., 4096) = 52
Sep 12 20:13:28 (none) mail.info root: read(12, "", 4096) = 0
Sep 12 20:13:28 (none) mail.info root: close(12) = 0
Sep 12 20:13:28 (none) mail.info root: munmap(0x40019000, 4096) = 0
Sep 12 20:13:28 (none) mail.info root: uname({sys="Linux", node="(none)",
...}) = 0
Sep 12 20:13:28 (none) mail.info postfix/smtp[1648]: running:
PATH=/bin:/usr/bin:/usr/local/bin:/usr/X11R6/bin;? (strace -p 1648 2>&1 |
logger -p mail.info) & sleep 5
Sep 12 20:13:28 (none) mail.info root: gettimeofday({1252786408, 521390},
NULL) = 0
Sep 12 20:13:28 (none) mail.info root: SYS_281(0x2, 0x2, 0, 0x1e0, 0x68250)
= -1 EACCES (Permission denied)
Sep 12 20:13:28 (none) mail.info root: gettimeofday({1252786408, 526415},
NULL) = 0
Sep 12 20:13:28 (none) mail.info root: open("/etc/localtime", O_RDONLY) = -1
ENOENT (No such file or directory)
Sep 12 20:13:28 (none) mail.info root: open("/etc/localtime", O_RDONLY) = -1
ENOENT (No such file or directory)

I didn't get reason for that Permission denied. Any idea ??

Girish


On Sat, Sep 12, 2009 at 3:43 PM, Wietse Venema <wie...@porcupine.org> wrote:

> girish br:
> > This is my output for: %grep '^smtp.*smtpd' master.cf
> >
> > smtp inet n - n - - smtpd
>
> I recall that you had a problem SENDING mail, in which case
> the proper line to look for would be the SMTP client:
>
>        grep '^smtp.*smtp' master.cf | grep -v smtpd
>
> In addition, for DNS lookup to work, the Postfix SMTP client needs
> to access /etc/resolv.conf and other config files.
>
> You may want to report the permissions of:
>
> /
> /etc
> /etc/resolv.conf
> /etc/nsswitch.conf
> /lib
> /lib/*nss*
>
> Directories require world execute permission, files require world
> read permission.
>
> If permissions are the problem then it may pay off to run
> the smtp client under strace as described in DEBUG_README.
>
>        Wietse
>

Reply via email to