On Fri, Feb 10, 2012 at 8:17 PM, Wietse Venema <wie...@porcupine.org> wrote:

> What happens when you execute /usr/sbin/mailwrapper by hand?
> (it should complain about no mapping in /etc/mail/mailer.conf).

[jorge@satyr ~]$ /usr/sbin/mailwrapper -oem -oi jorge < /etc/motd
WARNING: RunAsUser for MSP ignored, check group ids (egid=1002, want=25)
collect: Cannot write ./dfq1B2W31I012233 (bfcommit, uid=1002,
gid=1002): Permission denied
queueup: cannot create queue file ./qfq1B2W31I012233, euid=1002,
fd=-1, fp=0x0: Permission denied

> What happens when you execute /usr/sbin/sendmail by hand?

[jorge@satyr ~]$ /usr/sbin/sendmail -oem -oi jorge < /etc/motd
WARNING: RunAsUser for MSP ignored, check group ids (egid=1002, want=25)
collect: Cannot write ./dfq1B2YS8x013588 (bfcommit, uid=1002,
gid=1002): Permission denied
queueup: cannot create queue file ./qfq1B2YS8x013588, euid=1002,
fd=-1, fp=0x0: Permission denied

> What happens when you execute /usr/local/sbin/sendmail by hand?

Now here's something different: the command did not pint an error
message; it returned me to the prompt:

[jorge@satyr ~]$ /usr/local/sbin/sendmail -oem -oi jorge < /etc/motd
[jorge@satyr ~]$

But the mail wasn't delivered.  Here's what maillog recorded:

Feb 10 21:34:28 satyr sendmail[13588]: q1B2YS8x013588: SYSERR(jorge):
queueup: cannot create queue file ./qfq1B2YS8x013588, euid=1002,
fd=-1, fp=0x0: Permission denied
Feb 10 21:35:28 satyr postfix/pickup[87965]: E5530108E42: uid=1002 from=<jorge>
Feb 10 21:35:28 satyr postfix/cleanup[14662]: E5530108E42:
message-id=<20120211023528.e5530108...@satyr.jorge.cc>
Feb 10 21:35:29 satyr postfix/qmgr[41317]: E5530108E42:
from=<jo...@jorge.cc>, size=1413, nrcpt=1 (queue active)
Feb 10 21:35:29 satyr postfix/smtp[14668]: E5530108E42:
to=<jo...@jorge.cc>, orig_to=<jorge>, relay=none, delay=0.17,
delays=0.15/0.02/0/0, dsn=5.4.6, status=bounced (mail for jorge.cc
loops back to myself)
Feb 10 21:35:29 satyr postfix/cleanup[14662]: 88C02108E43:
message-id=<20120211023529.88c02108...@satyr.jorge.cc>
Feb 10 21:35:29 satyr postfix/bounce[14670]: E5530108E42: sender
non-delivery notification: 88C02108E43
Feb 10 21:35:29 satyr postfix/qmgr[41317]: 88C02108E43: from=<>,
size=3242, nrcpt=1 (queue active)
Feb 10 21:35:29 satyr postfix/qmgr[41317]: E5530108E42: removed
Feb 10 21:35:29 satyr postfix/smtp[14668]: 88C02108E43:
to=<jo...@jorge.cc>, relay=none, delay=0.17, delays=0.13/0.03/0/0,
dsn=5.4.6, status=bounced (mail for jorge.cc loops back to myself)
Feb 10 21:35:29 satyr postfix/qmgr[41317]: 88C02108E43: removed

Here are the contents of /var/spool after a fresh install of postfix:

drwxr-xr-x   2 root  wheel    512 Feb 10 19:20 clientmqueue
drwxrwxr-x   2 uucp  dialer   512 Feb 10 17:05 lock
drwxr-xr-x   2 root  daemon   512 Jan 31 15:12 lpd
drwxr-xr-x   2 root  daemon   512 Feb  8 06:59 mqueue
drwx------   2 root  daemon   512 Jan 31 15:12 opielocks
drwxr-xr-x   3 root  daemon   512 Jan 31 15:12 output
drwxr-xr-x  16 root  postfix  512 Feb  8 07:57 postfix

Note that clientmqueue is no longer owned by the sendmail MSP user and
group.  Is this one of the results of the post-install scripts?

Thanks very much for your help.

                 Jorge

-- 
Jorge Luis González <jlg.in...@gmail.com>

Reply via email to