Skip to Main Content

Infrastructure Software

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

postfix problem on a Solaris system

807557Mar 9 2010
I am getting errors in my Logwatch email about postfix mail system.

The first error I get is this in the maillog file.

sun6275-1-0.local sendmail[1417]: [ID 702911 mail.notice] alias database /etc/mail/aliases rebuilt by root
sun6275-1-0.local sendmail[1417]: [ID 702911 mail.info] /etc/mail/aliases: 12 aliases, longest 10 bytes, 138 bytes total
sun6275-1-0.local postfix/postfix-script[1539]: [ID 947731 mail.warning] warning: not owned by root: /var/spool/postfix
sun6275-1-0.local postfix/postfix-script[1551]: [ID 947731 mail.warning] warning: not owned by group postdrop: /usr/sbin/postqueue
sun6275-1-0.local postfix/postfix-script[1552]: [ID 947731 mail.warning] warning: not owned by group postdrop: /usr/sbin/postdrop
sun6275-1-0.local postfix/postfix-script[1555]: [ID 947731 mail.warning] warning: not set-gid or not owner+group+world executable: /usr/sbin/postqueue
sun6275-1-0.local postfix/postfix-script[1556]: [ID 947731 mail.warning] warning: not set-gid or not owner+group+world executable: /usr/sbin/postdrop
sun6275-1-0.local postfix/postfix-script[1565]: [ID 197553 mail.info] starting the Postfix mail system
sun6275-1-0.local postfix/master[1567]: [ID 197553 mail.info] daemon started -- version 2.5.1, configuration /etc/postfix

So I modify owner these with

-bash-3.00# ls -ld /var/spool/postfix/
drwxr-xr-x 16 postfix postdrop 16 Mar 9 12:11 /var/spool/postfix/
-bash-3.00# chown root /var/spool/postfix

-bash-3.00# ls -ld /usr/sbin/postqueue
-rwxr-xr-x 1 root root 723044 Dec 17 11:33 /usr/sbin/postqueue
-bash-3.00# chown root:postdrop /usr/sbin/postqueue
-bash-3.00# ls -ld /usr/sbin/postdrop
-rwxr-xr-x 1 root root 731940 Dec 17 11:33 /usr/sbin/postdrop
-bash-3.00# chown root:postdrop /usr/sbin/postdrop
-bash-3.00# chmod g+s /usr/sbin/postqueue
-bash-3.00# chmod g+s /usr/sbin/postdrop

Then restart postfix
svcadm –v restart network/smtp:postfix

It appear to fix the errors
sun6275-1-0.local postfix/postfix-script[1649]: [ID 197553 mail.info] stopping the Postfix mail system
sun6275-1-0.local postfix/master[1567]: [ID 197553 mail.info] terminating on signal 15
sun6275-1-0.local sendmail[1653]: [ID 702911 mail.notice] alias database /etc/mail/aliases rebuilt by root
sun6275-1-0.local sendmail[1653]: [ID 702911 mail.info] /etc/mail/aliases: 12 aliases, longest 10 bytes, 138 bytes total
sun6275-1-0.local postfix/postfix-script[1698]: [ID 197553 mail.info] starting the Postfix mail system
sun6275-1-0.local postfix/master[1699]: [ID 197553 mail.info] daemon started -- version 2.5.1, configuration /etc/postfix

Then these start appearing.
sun6275-1-0.local sendmail[1712]: [ID 801593 mail.info] o29K113J001712: from=root, size=343, class=0, nrcpts=1, msgid=<201003092001.o29K113J001712@SUN6275-1-0.local>, relay=root@localhost
sun6275-1-0.local postfix/smtpd[1713]: [ID 947731 mail.crit] fatal: open database /etc/mail/aliases.dir: No such file or directory
sun6275-1-0.local postfix/master[1699]: [ID 947731 mail.warning] warning: process /usr/libexec/postfix/smtpd pid 1713 exit status 1
sun6275-1-0.local postfix/master[1699]: [ID 947731 mail.warning] warning: /usr/libexec/postfix/smtpd: bad command startup – throttling

I do a
-bash-3.00# newaliases /etc/mail/aliases
/etc/mail/aliases: 12 aliases, longest 10 bytes, 138 bytes total
-bash-3.00# postalias /etc/mail/aliases
-bash-3.00# postfix reload

And the file is now there, but then I start getting this error.
Mar 9 13:06:48 sun6275-1-0.local postfix/smtpd[1734]: [ID 947731 mail.crit] fatal: unsupported dictionary type: hash
Mar 9 13:06:49 sun6275-1-0.local postfix/master[1699]: [ID 947731 mail.warning] warning: process /usr/libexec/postfix/smtpd pid 1734 exit status 1
Mar 9 13:06:49 sun6275-1-0.local postfix/master[1699]: [ID 947731 mail.warning] warning: /usr/libexec/postfix/smtpd: bad command startup – throttling

I run postconf –m and I see that hash is not support on Solaris.
-bash-3.00# postconf -m
cidr
dbm
environ
nis
nisplus
pcre
proxy
regexp
static
unix

I modify the main.cf to point to use dbm and restart the service
alias_maps = dbm:/etc/mail/aliases
alias_database = dbm:/etc/mail/aliases


I still get this

sun6275-1-0.local sendmail[1834]: [ID 801593 mail.info] o29L10rT001834: from=root, size=343, class=0, nrcpts=1, msgid=<201003092101.o29L10rT001834@SUN6275-1-0.local>, relay=root@localhost
sun6275-1-0.local postfix/smtpd[1835]: [ID 947731 mail.crit] fatal: unsupported dictionary type: hash
sun6275-1-0.local postfix/master[1821]: [ID 947731 mail.warning] warning: process /usr/libexec/postfix/smtpd pid 1835 exit status 1
sun6275-1-0.local postfix/master[1821]: [ID 947731 mail.warning] warning: /usr/libexec/postfix/smtpd: bad command startup -- throttling
sun6275-1-0.local postfix/smtpd[1837]: [ID 947731 mail.crit] fatal: unsupported dictionary type: hash
sun6275-1-0.local postfix/master[1821]: [ID 947731 mail.warning] warning: process /usr/libexec/postfix/smtpd pid 1837 exit status 1
sun6275-1-0.local postfix/master[1821]: [ID 947731 mail.warning] warning: /usr/libexec/postfix/smtpd: bad command startup -- throttling
sun6275-1-0.local postfix/smtpd[1839]: [ID 947731 mail.crit] fatal: unsupported dictionary type: hash
sun6275-1-0.local postfix/master[1821]: [ID 947731 mail.warning] warning: process /usr/libexec/postfix/smtpd pid 1839 exit status 1
sun6275-1-0.local postfix/master[1821]: [ID 947731 mail.warning] warning: /usr/libexec/postfix/smtpd: bad command startup -- throttling
sun6275-1-0.local postfix/smtpd[1841]: [ID 947731 mail.crit] fatal: unsupported dictionary type: hash
sun6275-1-0.local postfix/master[1821]: [ID 947731 mail.warning] warning: process /usr/libexec/postfix/smtpd pid 1841 exit status 1
sun6275-1-0.local postfix/master[1821]: [ID 947731 mail.warning] warning: /usr/libexec/postfix/smtpd: bad command startup -- throttling
sun6275-1-0.local postfix/smtpd[1843]: [ID 947731 mail.crit] fatal: unsupported dictionary type: hash
sun6275-1-0.local postfix/master[1821]: [ID 947731 mail.warning] warning: process /usr/libexec/postfix/smtpd pid 1843 exit status 1
sun6275-1-0.local postfix/master[1821]: [ID 947731 mail.warning] warning: /usr/libexec/postfix/smtpd: bad command startup -- throttling
sun6275-1-0.local sendmail[1834]: [ID 801593 mail.notice] o29L10rT001834: timeout waiting for input from [127.0.0.1] during client greeting
sun6275-1-0.local sendmail[1834]: [ID 801593 mail.info] o29L10rT001834: to=root, ctladdr=root (0/0), delay=00:05:00, xdelay=00:05:00, mailer=relay, pri=30343, relay=[127.0.0.1] [127.0.0.1], dsn=4.0.0, stat=Deferred: Connection timed out with [127.0.0.1]


Can anyone help?
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Apr 6 2010
Added on Mar 9 2010
0 comments
913 views