building POSTFIX rpm package for Redhat
I download postfix source file from postfix.com site and want to know what command should I use to build a rpm package which has MySQL support. How am I going to do that?
thank you ps. I want to build Postfix RPM package which has MySQL support because the RPM package which come with Redhat does NOT have this feature. |
(Disclaimer: I'm running Mandrake 10.0, but I've altered these steps so that they should work for Redhat distros)
I'd suggest skipping the postfix tarball from postfix.org and get the SRPM packageCreate the needed directories by running Code:
mkdir -p ~/rpm/{BUILD,RPMS/i386,RPMS/noarch,SOURCES,SRPMS,SPECS,tmp} .rpmrc Code:
buildarchtranslate: i386: i386 Code:
%_topdir YOUR_HOME_DIR/rpm Code:
rpm -i /path/to/package/postfix-blah-blah-blah.src.rpm Code:
%define LDAP 2 Code:
rpmbuild -ba postfix.spec Let me know if you have any problems. --mascdman |
Thank you. I'm going to try tomorrow and will post here the result.
|
It works. I can send mail out but postfix mail server deny to receive mail(it said: Remote host said: 554 <mailme@mydomain(edited).com>: Relay access denied. I think I need to look closer the main.cf file
Thank you |
Try adding mydomain.com to the mydestination line in main.cf. This should make Postfix receive mail for mydomain.com and deliver it locally.
--mascdman |
Actualy, I did setup Postfix before but NEVER done with MySQL. :D
I just look through all my setup and NOW it's working OK. The last thing I have to do is setting up Pop-Before-SMTP to send mail out(I did before so I don't thing I will have trouble with it). :) Thank you |
:) You're welcome
--mascdman |
All times are GMT -5. The time now is 07:45 PM. |