Perfect Setup - Fedora Core 3 - saslauthd problem

Discussion in 'Installation/Configuration' started by Median, Jan 26, 2006.

  1. falko

    falko Super Moderator ISPConfig Developer

    No, that won't work because you will have to rebuild Postfix first. /etc/postfix/postfix.spec.sf is just a configuration file for the Postfix build...

    I recommend you do everything as outlined in the FC3 tutorial ( http://www.howtoforge.com/perfect_setup_fedora_core_3 ).
    First check /etc/apt/sources.list. It should contain
    Code:
    rpm http://ayo.freshrpms.net fedora/linux/3/i386 core updates freshrpms
    rpm http://ayo.freshrpms.net fedora/linux/3/i386 tupdates
    rpm-src http://ayo.freshrpms.net fedora/linux/3/i386 core updates freshrpms
    rpm-src http://ayo.freshrpms.net fedora/linux/3/i386 tupdates
    rpm http://ayo.freshrpms.net fedora/linux/2/i386 core updates freshrpms
    rpm http://ayo.freshrpms.net fedora/linux/1/i386 core updates freshrpms
    , nothing else. Run
    Code:
    apt-get update
    afterwards.
    Then do the Postfix stuff as described on http://www.howtoforge.com/perfect_setup_fedora_core_3_p4 , starting with
    Code:
    apt-get install cyrus-sasl cyrus-sasl-devel cyrus-sasl-gssapi cyrus-sasl-md5 cyrus-sasl-plain postfix dovecot
    (I've replaced imap with dovecot for you already).
     
  2. Median

    Median New Member

    Done the apt-get and it threw up a few errors (see below). I haven't done the postfix stuff yet - waiting to see if I need to do anything about these errors first
    Code:
      27:php                    warning: /etc/httpd/conf.d/php.conf saved as /etc/httpd/conf.d/php.conf.rpmsave
    ########################################### [ 68%]
      29:sendmail               warning: /etc/mail/sendmail.cf created as /etc/mail/sendmail.cf.rpmnew
    warning: /etc/mail/sendmail.mc created as /etc/mail/sendmail.mc.rpmnew
    ########################################### [ 73%]
    error: %post(sendmail-8.13.1-2) scriptlet failed, exit status 127
      39:httpd                  warning: /etc/httpd/conf/httpd.conf created as /etc/httpd/conf/httpd.conf.rpmnew
    ########################################### [ 98%]
    W: Some errors occurred while running transaction
    [root@median root]#
     
  3. falko

    falko Super Moderator ISPConfig Developer

    Exactly which command gave you these errors?
     
  4. Median

    Median New Member

    First I ran
    Code:
    apt-get update
    Which produced the following out:

    Code:
    [root@median root]# apt-get update
    Get:1 http://ayo.freshrpms.net fedora/linux/3/i386 release [2136B]
    Get:2 http://ayo.freshrpms.net fedora/linux/2/i386 release [1813B]
    Get:3 http://ayo.freshrpms.net fedora/linux/1/i386 release [1807B]
    Fetched 5756B in 0s (39.1kB/s)
    Get:1 http://ayo.freshrpms.net fedora/linux/3/i386/core pkglist [1670kB]
    Get:2 http://ayo.freshrpms.net fedora/linux/3/i386/core release [151B]
    Get:3 http://ayo.freshrpms.net fedora/linux/3/i386/updates pkglist [1190kB]
    Get:4 http://ayo.freshrpms.net fedora/linux/3/i386/updates release [157B]
    Get:5 http://ayo.freshrpms.net fedora/linux/3/i386/freshrpms pkglist [242kB]
    Get:6 http://ayo.freshrpms.net fedora/linux/3/i386/freshrpms release [161B]
    Get:7 http://ayo.freshrpms.net fedora/linux/3/i386/tupdates pkglist [73.6kB]
    Get:8 http://ayo.freshrpms.net fedora/linux/3/i386/tupdates release [166B]
    Get:9 http://ayo.freshrpms.net fedora/linux/3/i386/core srclist [177kB]
    Get:10 http://ayo.freshrpms.net fedora/linux/3/i386/updates srclist [76.8kB]
    Get:11 http://ayo.freshrpms.net fedora/linux/3/i386/freshrpms srclist [45.1kB]
    Get:12 http://ayo.freshrpms.net fedora/linux/3/i386/tupdates srclist [4751B]
    Hit http://ayo.freshrpms.net fedora/linux/2/i386/core pkglist
    Hit http://ayo.freshrpms.net fedora/linux/2/i386/core release
    Hit http://ayo.freshrpms.net fedora/linux/2/i386/updates pkglist
    Hit http://ayo.freshrpms.net fedora/linux/2/i386/updates release
    Hit http://ayo.freshrpms.net fedora/linux/2/i386/freshrpms pkglist
    Hit http://ayo.freshrpms.net fedora/linux/2/i386/freshrpms release
    Get:13 http://ayo.freshrpms.net fedora/linux/1/i386/core pkglist [1447kB]
    Get:14 http://ayo.freshrpms.net fedora/linux/1/i386/core release [151B]
    Get:15 http://ayo.freshrpms.net fedora/linux/1/i386/updates pkglist [455kB]
    Get:16 http://ayo.freshrpms.net fedora/linux/1/i386/updates release [157B]
    Get:17 http://ayo.freshrpms.net fedora/linux/1/i386/freshrpms pkglist [184kB]
    Get:18 http://ayo.freshrpms.net fedora/linux/1/i386/freshrpms release [161B]
    Fetched 5566kB in 15s (348kB/s)
    Reading Package Lists... Done
    Building Dependency Tree... Done
    .....continues
     
    Last edited: Jan 29, 2006
  5. Median

    Median New Member

    ..... continued

    then I ran
    Code:
    apt-get install cyrus-sasl cyrus-sasl-devel cyrus-sasl-gssapi cyrus-sasl-md5 cyrus-sasl-plain postfix dovecot
    as follows:

    Code:
    [root@median root]# apt-get install cyrus-sasl cyrus-sasl-devel cyrus-sasl-gssapi cyrus-sasl-md5 cyrus-sasl-plain postfix dovecot
    Reading Package Lists... Done
    Building Dependency Tree... Done
    postfix is already the newest version.
    The following extra packages will be installed:
      apr-util curl curl-devel gnupg httpd httpd-devel httpd-suexec libc-client
      libidn libidn-devel libuser mod_perl mod_ssl openldap openldap-devel perl
      perl-suidperl php php-devel php-domxml php-imap php-ldap php-mbstring
      php-mysql php-odbc php-pgsql php-snmp php-xmlrpc postgresql-libs samba
      samba-client samba-common samba-swat sendmail
    The following packages will be upgraded
      apr-util curl curl-devel cyrus-sasl cyrus-sasl-devel cyrus-sasl-gssapi
      cyrus-sasl-md5 cyrus-sasl-plain dovecot gnupg httpd httpd-devel libuser
      mod_perl mod_ssl openldap openldap-devel perl perl-suidperl php php-devel
      php-domxml php-imap php-ldap php-mbstring php-mysql php-odbc php-pgsql
      php-snmp php-xmlrpc samba samba-client samba-common samba-swat sendmail
    The following NEW packages will be installed:
      httpd-suexec libc-client libidn libidn-devel postgresql-libs
    35 upgraded, 5 newly installed, 0 removed and 285 not upgraded.
    Need to get 55.4MB of archives.
    After unpacking 4585kB of additional disk space will be used.
    Do you want to continue? [Y/n] y
    Get:1 http://ayo.freshrpms.net fedora/linux/3/i386/core cyrus-sasl-plain 2.1.19-3 [27.3kB]
    Get:2 http://ayo.freshrpms.net fedora/linux/3/i386/core cyrus-sasl-md5 2.1.19-3 [58.4kB]
    Get:3 http://ayo.freshrpms.net fedora/linux/3/i386/core cyrus-sasl-gssapi 2.1.19-3 [28.6kB]
    Get:4 http://ayo.freshrpms.net fedora/linux/3/i386/core cyrus-sasl-devel 2.1.19-3 [1345kB]
    Get:5 http://ayo.freshrpms.net fedora/linux/3/i386/core cyrus-sasl 2.1.19-3 [1232kB]
    Get:6 http://ayo.freshrpms.net fedora/linux/3/i386/updates openldap-devel 2.2.29-1.FC3 [1447kB]
    Get:7 http://ayo.freshrpms.net fedora/linux/3/i386/updates perl-suidperl 3:5.8.5-24.FC3 [109kB]
    Get:8 http://ayo.freshrpms.net fedora/linux/3/i386/core mod_perl 1.99_16-3 [1486kB]
    Get:9 http://ayo.freshrpms.net fedora/linux/3/i386/updates perl 3:5.8.5-24.FC3 [11.6MB]
    Get:10 http://ayo.freshrpms.net fedora/linux/3/i386/updates httpd-devel 2.0.53-3.3 [145kB]
    Get:11 http://ayo.freshrpms.net fedora/linux/3/i386/updates mod_ssl 1:2.0.53-3.3 [92.9kB]
    Get:12 http://ayo.freshrpms.net fedora/linux/3/i386/core libidn 0.5.6-1 [173kB]
    Get:13 http://ayo.freshrpms.net fedora/linux/3/i386/core libidn-devel 0.5.6-1 [224kB]
    Get:14 http://ayo.freshrpms.net fedora/linux/3/i386/updates curl-devel 7.12.3-6.fc3 [256kB]
    Get:15 http://ayo.freshrpms.net fedora/linux/3/i386/updates curl 7.12.3-6.fc3 [252kB]
    Get:16 http://ayo.freshrpms.net fedora/linux/3/i386/updates libc-client 2002e-13 [483kB]
    Get:17 http://ayo.freshrpms.net fedora/linux/3/i386/updates php-imap 4.3.11-2.8 [48.9kB]
    Get:18 http://ayo.freshrpms.net fedora/linux/3/i386/updates php-domxml 4.3.11-2.8 [49.3kB]
    Get:19 http://ayo.freshrpms.net fedora/linux/3/i386/updates php-mbstring 4.3.11-2.8 [941kB]
    Get:20 http://ayo.freshrpms.net fedora/linux/3/i386/updates php-snmp 4.3.11-2.8 [26.4kB]
    Get:21 http://ayo.freshrpms.net fedora/linux/3/i386/updates php-mysql 4.3.11-2.8 [34.6kB]
    Get:22 http://ayo.freshrpms.net fedora/linux/3/i386/updates postgresql-libs 7.4.11-1.FC3.1 [148kB]
    Get:23 http://ayo.freshrpms.net fedora/linux/3/i386/updates php-pgsql 4.3.11-2.8 [49.4kB]
    Get:24 http://ayo.freshrpms.net fedora/linux/3/i386/updates php-odbc 4.3.11-2.8 [39.8kB]
    Get:25 http://ayo.freshrpms.net fedora/linux/3/i386/updates php-xmlrpc 4.3.11-2.8 [49.9kB]
    Get:26 http://ayo.freshrpms.net fedora/linux/3/i386/updates php-devel 4.3.11-2.8 [394kB]
    Get:27 http://ayo.freshrpms.net fedora/linux/3/i386/updates php 4.3.11-2.8 [1378kB]
    Get:28 http://ayo.freshrpms.net fedora/linux/3/i386/updates php-ldap 4.3.11-2.8 [32.8kB]
    Get:29 http://ayo.freshrpms.net fedora/linux/3/i386/core sendmail 8.13.1-2 [585kB]
    Get:30 http://ayo.freshrpms.net fedora/linux/3/i386/updates samba-swat 0:3.0.10-1.fc3 [6853kB]
    Get:31 http://ayo.freshrpms.net fedora/linux/3/i386/updates samba-common 0:3.0.10-1.fc3 [5298kB]
    Get:32 http://ayo.freshrpms.net fedora/linux/3/i386/updates samba-client 0:3.0.10-1.fc3 [2677kB]
    Get:33 http://ayo.freshrpms.net fedora/linux/3/i386/updates samba 0:3.0.10-1.fc3 [13.9MB]
    Get:34 http://ayo.freshrpms.net fedora/linux/3/i386/core libuser 0.52.5-1 [331kB]
    Get:35 http://ayo.freshrpms.net fedora/linux/3/i386/tupdates dovecot 0.99.14-2.FC3 [640kB]
    Get:36 http://ayo.freshrpms.net fedora/linux/3/i386/core apr-util 0.9.4-17 [52.2kB]
    Get:37 http://ayo.freshrpms.net fedora/linux/3/i386/updates gnupg 1.2.7-1 [1759kB]
    Get:38 http://ayo.freshrpms.net fedora/linux/3/i386/updates openldap 2.2.29-1.FC3 [245kB]
    Get:39 http://ayo.freshrpms.net fedora/linux/3/i386/updates httpd 2.0.53-3.3 [910kB]
    Get:40 http://ayo.freshrpms.net fedora/linux/3/i386/updates httpd-suexec 2.0.53-3.3 [25.9kB]
    Fetched 55.4MB in 1m54s (485kB/s)
    Committing changes...
    Preparing...                ########################################### [100%]
       1:cyrus-sasl-plain       ########################################### [  3%]
       2:cyrus-sasl-md5         ########################################### [  5%]
       3:cyrus-sasl-gssapi      ########################################### [  8%]
       4:cyrus-sasl-devel       ########################################### [ 10%]
       5:cyrus-sasl             ########################################### [ 13%]
       6:openldap-devel         ########################################### [ 15%]
       7:perl-suidperl          ########################################### [ 18%]
       8:mod_perl               ########################################### [ 20%]
       9:perl                   ########################################### [ 23%]
      10:httpd-devel            ########################################### [ 25%]
      11:mod_ssl                ########################################### [ 28%]
      12:libidn                 ########################################### [ 30%]
      13:libidn-devel           ########################################### [ 33%]
      14:curl-devel             ########################################### [ 35%]
      15:curl                   ########################################### [ 38%]
      16:libc-client            ########################################### [ 40%]
      17:php-imap               ########################################### [ 43%]
      18:php-domxml             ########################################### [ 45%]
      19:php-mbstring           ########################################### [ 48%]
      20:php-snmp               ########################################### [ 50%]
      21:php-mysql              ########################################### [ 52%]
      22:postgresql-libs        ########################################### [ 55%]
      23:php-pgsql              ########################################### [ 58%]
      24:php-odbc               ########################################### [ 60%]
      25:php-xmlrpc             ########################################### [ 63%]
      26:php-devel              ########################################### [ 65%]
      27:php                    warning: /etc/httpd/conf.d/php.conf saved as /etc/httpd/conf.d/php.conf.rpmsave
    ########################################### [ 68%]
      28:php-ldap               ########################################### [ 70%]
      29:sendmail               warning: /etc/mail/sendmail.cf created as /etc/mail/sendmail.cf.rpmnew
    warning: /etc/mail/sendmail.mc created as /etc/mail/sendmail.mc.rpmnew
    ########################################### [ 73%]
    error: %post(sendmail-8.13.1-2) scriptlet failed, exit status 127
      30:samba-swat             ########################################### [ 75%]
      31:samba-common           ########################################### [ 78%]
      32:samba-client           ########################################### [ 80%]
      33:samba                  ########################################### [ 83%]
      34:libuser                ########################################### [ 85%]
      35:dovecot                ########################################### [ 88%]
      36:apr-util               ########################################### [ 90%]
      37:gnupg                  ########################################### [ 93%]
      38:openldap               ########################################### [ 95%]
      39:httpd                  warning: /etc/httpd/conf/httpd.conf created as /etc/httpd/conf/httpd.conf.rpmnew
    ########################################### [ 98%]
      40:httpd-suexec           ########################################### [100%]
    W: Some errors occurred while running transaction
    >>>> and that is as far as I have gone so far :)
     
  6. falko

    falko Super Moderator ISPConfig Developer

    I'd try to ignore these warnings, most of them merely say that a backup of some old configuration file has been made. I don't know if this sendmail error is important.
    Please go on with the Postfix/saslauthd configuration and see if it works then.
     
  7. Median

    Median New Member

    Finished the configuration which threw up an error about not being able to stop sendmail, but then it had already been stopped by the last attempt.

    Did
    Code:
    [root@median root]# telnet localhost 25
    Trying 127.0.0.1...
    Connected to localhost.
    Escape character is '^]'.
    220 median.x.example.com ESMTP Postfix
    ehlo localhost
    250-median.x.example.com
    250-PIPELINING
    250-SIZE 10240000
    250-VRFY
    250-ETRN
    250-STARTTLS
    250 8BITMIME
    quit
    
    Did a
    Code:
    shutdown -r now
    Tried telnet again:
    Code:
    ][root@median root]# telnet localhost 25
    Trying 127.0.0.1...
    Connected to localhost.
    Escape character is '^]'.
    220 median.x.example.com ESMTP Postfix
    ehlo localhost
    250-median.x.example.com
    250-PIPELINING
    250-SIZE 10240000
    250-VRFY
    250-ETRN
    250-STARTTLS
    250 8BITMIME
    quit
    
    /var/log/boot.log shows errors still:
    Code:
    Jan 29 13:12:54 median saslauthd: saslauthd shutdown succeeded
    Jan 29 13:12:54 median sshd: sshd -TERM succeeded
    Jan 29 13:12:54 median postfix: Shutting down postfix: 
    Jan 29 13:12:55 median postfix:  succeeded
    Jan 29 13:12:55 median postfix: 
    Jan 29 13:12:55 median rc: Stopping postfix:  succeeded
    Jan 29 13:12:55 median mysqld: Stopping MySQL:  succeeded
    Jan 29 13:12:56 median xinetd: xinetd shutdown succeeded
    Jan 29 13:12:56 median crond: crond shutdown succeeded
    Jan 29 13:12:56 median syslog: klogd succeeded
    Jan 29 13:13:30 median syslog: syslogd startup succeeded
    Jan 29 13:13:30 median syslog: klogd succeeded
    Jan 29 13:13:30 median sshd:  succeeded
    Jan 29 13:13:32 median xinetd: xinetd startup succeeded
    Jan 29 13:13:21 median sysctl: net.ipv4.ip_forward = 0 
    Jan 29 13:13:21 median sysctl: net.ipv4.conf.default.rp_filter = 1 
    Jan 29 13:13:21 median rc.sysinit: Configuring kernel parameters:  succeeded 
    Jan 29 13:13:21 median date: Sun Jan 29 13:13:21 GMT 2006 
    Jan 29 13:13:21 median rc.sysinit: Setting clock : Sun Jan 29 13:13:21 GMT 2006 succeeded 
    Jan 29 13:13:21 median rc.sysinit: Setting hostname median.x.example.com:  succeeded 
    Jan 29 13:13:26 median rc.sysinit: Activating swap partitions:  succeeded 
    Jan 29 13:13:26 median rc.sysinit: Mounting local filesystems:  succeeded 
    Jan 29 13:13:26 median rc.sysinit: Enabling local filesystem quotas:  succeeded 
    Jan 29 13:13:27 median rc.sysinit: Enabling swap space:  succeeded 
    Jan 29 13:13:29 median iptables:  succeeded 
    Jan 29 13:13:29 median iptables:  succeeded 
    Jan 29 13:13:29 median sysctl: net.ipv4.ip_forward = 0 
    Jan 29 13:13:29 median sysctl: net.ipv4.conf.default.rp_filter = 1 
    Jan 29 13:13:29 median network: Setting network parameters:  succeeded 
    Jan 29 13:13:30 median network: Bringing up loopback interface:  succeeded 
    Jan 29 13:13:30 median [COLOR="Red"]ifup: SIOCADDRT: Network is unreachable [/COLOR]
    Jan 29 13:13:30 median network: Bringing up interface venet0:  succeeded 
    Jan 29 13:13:30 median rc: Starting vzquota:  succeeded 
    Jan 29 13:13:34 median mysqld: Starting MySQL:  succeeded
    Jan 29 13:13:34 median [COLOR="Red"]dovecot: Fatal: listen(110) failed: Address already in use[/COLOR]
    Jan 29 13:13:34 median [COLOR="red"]dovecot: dovecot startup failed[/COLOR]
    Jan 29 13:13:37 median postfix:  succeeded
    Jan 29 13:13:40 median [COLOR="red"]httpd: Warning: SuexecUserGroup directive requires SUEXEC wrapper.[/COLOR]
    Jan 29 13:13:40 median [COLOR="Red"]httpd: httpd startup failed[/COLOR]
    Jan 29 13:13:40 median crond: crond startup succeeded
    Jan 29 13:13:41 median saslauthd: saslauthd startup succeeded
    
    /var/log/mailog shows:
    Code:
    Jan 29 13:13:37 median postfix/postfix-script: starting the Postfix mail system
    Jan 29 13:13:37 median postfix/master[3188]: daemon started -- version 2.2.3, configuration /etc/postfix
    Jan 29 13:14:01 median sendmail[3349]: STARTTLS=client: file /etc/mail/certs/cert.pem unsafe: No such file or directory
    Jan 29 13:14:01 median sendmail[3349]: STARTTLS=client: file /etc/mail/certs/key.pem unsafe: No such file or directory
    Jan 29 13:14:01 median sendmail[3349]: STARTTLS=client: file /etc/mail/certs/cacert.pem unsafe: No such file or directory
    Jan 29 13:14:01 median sendmail[3349]: STARTTLS=client, error: load verify locs /etc/mail/certs, /etc/mail/certs/cacert.pem failed: 0
    Jan 29 13:15:20 median postfix/smtpd[3910]: warning: smtpd_sasl_auth_enable is true, but SASL support is not compiled in
    
     
  8. falko

    falko Super Moderator ISPConfig Developer

  9. Median

    Median New Member

    Ok Falko.

    Thanks very much for all your help
     

Share This Page