LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 05-26-2011, 06:04 AM   #1
dstu
Member
 
Registered: Dec 2006
Posts: 37

Rep: Reputation: 0
Unhappy Postfix updated by CentOS and doesn't support MySQL anymore


Hello,

I have to start by saying that my Linux compiling capabilities are very limited.

I updated my CentOS recently, and since, my Postfix no longer supports MySQL tables and all the emails are stuck in the queue.

I searched my forums and sites for a simple solution for it, but didn't find something clear and easy for newbies like me.

I don't want my config files to get lost and of course, the emails, virtual tables and mysql data to be restored.

Can anyone help?

Thanks a lot.

David
 
Old 05-26-2011, 09:59 AM   #2
Berhanie
Senior Member
 
Registered: Dec 2003
Location: phnom penh
Distribution: Fedora
Posts: 1,625

Rep: Reputation: 165Reputation: 165
1. remove the installed postfix:
Code:
yum remove postfix
2. make sure this doesn't happend again by editing /etc/yum.repos.d/CentOS-Base.repo:
Code:
[base]
name=CentOS-$releasever - Base
...
exclude=postfix*

#released updates 
[updates]
name=CentOS-$releasever - Updates
...
exclude=postfix*
3. install postfix from the centosplus repo. it understands mysql:
Code:
yum --enablerepo=centosplus install postfix
 
1 members found this post helpful.
Old 05-27-2011, 06:17 AM   #3
dstu
Member
 
Registered: Dec 2006
Posts: 37

Original Poster
Rep: Reputation: 0
It helped, but there are still issues

Hi Berhanie,

I followed your instructions below:

Quote:
Originally Posted by Berhanie View Post
1. remove the installed postfix:
Code:
yum remove postfix
2. make sure this doesn't happend again by editing /etc/yum.repos.d/CentOS-Base.repo:
Code:
[base]
name=CentOS-$releasever - Base
...
exclude=postfix*

#released updates 
[updates]
name=CentOS-$releasever - Updates
...
exclude=postfix*
3. install postfix from the centosplus repo. it understands mysql:
Code:
yum --enablerepo=centosplus install postfix
Now outgoing messages that were stuck in queue were delivered, but incoming messages to our domains are still in queue.

This is what I get in the error log:

Code:
May 27 14:07:31 sip postfix/proxymap[2179]: fatal: unsupported dictionary type: mysql
May 27 14:07:32 sip postfix/smtpd[1911]: warning: premature end-of-input on private/proxymap socket while reading input attribute name
May 27 14:07:32 sip postfix/trivial-rewrite[1821]: warning: premature end-of-input on private/proxymap socket while reading input attribute name
May 27 14:07:32 sip postfix/smtpd[1911]: warning: private/proxymap socket: service dict_proxy_open: Connection reset by peer
May 27 14:07:32 sip postfix/trivial-rewrite[1821]: warning: private/proxymap socket: service dict_proxy_open: Success
May 27 14:07:32 sip postfix/master[1759]: warning: process /usr/libexec/postfix/proxymap pid 2179 exit status 1
May 27 14:07:32 sip postfix/master[1759]: warning: /usr/libexec/postfix/proxymap: bad command startup -- throttling
May 27 14:08:32 sip postfix/proxymap[2183]: fatal: unsupported dictionary type: mysql
May 27 14:08:33 sip postfix/trivial-rewrite[1821]: warning: premature end-of-input on private/proxymap socket while reading input attribute name
May 27 14:08:33 sip postfix/smtpd[1911]: warning: premature end-of-input on private/proxymap socket while reading input attribute name
May 27 14:08:33 sip postfix/smtpd[1911]: warning: private/proxymap socket: service dict_proxy_open: Success
May 27 14:08:33 sip postfix/trivial-rewrite[1821]: warning: private/proxymap socket: service dict_proxy_open: Connection reset by peer
May 27 14:08:33 sip postfix/master[1759]: warning: process /usr/libexec/postfix/proxymap pid 2183 exit status 1
May 27 14:08:33 sip postfix/master[1759]: warning: /usr/libexec/postfix/proxymap: bad command startup -- throttling
May 27 14:08:33 sip dovecot: auth-worker(default): mysql: Connected to 127.0.0.1 (postfix)
Any idea?

Thanks,

David
 
Old 05-27-2011, 08:30 AM   #4
Berhanie
Senior Member
 
Registered: Dec 2003
Location: phnom penh
Distribution: Fedora
Posts: 1,625

Rep: Reputation: 165Reputation: 165
compare with mine. post your output for comparison:

Code:
[root@host ~]# cat /etc/redhat-release
CentOS release 5.4 (Final)
[root@host ~]# postconf -m
btree
cidr
environ
hash
ldap
mysql
nis
pcre
pgsql
proxy
regexp
static
unix
[root@host ~]# rpm -q postfix
postfix-2.3.3-2.1.centos.mysql_pgsql
 
Old 05-27-2011, 08:49 AM   #5
dstu
Member
 
Registered: Dec 2006
Posts: 37

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by Berhanie View Post
compare with mine. post your output for comparison:

Code:
[root@host ~]# cat /etc/redhat-release
CentOS release 5.4 (Final)
[root@host ~]# postconf -m
btree
cidr
environ
hash
ldap
mysql
nis
pcre
pgsql
proxy
regexp
static
unix
[root@host ~]# rpm -q postfix
postfix-2.3.3-2.1.centos.mysql_pgsql

This is mine:
Code:
[root@sip ~]# cat /etc/redhat-release
CentOS release 5.6 (Final)
[root@sip ~]# postconf -m
btree
cidr
environ
hash
ldap
nis
pcre
proxy
regexp
static
unix
[root@sip ~]# rpm -q postfix
postfix-2.3.3-2.2.el5_6
MySQL is missing from the postconf. How do I enable it? It makes sense that outgoing emails work now, but incoming doesn't recognize the destinations, as the domains and mailboxes are listed in the db.
 
Old 05-27-2011, 08:52 AM   #6
Berhanie
Senior Member
 
Registered: Dec 2003
Location: phnom penh
Distribution: Fedora
Posts: 1,625

Rep: Reputation: 165Reputation: 165
ok, the postfix you're running did not come from centosplus. something went wrong with
step2, above. please cut and paste /etc/yum.repos.d/CentOS-Base.repo
 
Old 05-27-2011, 09:23 AM   #7
dstu
Member
 
Registered: Dec 2006
Posts: 37

Original Poster
Rep: Reputation: 0
Thumbs up

Quote:
Originally Posted by Berhanie View Post
ok, the postfix you're running did not come from centosplus. something went wrong with
step2, above. please cut and paste /etc/yum.repos.d/CentOS-Base.repo
You're right. I probably didn't save the changes. I ran the whole thing again and everything works just fine. messages are coming and going

Thanks a lot for your help!!!!!
 
Old 05-27-2011, 10:23 AM   #8
Berhanie
Senior Member
 
Registered: Dec 2003
Location: phnom penh
Distribution: Fedora
Posts: 1,625

Rep: Reputation: 165Reputation: 165
no problem. good job, david.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
iptables 1.3.8 doesn't support mport anymore rhine2 Programming 1 02-27-2010 10:59 AM
CentOS 5: postfix with mysql Berhanie Linux - Server 1 11-10-2007 08:05 AM
updated system, urxvt doesn't have bold font anymore hedpe Linux - Software 2 05-08-2007 03:20 PM
Updated FC1 Kernel doesn't support usb... Ryknow215 Fedora - Installation 5 01-29-2004 10:41 AM
Updated Mozilla, JVM doesn't work anymore GT_Onizuka Linux - Software 9 10-17-2003 12:48 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 10:20 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration