Запомняне

» Здравейте
[ Вход :: Регистриране ]
 » Начало » Li Форуми » Help & Support » Servers & Services » Проблем с postfix и FC6
Тема: Проблем с postfix и FC6, Хпоблем при rpmbuild и login
Мнение #1 Skip to the next post in this topic.
Написано на: Февруари 14 2007, 15:58
mexus

Avatar




Група: Li fans
Мнения: 163
Регистриран: Октомври 2005

Оценка: няма

Offline
Имам проблем при инсталацията на postfix, работя с този guide http://www.howtoforge.com/fedora_virtual_postfix_mysql_quota_courier и Fedora Core 6 с последните ъпдейти.
Пробвах с пакета на postfix описан в guide-a и с най-актуалния но се получава следната грешка
cd /usr/src
Цитат:


[root@mexus src]# rpm -ihv postfix-2.3.3-2.src.rpm
  1:postfix                warning: user brewbuilder does not exist - using root
warning: group brewbuilder does not exist - using root
.......
warning: group brewbuilder does not exist - using root
########################################### [100%]
warning: user brewbuilder does not exist - using root
[root@mexus src]#          

cd /usr/src/redhat/SOURCES
gunzip postfix-2.3.3-vda.patch.gz
cd /usr/src/redhat/SPECS/

Ето как изглежда моя postfix.spec
Цитат:


%define LDAP 2
%define MYSQL 1
%define PCRE 1
%define SASL 2
%define TLS 1
%define IPV6 1
%define POSTDROP_GID 90
%define PFLOGSUMM 1

# On Redhat 8.0.1 and earlier, LDAP is compiled with SASL V1 and won't work
# if postfix is compiled with SASL V2. So we drop to SASL V1 if LDAP is
# requested but use the preferred SASL V2 if LDAP is not requested.
# Sometime soon LDAP will build agains SASL V2 and this won't be needed.

%if %{LDAP} <= 1 && %{SASL} >= 2
%undefine SASL
%define SASL 1
%endif

%if %{PFLOGSUMM}
%define pflogsumm_ver 1.1.0
%endif

# Postfix requires one exlusive uid/gid and a 2nd exclusive gid for its own
# use.  Let me know if the second gid collides with another package.
# Be careful: Redhat's 'mail' user & group isn't unique!
%define postfix_uid    89
%define postfix_user   postfix
%define postfix_gid    89
%define postfix_group  postfix
%define postdrop_group postdrop
%define maildrop_group %{postdrop_group}
%define maildrop_gid   %{POSTDROP_GID}

%define postfix_config_dir  %{_sysconfdir}/postfix
%define postfix_daemon_dir  %{_libexecdir}/postfix
%define postfix_command_dir %{_sbindir}
%define postfix_queue_dir   %{_var}/spool/postfix
%define postfix_doc_dir     %{_docdir}/%{name}-%{version}
%define postfix_sample_dir  %{postfix_doc_dir}/samples
%define postfix_readme_dir  %{postfix_doc_dir}/README_FILES

Name: postfix
Summary: Postfix Mail Transport Agent
Version: 2.3.3
Release: 2
Epoch: 2
Group: System Environment/Daemons
URL: http://www.postfix.org
License: IBM Public License
PreReq: /sbin/chkconfig, /sbin/service, sh-utils
PreReq: fileutils, textutils,
PreReq: /usr/sbin/alternatives

PreReq: %{_sbindir}/groupadd, %{_sbindir}/useradd

Provides: MTA smtpd smtpdaemon /usr/bin/newaliases

Source0: ftp://ftp.porcupine.org/mirrors.....tar.gz
Source1: postfix-etc-init.d-postfix
Source3: README-Postfix-SASL-RedHat.txt

# Sources 50-99 are upstream [patch] contributions

%if %{PFLOGSUMM}
# Postfix Log Entry Summarizer: http://jimsun.linxnet.com/postfix_contrib.html
Source53: http://jimsun.linxnet.com/downloads/pflogsumm-%{pflogsumm_ver}.tar.gz
%endif

# Sources >= 100 are config files

Source100: postfix-sasl.conf
Source101: postfix-pam.conf

# Patches

Patch0: postfix-2.3.3-vda.patch
Patch1: postfix-2.1.1-config.patch
Patch3: postfix-alternatives.patch
Patch6: postfix-2.1.1-obsolete.patch
Patch7: postfix-2.1.5-aliases.patch
Patch8: postfix-large-fs.patch
Patch9: postfix-2.2.5-cyrus.patch

# Optional patches - set the appropriate environment variables to include
#                    them when building the package/spec file

BuildRoot: %{_tmppath}/%{name}-buildroot

# Determine the different packages required for building postfix
BuildRequires: gawk, perl, sed, ed, db4-devel, pkgconfig, zlib-devel

Requires: setup >= 2.5.36-1
BuildRequires: setup >= 2.5.36-1

%if %{LDAP}
BuildRequires: openldap >= 2.0.27, openldap-devel >= 2.0.27
Requires: openldap >= 2.0.27
%endif

%if %{SASL}
BuildRequires: cyrus-sasl >= 2.1.10, cyrus-sasl-devel >= 2.1.10
Requires: cyrus-sasl  >= 2.1.10
%endif

%if %{PCRE}
Requires: pcre
BuildRequires: pcre, pcre-devel
%endif

%if %{MYSQL}
Requires: mysql
BuildRequires: mysql, mysql-devel
%endif

%if %{TLS}
Requires: openssl
BuildRequires: openssl-devel >= 0.9.6
%endif

Provides: /usr/sbin/sendmail /usr/bin/mailq /usr/bin/rmail

%description
Postfix is a Mail Transport Agent (MTA), supporting LDAP, SMTP AUTH (SASL),
TLS

%prep
umask 022

%setup -q
# Apply obligatory patches
%patch0 -p1 -b .vda
%patch1 -p1 -b .config
%patch3 -p1 -b .alternatives
%patch6 -p1 -b .obsolete
%patch7 -p1 -b .aliases
%patch8 -p1 -b .large-fs
%patch9 -p1 -b .cyrus

%if %{PFLOGSUMM}
gzip -dc %{SOURCE53} | tar xf -
pushd pflogsumm-%{pflogsumm_ver}
patch -p0 < ../pflogsumm-conn-delays-dsn-patch
popd
%endif

# pflogsumm subpackage
%if %{PFLOGSUMM}
%package pflogsumm
Group: System Environment/Daemons
Summary: A Log Summarizer/Analyzer for the Postfix MTA
Requires: perl-Date-Calc
%description pflogsumm
Pflogsumm is a log analyzer/summarizer for the Postfix MTA.  It is
designed to provide an over-view of Postfix activity. Pflogsumm
generates summaries and, in some cases, detailed reports of mail
server traffic volumes, rejected and bounced email, and server
warnings, errors and panics.

%endif

%build
umask 022

CCARGS=-fPIC
AUXLIBS=

%ifarch s390 s390x ppc
CCARGS="${CCARGS} -fsigned-char"
%endif

%if %{LDAP}
 CCARGS="${CCARGS} -DHAS_LDAP -DLDAP_DEPRECATED=1"
 AUXLIBS="${AUXLIBS} -L%{_libdir} -lldap -llber"
%endif
%if %{PCRE}
 # -I option required for pcre 3.4 (and later?)
 CCARGS="${CCARGS} -DHAS_PCRE -I/usr/include/pcre"
 AUXLIBS="${AUXLIBS} -lpcre"
%endif
%if %{MYSQL}
 CCARGS="${CCARGS} -DHAS_MYSQL -I/usr/include/mysql"
 AUXLIBS="${AUXLIBS} -L%{_libdir}/mysql -lmysqlclient -lm"
%endif
%if %{SASL}
 %define sasl_v1_lib_dir %{_libdir}/sasl
 %define sasl_v2_lib_dir %{_libdir}/sasl2
 CCARGS="${CCARGS} -DUSE_SASL_AUTH -DUSE_CYRUS_SASL"
 %if %{SASL} <= 1
   %define sasl_lib_dir %{sasl_v1_lib_dir}
   AUXLIBS="${AUXLIBS} -L%{sasl_lib_dir} -lsasl"
 %else
   %define sasl_lib_dir %{sasl_v2_lib_dir}
   CCARGS="${CCARGS} -I/usr/include/sasl"
   AUXLIBS="${AUXLIBS} -L%{sasl_lib_dir} -lsasl2"
 %endif
%endif
%if %{TLS}
 if pkg-config openssl ; then
   CCARGS="${CCARGS} -DUSE_TLS `pkg-config --cflags openssl`"
   AUXLIBS="${AUXLIBS} `pkg-config --libs openssl`"
 else
   CCARGS="${CCARGS} -DUSE_TLS -I/usr/include/openssl"
   AUXLIBS="${AUXLIBS} -lssl -lcrypto"
 fi
%endif
%if %{IPV6} != 1
 CCARGS="${CCARGS} -DNO_IPV6"
%endif

AUXLIBS="${AUXLIBS} -pie -Wl,-z,relro"

export CCARGS AUXLIBS
make -f Makefile.init makefiles

unset CCARGS AUXLIBS
make DEBUG="" OPT="$RPM_OPT_FLAGS"

%install
umask 022
/bin/rm -rf   $RPM_BUILD_ROOT
/bin/mkdir -p $RPM_BUILD_ROOT

# install postfix into $RPM_BUILD_ROOT

# Move stuff around so we don't conflict with sendmail
mv man/man1/mailq.1      man/man1/mailq.postfix.1
mv man/man1/newaliases.1 man/man1/newaliases.postfix.1
mv man/man1/sendmail.1   man/man1/sendmail.postfix.1
mv man/man5/aliases.5    man/man5/aliases.postfix.5

sh postfix-install -non-interactive \
      install_root=$RPM_BUILD_ROOT \
      config_directory=%{postfix_config_dir} \
      daemon_directory=%{postfix_daemon_dir} \
      command_directory=%{postfix_command_dir} \
      queue_directory=%{postfix_queue_dir} \
      sendmail_path=%{postfix_command_dir}/sendmail.postfix \
      newaliases_path=%{_bindir}/newaliases.postfix \
      mailq_path=%{_bindir}/mailq.postfix \
      mail_owner=%{postfix_user} \
      setgid_group=%{maildrop_group} \
      manpage_directory=%{_mandir} \
      sample_directory=%{postfix_sample_dir} \
      readme_directory=%{postfix_readme_dir} || exit 1

# This installs into the /etc/rc.d/init.d directory
/bin/mkdir -p $RPM_BUILD_ROOT/etc/rc.d/init.d
install -c %{_sourcedir}/postfix-etc-init.d-postfix \
                 $RPM_BUILD_ROOT/etc/rc.d/init.d/postfix

install -c auxiliary/rmail/rmail $RPM_BUILD_ROOT%{_bindir}/rmail.postfix

for i in active bounce corrupt defer deferred flush incoming private saved maildrop public pid saved trace; do
   mkdir -p $RPM_BUILD_ROOT%{postfix_queue_dir}/$i
done

# install performance benchmark tools by hand
for i in smtp-sink smtp-source ; do
 install -c -m 755 bin/$i $RPM_BUILD_ROOT%{postfix_command_dir}/
 install -c -m 755 man/man1/$i.1 $RPM_BUILD_ROOT%{_mandir}/man1/
done

# RPM compresses man pages automatically.
# - Edit postfix-files to reflect this, so post-install won't get confused
#   when called during package installation.
ed $RPM_BUILD_ROOT%{postfix_config_dir}/postfix-files <<EOF || exit 1
%s/\(\/man[158]\/.*\.[158]\;):/\1.gz:/
%s/\$config_directory\/aliases:f/\#/
w
q
EOF

perl -i -pe 's:/cyrus/bin/deliver:/usr/lib/cyrus-imapd/deliver:' $RPM_BUILD_ROOT%{postfix_config_dir}/master.cf

cat $RPM_BUILD_ROOT%{postfix_config_dir}/postfix-files
%if %{SASL}
# Install the smtpd.conf file for SASL support.
# See README-Postfix-SASL-RedHat.txt for why we need to set saslauthd_version
# in the v1 version of smtpd.conf
mkdir -p $RPM_BUILD_ROOT%{sasl_v1_lib_dir}
install -m 644 %{SOURCE100} $RPM_BUILD_ROOT%{sasl_v1_lib_dir}/smtpd.conf
echo "saslauthd_version: 2" >> $RPM_BUILD_ROOT%{sasl_v1_lib_dir}/smtpd.conf

mkdir -p $RPM_BUILD_ROOT%{sasl_v2_lib_dir}
install -m 644 %{SOURCE100} $RPM_BUILD_ROOT%{sasl_v2_lib_dir}/smtpd.conf
%endif

mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/pam.d
install -m 644 %{SOURCE101} $RPM_BUILD_ROOT%{_sysconfdir}/pam.d/smtp.postfix

# Install Postfix Red Hat HOWTO.
mkdir -p $RPM_BUILD_ROOT%{postfix_doc_dir}
install -c %{SOURCE3} $RPM_BUILD_ROOT%{postfix_doc_dir}

%if %{PFLOGSUMM}
install -c -m 644 pflogsumm-%{pflogsumm_ver}/pflogsumm-faq.txt $RPM_BUILD_ROOT%{postfix_doc_dir}/pflogsumm-faq.txt
install -c -m 644 pflogsumm-%{pflogsumm_ver}/pflogsumm.1 $RPM_BUILD_ROOT%{_mandir}/man1/pflogsumm.1
install -c pflogsumm-%{pflogsumm_ver}/pflogsumm.pl $RPM_BUILD_ROOT%{postfix_command_dir}/pflogsumm
%endif

# install qshape
mantools/srctoman - auxiliary/qshape/qshape.pl > qshape.1
install -c qshape.1 $RPM_BUILD_ROOT%{_mandir}/man1/qshape.1
install -c auxiliary/qshape/qshape.pl $RPM_BUILD_ROOT%{postfix_command_dir}/qshape

rm -f $RPM_BUILD_ROOT/etc/postfix/aliases

mkdir -p $RPM_BUILD_ROOT/usr/lib
pushd $RPM_BUILD_ROOT/usr/lib
ln -sf ../sbin/sendmail.postfix .
popd

%post
umask 022

/sbin/chkconfig --add postfix

# upgrade configuration files if necessary
%{_sbindir}/postfix set-permissions upgrade-configuration \
config_directory=%{postfix_config_dir} \
daemon_directory=%{postfix_daemon_dir} \
command_directory=%{postfix_command_dir} \
mail_owner=%{postfix_user} \
setgid_group=%{maildrop_group} \
manpage_directory=%{_mandir} \
sample_directory=%{postfix_sample_dir} \
readme_directory=%{postfix_readme_dir}

%{_sbindir}/alternatives --install %{postfix_command_dir}/sendmail mta %{postfix_command_dir}/sendmail.postfix 30 \
       --slave %{_bindir}/mailq mta-mailq %{_bindir}/mailq.postfix \
       --slave %{_bindir}/newaliases mta-newaliases %{_bindir}/newaliases.postfix \
       --slave %{_sysconfdir}/pam.d/smtp mta-pam %{_sysconfdir}/pam.d/smtp.postfix \
       --slave %{_bindir}/rmail mta-rmail %{_bindir}/rmail.postfix \
--slave /usr/lib/sendmail mta-sendmail /usr/lib/sendmail.postfix \
       --slave %{_mandir}/man1/mailq.1.gz mta-mailqman %{_mandir}/man1/mailq.postfix.1.gz \
       --slave %{_mandir}/man1/newaliases.1.gz mta-newaliasesman %{_mandir}/man1/newaliases.postfix.1.gz \
       --slave %{_mandir}/man8/sendmail.8.gz mta-sendmailman %{_mandir}/man1/sendmail.postfix.1.gz \
       --slave %{_mandir}/man5/aliases.5.gz mta-aliasesman %{_mandir}/man5/aliases.postfix.5.gz \
--initscript postfix

%pre
# Add user and groups if necessary
%{_sbindir}/groupadd -g %{maildrop_gid} -r %{maildrop_group} 2>/dev/null
%{_sbindir}/groupadd -g %{postfix_gid} -r %{postfix_group} 2>/dev/null
%{_sbindir}/groupadd -g 12 -r mail 2>/dev/null
%{_sbindir}/useradd -d %{postfix_queue_dir} -s /sbin/nologin -g %{postfix_group} -G mail -M -r -u %{postfix_uid} %{postfix_user} 2>/dev/null
exit 0

%preun
umask 022

if [ "$1" = 0 ]; then
   # stop postfix silently, but only if it's running
   /sbin/service postfix stop &>/dev/null
   /sbin/chkconfig --del postfix
   /usr/sbin/alternatives --remove mta %{postfix_command_dir}/sendmail.postfix
fi

exit 0

%postun
if [ "$1" != 0 ]; then
/sbin/service postfix condrestart 2>&1 > /dev/null
fi
exit 0

%clean
/bin/rm -rf $RPM_BUILD_ROOT


%files

# For correct directory permissions check postfix-install ######.
# It reads the file postfix-files which defines the ownership
# and permissions for all files postfix installs, we avoid explicitly
# setting anything in the %files sections that is handled by
# the upstream install ###### so we don't have an issue with keeping
# the spec file and upstream in sync.

%defattr(-, root, root)

# Config files not part of upstream

%if %{SASL}
%config(noreplace) %{sasl_v1_lib_dir}/smtpd.conf
%config(noreplace) %{sasl_v2_lib_dir}/smtpd.conf
%endif
%config(noreplace) %{_sysconfdir}/pam.d/smtp.postfix
%attr(0755, root, root) %config /etc/rc.d/init.d/postfix

# Misc files

%attr(0755, root, root) %{_bindir}/rmail.postfix

%attr(0755, root, root) %{postfix_command_dir}/smtp-sink
%attr(0755, root, root) %{postfix_command_dir}/smtp-source
%attr(0755, root, root) %{postfix_command_dir}/qshape
%attr(0755, root, root) /usr/lib/sendmail.postfix

%dir %attr(0755, root, root) %{postfix_doc_dir}
%doc %attr(0644, root, root) %{postfix_doc_dir}/README-*
%dir %attr(0755, root, root) %{postfix_readme_dir}
%doc %attr(0644, root, root) %{postfix_readme_dir}/*
#%dir %attr(0755, root, root) %{postfix_sample_dir}
#%doc %attr(0644, root, root) %{postfix_sample_dir}/*

%dir %attr(0755, root, root) %{postfix_config_dir}
%dir %attr(0755, root, root) %{postfix_daemon_dir}
%dir %attr(0755, root, root) %{postfix_queue_dir}
%dir %attr(0700, %{postfix_user}, root) %{postfix_queue_dir}/active
%dir %attr(0700, %{postfix_user}, root) %{postfix_queue_dir}/bounce
%dir %attr(0700, %{postfix_user}, root) %{postfix_queue_dir}/corrupt
%dir %attr(0700, %{postfix_user}, root) %{postfix_queue_dir}/defer
%dir %attr(0700, %{postfix_user}, root) %{postfix_queue_dir}/deferred
%dir %attr(0700, %{postfix_user}, root) %{postfix_queue_dir}/flush
%dir %attr(0700, %{postfix_user}, root) %{postfix_queue_dir}/hold
%dir %attr(0700, %{postfix_user}, root) %{postfix_queue_dir}/incoming
%dir %attr(0700, %{postfix_user}, root) %{postfix_queue_dir}/saved
%dir %attr(0700, %{postfix_user}, root) %{postfix_queue_dir}/trace
%dir %attr(0730, %{postfix_user}, %{maildrop_group}) %{postfix_queue_dir}/maildrop
%dir %attr(0755, root, root) %{postfix_queue_dir}/pid
%dir %attr(0700, %{postfix_user}, root) %{postfix_queue_dir}/private
%dir %attr(0710, %{postfix_user}, %{maildrop_group}) %{postfix_queue_dir}/public

%attr(0644, root, root) %{_mandir}/man1/[a-n]*
%attr(0644, root, root) %{_mandir}/man1/post*
%attr(0644, root, root) %{_mandir}/man1/[q-z]*
%attr(0644, root, root) %{_mandir}/man5/*
%attr(0644, root, root) %{_mandir}/man8/*

%attr(0755, root, root) %{postfix_command_dir}/postalias
%attr(0755, root, root) %{postfix_command_dir}/postcat
%attr(0755, root, root) %{postfix_command_dir}/postconf
%attr(2755, root, %{maildrop_group}) %{postfix_command_dir}/postdrop
%attr(0755, root, root) %{postfix_command_dir}/postfix
%attr(0755, root, root) %{postfix_command_dir}/postkick
%attr(0755, root, root) %{postfix_command_dir}/postlock
%attr(0755, root, root) %{postfix_command_dir}/postlog
%attr(0755, root, root) %{postfix_command_dir}/postmap
%attr(2755, root, %{maildrop_group}) %{postfix_command_dir}/postqueue
%attr(0755, root, root) %{postfix_command_dir}/postsuper
%attr(0644, root, root) %{postfix_config_dir}/LICENSE
%attr(0644, root, root) %config(noreplace) %{postfix_config_dir}/access
%attr(0644, root, root) %config(noreplace) %{postfix_config_dir}/bounce.cf.default
%attr(0644, root, root) %config(noreplace) %{postfix_config_dir}/canonical
%attr(0644, root, root) %config(noreplace) %{postfix_config_dir}/generic
%attr(0644, root, root) %config(noreplace) %{postfix_config_dir}/header_checks
%attr(0644, root, root) %config(noreplace) %{postfix_config_dir}/main.cf
%attr(0644, root, root) %{postfix_config_dir}/main.cf.default
%attr(0644, root, root) %config(noreplace) %{postfix_config_dir}/makedefs.out
%attr(0644, root, root) %config(noreplace) %{postfix_config_dir}/master.cf
%attr(0755, root, root) %{postfix_config_dir}/post-install
%attr(0644, root, root) %{postfix_config_dir}/postfix-files
%attr(0755, root, root) %{postfix_config_dir}/postfix-######
%attr(0644, root, root) %config(noreplace) %{postfix_config_dir}/relocated
%attr(0644, root, root) %{postfix_config_dir}/TLS_LICENSE
%attr(0644, root, root) %config(noreplace) %{postfix_config_dir}/transport
%attr(0644, root, root) %config(noreplace) %{postfix_config_dir}/virtual
%attr(0755, root, root) %{postfix_daemon_dir}/*
%attr(0755, root, root) %{_bindir}/mailq.postfix
%attr(0755, root, root) %{_bindir}/newaliases.postfix
%attr(0755, root, root) %{_sbindir}/sendmail.postfix

%if %{PFLOGSUMM}
%files pflogsumm
%defattr(-, root, root)
   %doc  %{postfix_doc_dir}/pflogsumm-faq.txt
   %{_mandir}/man1/pflogsumm.1.gz
   %attr(0755, root , root) %{postfix_command_dir}/pflogsumm
%endif
Контакти:  mexus

  • AOL  AOL:
  • ICQ  ICQ: 243745868
  • MSN  MSN: mexus_bg@hotmail.com
  • YIM  Yahoo IM:
WEB  
Мнение #2 Skip to the next post in this topic.
Skip to the previous post in this topic. Написано на: Февруари 14 2007, 15:59
mexus

Avatar




Група: Li fans
Мнения: 163
Регистриран: Октомври 2005

Оценка: няма

Offline
Ето го и първия проблем
Цитат:



#rpmbuild -ba postfix.spec

.............
gcc -Wmissing-prototypes -Wformat -fPIC -DHAS_LDAP -DLDAP_DEPRECATED=1 -DHAS_PCRE -I/usr/include/pcre -DUSE_SASL_AUTH -DUSE_CYRUS_SASL -I/usr/include/sasl -DUSE_TLS -I/usr/kerberos/include   -O2 -g -march=i386 -mcpu=i686 -I. -I../../include -DLINUX2 -c include.c
`-mcpu=' is deprecated. Use `-mtune=' or '-march=' instead.
gcc -Wmissing-prototypes -Wformat -fPIC -DHAS_LDAP -DLDAP_DEPRECATED=1 -DHAS_PCRE -I/usr/include/pcre -DUSE_SASL_AUTH -DUSE_CYRUS_SASL -I/usr/include/sasl -DUSE_TLS -I/usr/kerberos/include   -O2 -g -march=i386 -mcpu=i686 -I. -I../../include -DLINUX2 -c indirect.c
`-mcpu=' is deprecated. Use `-mtune=' or '-march=' instead.
gcc -Wmissing-prototypes -Wformat -fPIC -DHAS_LDAP -DLDAP_DEPRECATED=1 -DHAS_PCRE -I/usr/include/pcre -DUSE_SASL_AUTH -DUSE_CYRUS_SASL -I/usr/include/sasl -DUSE_TLS -I/usr/kerberos/include   -O2 -g -march=i386 -mcpu=i686 -I. -I../../include -DLINUX2 -c local.c
`-mcpu=' is deprecated. Use `-mtune=' or '-march=' instead.
gcc -Wmissing-prototypes -Wformat -fPIC -DHAS_LDAP -DLDAP_DEPRECATED=1 -DHAS_PCRE -I/usr/include/pcre -DUSE_SASL_AUTH -DUSE_CYRUS_SASL -I/usr/include/sasl -DUSE_TLS -I/usr/kerberos/include   -O2 -g -march=i386 -mcpu=i686 -I. -I../../include -DLINUX2 -c mailbox.c
`-mcpu=' is deprecated. Use `-mtune=' or '-march=' instead.
gcc -Wmissing-prototypes -Wformat -fPIC -DHAS_LDAP -DLDAP_DEPRECATED=1 -DHAS_PCRE -I/usr/include/pcre -DUSE_SASL_AUTH -DUSE_CYRUS_SASL -I/usr/include/sasl -DUSE_TLS -I/usr/kerberos/include   -O2 -g -march=i386 -mcpu=i686 -I. -I../../include -DLINUX2 -c recipient.c
`-mcpu=' is deprecated. Use `-mtune=' or '-march=' instead.
gcc -Wmissing-prototypes -Wformat -fPIC -DHAS_LDAP -DLDAP_DEPRECATED=1 -DHAS_PCRE -I/usr/include/pcre -DUSE_SASL_AUTH -DUSE_CYRUS_SASL -I/usr/include/sasl -DUSE_TLS -I/usr/kerberos/include   -O2 -g -march=i386 -mcpu=i686 -I. -I../../include -DLINUX2 -c resolve.c
`-mcpu=' is deprecated. Use `-mtune=' or '-march=' instead.
gcc -Wmissing-prototypes -Wformat -fPIC -DHAS_LDAP -DLDAP_DEPRECATED=1 -DHAS_PCRE -I/usr/include/pcre -DUSE_SASL_AUTH -DUSE_CYRUS_SASL -I/usr/include/sasl -DUSE_TLS -I/usr/kerberos/include   -O2 -g -march=i386 -mcpu=i686 -I. -I../../include -DLINUX2 -c token.c
`-mcpu=' is deprecated. Use `-mtune=' or '-march=' instead.
gcc -Wmissing-prototypes -Wformat -fPIC -DHAS_LDAP -DLDAP_DEPRECATED=1 -DHAS_PCRE -I/usr/include/pcre -DUSE_SASL_AUTH -DUSE_CYRUS_SASL -I/usr/include/sasl -DUSE_TLS -I/usr/kerberos/include   -O2 -g -march=i386 -mcpu=i686 -I. -I../../include -DLINUX2 -c deliver_attr.c
............
p public pid saved trace
+ mkdir -p /var/tmp/postfix-buildroot/var/spool/postfix/corrupt
+ for i in active bounce corrupt defer deferred flush incoming private saved maildrop public pid saved trace
+ mkdir -p /var/tmp/postfix-buildroot/var/spool/postfix/defer
+ for i in active bounce corrupt defer deferred flush incoming private saved maildrop public pid saved trace
+ mkdir -p /var/tmp/postfix-buildroot/var/spool/postfix/deferred
+ for i in active bounce corrupt defer deferred flush incoming private saved maildrop public pid saved trace
+ mkdir -p /var/tmp/postfix-buildroot/var/spool/postfix/flush
+ for i in active bounce corrupt defer deferred flush incoming private saved maildrop public pid saved trace
+ mkdir -p /var/tmp/postfix-buildroot/var/spool/postfix/incoming
+ for i in active bounce corrupt defer deferred flush incoming private saved maildrop public pid saved trace
+ mkdir -p /var/tmp/postfix-buildroot/var/spool/postfix/private
+ for i in active bounce corrupt defer deferred flush incoming private saved maildrop public pid saved trace
+ mkdir -p /var/tmp/postfix-buildroot/var/spool/postfix/saved
+ for i in active bounce corrupt defer deferred flush incoming private saved maildrop public pid saved trace
+ mkdir -p /var/tmp/postfix-buildroot/var/spool/postfix/maildrop
+ for i in active bounce corrupt defer deferred flush incoming private saved maildrop public pid saved trace
+ mkdir -p /var/tmp/postfix-buildroot/var/spool/postfix/public
+ for i in active bounce corrupt defer deferred flush incoming private saved maildrop public pid saved trace
+ mkdir -p /var/tmp/postfix-buildroot/var/spool/postfix/pid
+ for i in active bounce corrupt defer deferred flush incoming private saved maildrop public pid saved trace
+ mkdir -p /var/tmp/postfix-buildroot/var/spool/postfix/saved
+ for i in active bounce corrupt defer deferred flush incoming private saved maildrop public pid saved trace
+ mkdir -p /var/tmp/postfix-buildroot/var/spool/postfix/trace
+ for i in smtp-sink smtp-source
+ install -c -m 755 bin/smtp-sink /var/tmp/postfix-buildroot/usr/sbin/
+ install -c -m 755 man/man1/smtp-sink.1 /var/tmp/postfix-buildroot/usr/share/man/man1/
+ for i in smtp-sink smtp-source
+ install -c -m 755 bin/smtp-source /var/tmp/postfix-buildroot/usr/sbin/
+ install -c -m 755 man/man1/smtp-source.1 /var/tmp/postfix-buildroot/usr/share/man/man1/
+ ed /var/tmp/postfix-buildroot/etc/postfix/postfix-files
17479
?
+ exit 1
error: Bad exit status from /var/tmp/rpm-tmp.48585 (%install)


RPM build errors:
   Bad exit status from /var/tmp/rpm-tmp.48585 (%install)

Ето какво пише в този файл:
Цитат:


[root@mexus SPECS]#vi /var/tmp/rpm-tmp.48585:
#!/bin/sh

 RPM_SOURCE_DIR="/usr/src/redhat/SOURCES"
 RPM_BUILD_DIR="/usr/src/redhat/BUILD"
 RPM_OPT_FLAGS="-O2 -g -march=i386 -mcpu=i686"
 RPM_ARCH="i386"
 RPM_OS="linux"
 export RPM_SOURCE_DIR RPM_BUILD_DIR RPM_OPT_FLAGS RPM_ARCH RPM_OS
 RPM_DOC_DIR="/usr/share/doc"
 export RPM_DOC_DIR
 RPM_PACKAGE_NAME="postfix"
 RPM_PACKAGE_VERSION="2.3.3"
 RPM_PACKAGE_RELEASE="2"
 export RPM_PACKAGE_NAME RPM_PACKAGE_VERSION RPM_PACKAGE_RELEASE
 RPM_BUILD_ROOT="/var/tmp/postfix-buildroot"
 export RPM_BUILD_ROOT
 
 
 set -x
 umask 022
 cd /usr/src/redhat/BUILD
cd postfix-2.3.3
umask 022
/bin/rm -rf   $RPM_BUILD_ROOT
/bin/mkdir -p $RPM_BUILD_ROOT

# install postfix into $RPM_BUILD_ROOT

# Move stuff around so we don't conflict with sendmail
mv man/man1/mailq.1      man/man1/mailq.postfix.1
mv man/man1/newaliases.1 man/man1/newaliases.postfix.1
mv man/man1/sendmail.1   man/man1/sendmail.postfix.1
mv man/man5/aliases.5    man/man5/aliases.postfix.5

sh postfix-install -non-interactive \
      install_root=$RPM_BUILD_ROOT \
      config_directory=/etc/postfix \
      daemon_directory=/usr/libexec/postfix \
      command_directory=/usr/sbin \
      queue_directory=/var/spool/postfix \
      sendmail_path=/usr/sbin/sendmail.postfix \
      newaliases_path=/usr/bin/newaliases.postfix \
      mailq_path=/usr/bin/mailq.postfix \
      mail_owner=postfix \
      setgid_group=postdrop \
      manpage_directory=/usr/share/man \
      sample_directory=/usr/share/doc/postfix-2.3.3/samples \
      readme_directory=/usr/share/doc/postfix-2.3.3/README_FILES || exit 1

# This installs into the /etc/rc.d/init.d directory
/bin/mkdir -p $RPM_BUILD_ROOT/etc/rc.d/init.d
install -c /usr/src/redhat/SOURCES/postfix-etc-init.d-postfix \
                 $RPM_BUILD_ROOT/etc/rc.d/init.d/postfix

install -c auxiliary/rmail/rmail $RPM_BUILD_ROOT/usr/bin/rmail.postfix

for i in active bounce corrupt defer deferred flush incoming private saved maildrop public pid saved trace; do
   mkdir -p $RPM_BUILD_ROOT/var/spool/postfix/$i
done

# install performance benchmark tools by hand
for i in smtp-sink smtp-source ; do
 install -c -m 755 bin/$i $RPM_BUILD_ROOT/usr/sbin/
 install -c -m 755 man/man1/$i.1 $RPM_BUILD_ROOT/usr/share/man/man1/
done

# RPM compresses man pages automatically.
# - Edit postfix-files to reflect this, so post-install won't get confused
#   when called during package installation.
ed $RPM_BUILD_ROOT/etc/postfix/postfix-files <<EOF || exit 1
%s/\(\/man[158]\/.*\.[158]\;):/\1.gz:/
%s/\$config_directory\/aliases:f/\#/
w
q
EOF

perl -i -pe 's:/cyrus/bin/deliver:/usr/lib/cyrus-imapd/deliver:' $RPM_BUILD_ROOT/etc/postfix/master.cf

cat $RPM_BUILD_ROOT/etc/postfix/postfix-files
# Install the smtpd.conf file for SASL support.
# See README-Postfix-SASL-RedHat.txt for why we need to set saslauthd_version
# in the v1 version of smtpd.conf
mkdir -p $RPM_BUILD_ROOT/usr/lib/sasl
install -m 644 /usr/src/redhat/SOURCES/postfix-sasl.conf $RPM_BUILD_ROOT/usr/lib/sasl/smtpd.conf
echo "saslauthd_version: 2" >> $RPM_BUILD_ROOT/usr/lib/sasl/smtpd.conf

mkdir -p $RPM_BUILD_ROOT/usr/lib/sasl2
install -m 644 /usr/src/redhat/SOURCES/postfix-sasl.conf $RPM_BUILD_ROOT/usr/lib/sasl2/smtpd.conf

mkdir -p $RPM_BUILD_ROOT/etc/pam.d
install -m 644 /usr/src/redhat/SOURCES/postfix-pam.conf $RPM_BUILD_ROOT/etc/pam.d/smtp.postfix

# Install Postfix Red Hat HOWTO.
mkdir -p $RPM_BUILD_ROOT/usr/share/doc/postfix-2.3.3
install -c /usr/src/redhat/SOURCES/README-Postfix-SASL-RedHat.txt $RPM_BUILD_ROOT/usr/share/doc/postfix-2.3.3

install -c -m 644 pflogsumm-1.1.0/pflogsumm-faq.txt $RPM_BUILD_ROOT/usr/share/doc/postfix-2.3.3/pflogsumm-faq.txt
install -c -m 644 pflogsumm-1.1.0/pflogsumm.1 $RPM_BUILD_ROOT/usr/share/man/man1/pflogsumm.1
install -c pflogsumm-1.1.0/pflogsumm.pl $RPM_BUILD_ROOT/usr/sbin/pflogsumm

# install qshape
mantools/srctoman - auxiliary/qshape/qshape.pl > qshape.1
install -c qshape.1 $RPM_BUILD_ROOT/usr/share/man/man1/qshape.1
install -c auxiliary/qshape/qshape.pl $RPM_BUILD_ROOT/usr/sbin/qshape

rm -f $RPM_BUILD_ROOT/etc/postfix/aliases

mkdir -p $RPM_BUILD_ROOT/usr/lib
pushd $RPM_BUILD_ROOT/usr/lib
ln -sf ../sbin/sendmail.postfix .
popd


   
   
   
   /usr/lib/rpm/brp-compress
   /usr/lib/rpm/brp-strip
   /usr/lib/rpm/brp-strip-static-archive
   /usr/lib/rpm/brp-strip-comment-note





Не намерих решение  и затова инсталиран postfix през yum и всичко останало 1 към  1 с guide-a. И ето следващия праблем:
При telnet localhost 25.
Цитат:


Trying 127.0.0.1….
Connected to localhost.localdomain (127.0.0.1)
Escape character is ‘^]’

И до тук
Пиша ehlo localhost и нищо......

Продължих до края. Всичко се стартира но не мога да се логна във сървъра, направил съм user а Outlook не ми приема паролата.
PLS HELP!
Контакти:  mexus

  • AOL  AOL:
  • ICQ  ICQ: 243745868
  • MSN  MSN: mexus_bg@hotmail.com
  • YIM  Yahoo IM:
WEB  
Мнение #3 Skip to the next post in this topic.
Skip to the previous post in this topic. Написано на: Февруари 14 2007, 16:16

Avatar




Група: Li psychos
Мнения: 380
Регистриран: Април 2005

Offline
Цитат:

Продължих до края. Всичко се стартира но не мога да се логна във сървъра, направил съм user а Outlook не ми приема паролата.

Сигурно не работи защото Postfix е MTA, а не MUA
С други думи с Postfix ще може само да изпращаш писма. За да можеш да ги четеш с Outlook ще трябва да си инсталираш  POP3 или IMAP4 сървър

"Linux is for people who hate Windows, BSD is for people who love UNIX"
Контакти:  gog

  • AOL  AOL:
  • ICQ  ICQ:
  • MSN  MSN:
  • YIM  Yahoo IM:
WEB  
Мнение #4
Skip to the previous post in this topic. Написано на: Февруари 14 2007, 16:36
mexus

Avatar




Група: Li fans
Мнения: 163
Регистриран: Октомври 2005

Оценка: няма

Offline
Кой да инсталирам?!
Контакти:  mexus

  • AOL  AOL:
  • ICQ  ICQ: 243745868
  • MSN  MSN: mexus_bg@hotmail.com
  • YIM  Yahoo IM:
WEB  
Общо 3 отговор(а) от Февруари 14 2007, 15:58 до сега
 » Начало » Li Форуми » Help & Support » Servers & Services » Проблем с postfix и FC6

© 2014 Linux Index Project
Powered by iF 1.0.0 © 2006 ikonForums