Bug #1519

postfix manifest file wrong

Added by Predrag Zečević over 2 years ago. Updated over 2 years ago.

Status:Resolved Start date:2011-09-15
Priority:Normal Due date:2011-09-17
Assignee:Ken Mays % Done:

100%

Category:-
Target version:- Estimated time:1.00 hour
Difficulty:Bite-size Tags:postfix

Description

Hi,
Yesterday was big day: 151a was released (BTW i am still using dev-il repository, which also was updated yesterday).

I have moved from staticdev.uk.openindiana.org:10003 to official SFE IPS repos...

Then decided to test postfix (used to used SVR4 pkg CNDpostfix until today).
Installation went OK, but start ended into maintenance:

svcs -xv
svc:/site/postfix:default (Postfix Mailserver)
State: maintenance since September 15, 2011 09:01:47 AM CEST
Reason: Start method failed repeatedly, last exited with status 127.
See: http://sun.com/msg/SMF-8000-KS
See: man -M /usr/share/man -s 1 postfix
See: /var/svc/log/site-postfix:default.log
Impact: This service is not running.

$ tail -5 /var/svc/log/site-postfix:default.log
/sbin/sh1: exec: /etc/init.d/postfix: not found
[ Sep 15 09:01:47 Method "start" exited with status 127. ]
[ Sep 15 09:01:47 Executing start method ("/etc/init.d/postfix start"). ]
/sbin/sh1: exec: /etc/init.d/postfix: not found
[ Sep 15 09:01:47 Method "start" exited with status 127. ]

$ ls -al /etc/init.d/postfix
ls: cannot access /etc/init.d/postfix: No such file or directory

$ pkg info pkg
Name: package/pkg
Summary: Image Packaging System
Description: The Image Packaging System (IPS), or pkg(5), is the software
delivery system used on OpenSolaris systems. This package
contains the core command-line components and depot server.
Category: System/Packaging
State: Installed
Publisher: openindiana.org
Version: 0.5.11
Build Release: 5.11
Branch: 0.151.1
Packaging Date: September 12, 2011 03:13:38 AM
Size: 5.27 MB
FMRI: pkg://openindiana.org/package/,5.11-0.151.1:20110912T031338Z

$ pkg info postfix
Name: service/network/smtp/postfix
Summary: Mailer system
Category: System/Services
State: Installed
Publisher: sfe
Version: 2.8.4
Build Release: 5.11
Branch: 0.151.1
Packaging Date: September 14, 2011 12:59:16 PM
Size: 15.62 MB
FMRI: pkg://sfe/service/network/smtp/,5.11-0.151.1:20110914T125916Z

There is a fix:

$ pfexec sed -i 's#/etc/init.d/postfix#/usr/sbin/postfix#g' /var/svc/manifest/site/postfix.xml
$ pfexec svccfg validate /var/svc/manifest/site/postfix.xml
$ pfexec svccfg import /var/svc/manifest/site/postfix.xml
$ pfexec svcadm refresh postfix
$ pfexec svcadm clear postfix
$ svcs postfix
STATE STIME FMRI
online 9:10:45 svc:/site/postfix:default

History

Updated by Predrag Zečević over 2 years ago

Also,

in order to make mailx and mutt utilities work, i had to create symlinks:

$ pfexec ln -s /usr/sbin/sendmail.postfix /usr/sbin/sendmail
$ pfexec ln -s /usr/bin/newaliases.postfix /usr/bin/newaliases
$ pfexec ln -s /usr/bin/mailq.postfix /usr/bin/mailq

Regards.

Updated by Ken Mays over 2 years ago

  • Estimated time set to 1.00
  • Difficulty changed from Medium to Bite-size
  • Tags changed from needs-triage to postfix

Updated by Ken Mays over 2 years ago

  • Due date set to 2011-09-17
  • Status changed from New to Resolved
  • Assignee set to Ken Mays
  • % Done changed from 0 to 100

Fixed in postfix 2.8.5 update.

Updated by Alex Viskovatoff over 2 years ago

Predrag: can you confirm that this is fixed?

Updated by Predrag Zečević over 2 years ago

Ok,

postfix manifest is fixed. Thanks.

What about sym-links (note-1)?
It looks like those are not maintained:

ls -al /usr/sbin/sendmail.postfix /usr/sbin/sendmail /usr/bin/newaliases.postfix /usr/bin/newaliases /usr/bin/mailq.postfix /usr/bin/mailq
lrwxrwxrwx 1 root root 22 2011-09-15 09:21 /usr/bin/mailq -> /usr/bin/mailq.postfix
lrwxrwxrwx 1 root root 31 2011-09-15 08:58 /usr/bin/mailq.postfix -> ../../usr/sbin/sendmail.postfix
lrwxrwxrwx 1 root root 26 2011-09-15 09:21 /usr/bin/newaliases -> /usr/sbin/sendmail.postfix
lrwxrwxrwx 1 root root 31 2011-09-15 08:58 /usr/bin/newaliases.postfix -> ../../usr/sbin/sendmail.postfix
lrwxrwxrwx 1 root root 26 2011-09-15 09:33 /usr/sbin/sendmail -> /usr/sbin/sendmail.postfix
-rwxr-xr-x 1 root bin 237K 2011-09-28 08:25 /usr/sbin/sendmail.postfix

Regards.

Also available in: Atom PDF