SMTPD/SASL failure

Discussion in 'HOWTO-Related Questions' started by crudolphy, Jul 28, 2008.

  1. crudolphy

    crudolphy New Member

    I have followed the "Virtual Users and Domains with Postfix, Courier, MySQL, and SquirrelMail (Ubuntu 8.04 LTS) and I am running Ubuntu 8.04 LTS server edition. I have not installed SquirrelMail. My problem is sending email. Using Evolution as the client, I have no problem logging in and receiving mail. And the SMTP server seems to be receiving mail no problem, amavisd, clam-av, spamassassin, all seem to working fine. I just can't send an email.

    Following is the result of "tail /var/log/syslog"

    Code:
    Jul 27 17:41:23 crud-04 postfix/master[7576]: warning: process /usr/lib/postfix/smtpd pid 7665 exit status 1
    Jul 27 17:41:23 crud-04 postfix/master[7576]: warning: /usr/lib/postfix/smtpd: bad command startup -- throttling
    Jul 27 17:42:23 crud-04 postfix/smtpd[7677]: warning: SASL per-process initialization failed: generic failure
    Jul 27 17:42:23 crud-04 postfix/smtpd[7677]: fatal: SASL per-process initialization failed
    Jul 27 17:42:24 crud-04 postfix/master[7576]: warning: process /usr/lib/postfix/smtpd pid 7677 exit status 1
    Jul 27 17:42:24 crud-04 postfix/master[7576]: warning: /usr/lib/postfix/smtpd: bad command startup -- throttling
    Jul 27 17:43:24 crud-04 postfix/smtpd[7682]: warning: SASL per-process initialization failed: generic failure
    Jul 27 17:43:24 crud-04 postfix/smtpd[7682]: fatal: SASL per-process initialization failed
    Jul 27 17:43:25 crud-04 postfix/master[7576]: warning: process /usr/lib/postfix/smtpd pid 7682 exit status 1
    Jul 27 17:43:25 crud-04 postfix/master[7576]: warning: /usr/lib/postfix/smtpd: bad command startup -- throttling
    
    Following is my /etc/postfix/sasl/smtpd.conf file

    Code:
    pwcheck_method:saslauthd
    mech_list:plain login
    allow_plaintext:true
    auxprop_plugin:mysql
    sql_hostname=127.0.0.1
    sql_user:xxxxxxx
    sql_password:xxxxxx
    sql_database:mail
    sql_select:select password from users where email ='%u'
    
    Following is my /etc/pam.d/smtp file

    Code:
    auth    required   pam_mysql.so user=xxxxxxxxxx passwd=xxxxxxx host=127.0.0.1 db=mail table=users usercolumn=email passwdcolumn=password crypt=1
    account sufficient pam_mysql.so user=xxxxxxxxxx passwd=xxxxxxx host=127.0.0.1 db=mail table=users usercolumn=email passwdcolumn=password crypt=1
    Following is my /etc/postfix/main.cf file

    Code:
    # See /usr/share/postfix/main.cf.dist for a commented, more complete version
    
    
    # Debian specific:  Specifying a file name will cause the first
    # line of that file to be used as the name.  The Debian default
    # is /etc/mailname.
    #myorigin = /etc/mailname
    
    smtpd_banner = $myhostname ESMTP $mail_name (Ubuntu)
    biff = no
    
    # appending .domain is the MUA's job.
    append_dot_mydomain = no
    
    # Uncomment the next line to generate "delayed mail" warnings
    #delay_warning_time = 4h
    
    readme_directory = /usr/share/doc/postfix
    
    # TLS parameters
    smtpd_tls_cert_file = /etc/postfix/smtpd.cert
    smtpd_tls_key_file = /etc/postfix/smtpd.key
    smtpd_use_tls = yes
    smtpd_tls_session_cache_database = btree:${data_directory}/smtpd_scache
    smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache
    
    # See /usr/share/doc/postfix/TLS_README.gz in the postfix-doc package for
    # information on enabling SSL in the smtp client.
    
    
    myhostname = crud-04.ccrudolphy.net
    alias_maps = hash:/etc/aliases
    alias_database = hash:/etc/aliases
    myorigin = /etc/mailname
    mydestination = crud-04.ccrudolphy.net, localhost, localhost.localdomain
    relayhost = smtp.att.yahoo.com 
    mynetworks = 127.0.0.0/8, 192.168.1.0/24
    mailbox_size_limit = 0
    recipient_delimiter = +
    inet_interfaces = all
    html_directory = /usr/share/doc/postfix/html
    virtual_alias_domains = 
    virtual_alias_maps = proxy:mysql:/etc/postfix/mysql-virtual_forwardings.cf, mysql:/etc/postfix/mysql-virtual_email2email.cf
    virtual_mailbox_domains = proxy:mysql:/etc/postfix/mysql-virtual_domains.cf
    virtual_mailbox_maps = proxy:mysql:/etc/postfix/mysql-virtual_mailboxes.cf
    virtual_mailbox_base = /home/vmail
    virtual_uid_maps = static:5000
    virtual_gid_maps = static:5000
    smtpd_sasl_auth_enable = yes
    broken_sasl_auth_clients = yes
    smtpd_sasl_authenticated_header = yes
    smtpd_recipient_restrictions = permit_mynetworks, permit_sasl_authenticated, reject_unauth_destination
    transport_maps = proxy:mysql:/etc/postfix/mysql-virtual_transports.cf
    virtual_create_maildirsize = yes
    virtual_mailbox_extended = yes
    virtual_mailbox_limit_maps = proxy:mysql:/etc/postfix/mysql-virtual_mailbox_limit_maps.cf
    virtual_mailbox_limit_override = yes
    virtual_mailbox_limit_message = "The user you are trying to reach is over their quota."
    virtual_overquota_bounce = yes
    proxy_read_maps = $local_recipient_maps $mydestination $virtual_alias_maps $virtual_alias_domains $virtual_mailbox_maps $virtual_mailbox_domains $relay_recipient_maps $relay_domains $canonical_maps $sender_canonical_maps $recipient_canonical_maps $relocated_maps $transport_maps $mynetworks $virtual_mailbox_limit_maps
    content_filter = amavis:[127.0.0.1]:10024
    receive_override_options = no_address_mappings
    smtp_sasl_auth_enable = yes
    smtp_sasl_password_maps = hash:/etc/postfix/sasl_passwd
    smtp_sasl_security_options =
    
    Following is my /etc/postfix/master.cf file

    Code:
    #
    # Postfix master process configuration file.  For details on the format
    # of the file, see the master(5) manual page (command: "man 5 master").
    #
    # Do not forget to execute "postfix reload" after editing this file.
    #
    # ==========================================================================
    # service type  private unpriv  chroot  wakeup  maxproc command + args
    #               (yes)   (yes)   (yes)   (never) (100)
    # ==========================================================================
    smtp      inet  n       -       -       -       -       smtpd
    #submission inet n       -       -       -       -       smtpd
    #  -o smtpd_tls_security_level=encrypt
    #  -o smtpd_sasl_auth_enable=yes
    #  -o smtpd_client_restrictions=permit_sasl_authenticated,reject
    #  -o milter_macro_daemon_name=ORIGINATING
    #smtps     inet  n       -       -       -       -       smtpd
    #  -o smtpd_tls_wrappermode=yes
    #  -o smtpd_sasl_auth_enable=yes
    #  -o smtpd_client_restrictions=permit_sasl_authenticated,reject
    #  -o milter_macro_daemon_name=ORIGINATING
    #628      inet  n       -       -       -       -       qmqpd
    pickup    fifo  n       -       -       60      1       pickup
    cleanup   unix  n       -       -       -       0       cleanup
    qmgr      fifo  n       -       n       300     1       qmgr
    #qmgr     fifo  n       -       -       300     1       oqmgr
    tlsmgr    unix  -       -       -       1000?   1       tlsmgr
    rewrite   unix  -       -       -       -       -       trivial-rewrite
    bounce    unix  -       -       -       -       0       bounce
    defer     unix  -       -       -       -       0       bounce
    trace     unix  -       -       -       -       0       bounce
    verify    unix  -       -       -       -       1       verify
    flush     unix  n       -       -       1000?   0       flush
    proxymap  unix  -       -       n       -       -       proxymap
    proxywrite unix -       -       n       -       1       proxymap
    smtp      unix  -       -       -       -       -       smtp
    # When relaying mail as backup MX, disable fallback_relay to avoid MX loops
    relay     unix  -       -       -       -       -       smtp
            -o smtp_fallback_relay=
    #       -o smtp_helo_timeout=5 -o smtp_connect_timeout=5
    showq     unix  n       -       -       -       -       showq
    error     unix  -       -       -       -       -       error
    retry     unix  -       -       -       -       -       error
    discard   unix  -       -       -       -       -       discard
    local     unix  -       n       n       -       -       local
    virtual   unix  -       n       n       -       -       virtual
    lmtp      unix  -       -       -       -       -       lmtp
    anvil     unix  -       -       -       -       1       anvil
    scache    unix  -       -       -       -       1       scache
    #
    # ====================================================================
    # Interfaces to non-Postfix software. Be sure to examine the manual
    # pages of the non-Postfix software to find out what options it wants.
    #
    # Many of the following services use the Postfix pipe(8) delivery
    # agent.  See the pipe(8) man page for information about ${recipient}
    # and other message envelope options.
    # ====================================================================
    #
    # maildrop. See the Postfix MAILDROP_README file for details.
    # Also specify in main.cf: maildrop_destination_recipient_limit=1
    #
    maildrop  unix  -       n       n       -       -       pipe
      flags=DRhu user=vmail argv=/usr/bin/maildrop -d ${recipient}
    #
    # See the Postfix UUCP_README file for configuration details.
    #
    uucp      unix  -       n       n       -       -       pipe
      flags=Fqhu user=uucp argv=uux -r -n -z -a$sender - $nexthop!rmail ($recipient)
    #
    # Other external delivery methods.
    #
    ifmail    unix  -       n       n       -       -       pipe
      flags=F user=ftn argv=/usr/lib/ifmail/ifmail -r $nexthop ($recipient)
    bsmtp     unix  -       n       n       -       -       pipe
      flags=Fq. user=bsmtp argv=/usr/lib/bsmtp/bsmtp -t$nexthop -f$sender $recipient
    scalemail-backend unix  -       n       n       -       2       pipe
      flags=R user=scalemail argv=/usr/lib/scalemail/bin/scalemail-store ${nexthop} ${user} ${extension}
    mailman   unix  -       n       n       -       -       pipe
      flags=FR user=list argv=/usr/lib/mailman/bin/postfix-to-mailman.py
      ${nexthop} ${user}
    amavis unix -   -       -       -       2       smtp
            -o smtp_data_done_timeout=1200
            -o smtp_send_xforward_command=yes
    
    127.0.0.1:10025 inet n  -       -       -       -       smtpd
            -o content_filter=
            -o local_recipient_maps=
            -o relay_recipient_maps=
            -o smtpd_restriction_classes=
            -o smtpd_client_restrictions=
            -o smtpd_helo_restrictions=
            -o smtpd_sender_restrictions=
            -o smtpd_recipient_restrictions=permit_mynetworks,reject
            -o mynetworks=127.0.0.0/8
            -o strict_rfc821_envelopes=yes
            -o receive_override_options=no_unknown_recipient_checks,no_header_body_checks
            -o smtpd_bind_address=127.0.0.1
    
    Output from netstat tap

    Code:
    Active Internet connections (servers and established)
    Proto Recv-Q Send-Q Local Address           Foreign Address         State       PID/Program name
    tcp        0      0 *:nfs                   *:*                     LISTEN      -               
    tcp        0      0 *:52386                 *:*                     LISTEN      -               
    tcp        0      0 localhost.localdo:10024 *:*                     LISTEN      5009/amavisd (maste
    tcp        0      0 localhost.localdo:10025 *:*                     LISTEN      7576/master     
    tcp        0      0 localhost.localdo:mysql *:*                     LISTEN      5083/mysqld     
    tcp        0      0 *:netbios-ssn           *:*                     LISTEN      5758/smbd       
    tcp        0      0 *:44335                 *:*                     LISTEN      4600/rpc.statd  
    tcp        0      0 *:sunrpc                *:*                     LISTEN      4584/portmap    
    tcp        0      0 *:www                   *:*                     LISTEN      6074/apache2    
    tcp        0      0 *:38965                 *:*                     LISTEN      5671/rpc.mountd 
    tcp        0      0 *:ipp                   *:*                     LISTEN      5597/cupsd      
    tcp        0      0 *:smtp                  *:*                     LISTEN      7576/master     
    tcp        0      0 *:https                 *:*                     LISTEN      6074/apache2    
    tcp        0      0 *:957                   *:*                     LISTEN      5869/rpc.rquotad
    tcp        0      0 *:microsoft-ds          *:*                     LISTEN      5758/smbd       
    tcp        1      0 crud-04.ccrudolphy:smtp correctansw.com:43339   CLOSE_WAIT  -               
    tcp        1      0 crud-04.ccrudolphy:smtp 82.199.109.134.isk:1911 CLOSE_WAIT  -               
    tcp        0      0 crud-04.ccrudolphy:smtp 77.51.96.77:22279       ESTABLISHED -               
    tcp        0      0 crud-04.ccrudolphy:smtp correctansw.com:59307   ESTABLISHED -               
    tcp6       0      0 [::]:imaps              [::]:*                  LISTEN      5536/couriertcpd
    tcp6       0      0 [::]:pop3s              [::]:*                  LISTEN      5575/couriertcpd
    tcp6       0      0 [::]:pop3               [::]:*                  LISTEN      5555/couriertcpd
    tcp6       0      0 [::]:imap2              [::]:*                  LISTEN      5516/couriertcpd
    tcp6       0      0 [::]:ssh                [::]:*                  LISTEN      4953/sshd       
    tcp6       0      0 [::]:ipp                [::]:*                  LISTEN      5597/cupsd      
    tcp6       0      0 crud-04.ccrudolphy.:ssh crud-13.ccrudolph:40083 ESTABLISHED 6644/1
    
    Output from ps aux

    Code:
    USER       PID %CPU %MEM    VSZ   RSS TTY      STAT START   TIME COMMAND
    root         1  0.0  0.1   2844  1696 ?        Ss   16:23   0:01 /sbin/init
    root         2  0.0  0.0      0     0 ?        S<   16:23   0:00 [kthreadd]
    root         3  0.0  0.0      0     0 ?        S<   16:23   0:00 [migration/0]
    root         4  0.0  0.0      0     0 ?        S<   16:23   0:00 [ksoftirqd/0]
    root         5  0.0  0.0      0     0 ?        S<   16:23   0:00 [watchdog/0]
    root         6  0.0  0.0      0     0 ?        S<   16:23   0:00 [events/0]
    root         7  0.0  0.0      0     0 ?        S<   16:23   0:00 [khelper]
    root        41  0.0  0.0      0     0 ?        S<   16:23   0:00 [kblockd/0]
    root        44  0.0  0.0      0     0 ?        S<   16:23   0:00 [kacpid]
    root        45  0.0  0.0      0     0 ?        S<   16:23   0:00 [kacpi_notify]
    root       151  0.0  0.0      0     0 ?        S<   16:23   0:00 [kseriod]
    root       189  0.0  0.0      0     0 ?        S    16:23   0:00 [pdflush]
    root       190  0.0  0.0      0     0 ?        S    16:23   0:00 [pdflush]
    root       191  0.0  0.0      0     0 ?        S<   16:23   0:00 [kswapd0]
    root       235  0.0  0.0      0     0 ?        S<   16:23   0:00 [aio/0]
    root      1195  0.0  0.0      0     0 ?        S<   16:23   0:00 [ksnapd]
    root      1585  0.0  0.0      0     0 ?        S<   16:23   0:00 [ksuspend_usbd]
    root      1591  0.0  0.0      0     0 ?        S<   16:23   0:00 [khubd]
    root      1610  0.0  0.0      0     0 ?        S<   16:23   0:00 [ata/0]
    root      1617  0.0  0.0      0     0 ?        S<   16:23   0:00 [ata_aux]
    root      1620  0.0  0.0      0     0 ?        S<   16:23   0:00 [khpsbpkt]
    root      2365  0.0  0.0      0     0 ?        S<   16:23   0:00 [scsi_eh_0]
    root      2367  0.0  0.0      0     0 ?        S<   16:23   0:00 [scsi_eh_1]
    root      2423  0.0  0.0      0     0 ?        S<   16:23   0:00 [scsi_eh_2]
    root      2425  0.0  0.0      0     0 ?        S<   16:23   0:00 [scsi_eh_3]
    root      2453  0.0  0.0      0     0 ?        S<   16:23   0:00 [knodemgrd_0]
    root      2805  0.0  0.0      0     0 ?        S<   16:23   0:00 [kjournald]
    root      2960  0.0  0.0   2220   716 ?        S<s  16:23   0:00 /sbin/udevd --daemon
    root      3285  0.0  0.0      0     0 ?        S<   16:23   0:00 [kgameportd]
    root      4439  0.0  0.0      0     0 ?        S<   16:23   0:00 [kjournald]
    root      4440  0.0  0.0      0     0 ?        S<   16:23   0:00 [kjournald]
    root      4441  0.0  0.0      0     0 ?        S<   16:23   0:00 [kjournald]
    root      4442  0.0  0.0      0     0 ?        S<   16:23   0:00 [kjournald]
    root      4443  0.0  0.0      0     0 ?        S<   16:23   0:00 [kjournald]
    root      4444  0.0  0.0      0     0 ?        S<   16:23   0:00 [kjournald]
    daemon    4584  0.0  0.0   1832   568 ?        Ss   16:23   0:00 /sbin/portmap
    statd     4600  0.0  0.0   1896   712 ?        Ss   16:23   0:00 /sbin/rpc.statd
    root      4606  0.0  0.0      0     0 ?        S<   16:23   0:00 [rpciod/0]
    root      4621  0.0  0.0   3648   560 ?        Ss   16:23   0:00 /usr/sbin/rpc.idmapd
    root      4837  0.0  0.0   1716   508 tty4     Ss+  16:23   0:00 /sbin/getty 38400 tty4
    root      4838  0.0  0.0   1716   516 tty5     Ss+  16:23   0:00 /sbin/getty 38400 tty5
    root      4842  0.0  0.0   1716   512 tty2     Ss+  16:23   0:00 /sbin/getty 38400 tty2
    root      4843  0.0  0.0   1716   516 tty3     Ss+  16:23   0:00 /sbin/getty 38400 tty3
    root      4845  0.0  0.0   1716   516 tty6     Ss+  16:23   0:00 /sbin/getty 38400 tty6
    
    
    syslog    4893  0.0  0.0   1936   644 ?        Ss   16:23   0:00 /sbin/syslogd -u syslog
    root      4912  0.0  0.0   1868   540 ?        S    16:23   0:00 /bin/dd bs 1 if /proc/kmsg of /var/run/klogd/kmsg
    klog      4914  0.0  0.2   3404  2236 ?        Ss   16:23   0:00 /sbin/klogd -P /var/run/klogd/kmsg
    105       4933  0.0  0.0   2564   964 ?        Ss   16:23   0:00 /usr/bin/dbus-daemon --system
    root      4953  0.0  0.0   5316  1016 ?        Ss   16:23   0:00 /usr/sbin/sshd
    amavis    5009  0.0  5.3  66272 55076 ?        Ss   16:23   0:01 amavisd (master)
    root      5041  0.0  0.1   2764  1304 ?        S    16:23   0:00 /bin/sh /usr/bin/mysqld_safe
    mysql     5083  0.0  1.7 128152 17944 ?        Sl   16:23   0:02 /usr/sbin/mysqld --basedir=/usr --datadir=/var/lib/mysql --user=mysql --pid-file=/var/run/mysqld/mysqld.pid --skip-external-locking --port=330
    root      5085  0.0  0.0   1700   560 ?        S    16:23   0:00 logger -p daemon.err -t mysqld_safe -i -t mysqld
    clamav    5386  0.1  4.9  61184 51040 ?        Ss   16:24   0:11 /usr/sbin/clamd
    clamav    5484  0.0  0.2   7376  2420 ?        Ss   16:24   0:00 /usr/bin/freshclam -d --quiet
    root      5499  0.0  0.0   1904   452 ?        S    16:24   0:00 /usr/sbin/courierlogger -pid=/var/run/courier/authdaemon/pid -start /usr/lib/courier/courier-authlib/authdaemond
    root      5500  0.0  0.1   4384  1040 ?        S    16:24   0:00 /usr/lib/courier/courier-authlib/authdaemond
    root      5515  0.0  0.0   1904   360 ?        S    16:24   0:00 /usr/sbin/courierlogger -pid=/var/run/courier/imapd.pid -start -name=imapd /usr/sbin/couriertcpd -address=0 -maxprocs=40 -maxperip=20 -nodnslo
    root      5516  0.0  0.0   2004   596 ?        S    16:24   0:00 /usr/sbin/couriertcpd -address=0 -maxprocs=40 -maxperip=20 -nodnslookup -noidentlookup 143 /usr/lib/courier/courier/imaplogin /usr/bin/imapd M
    root      5535  0.0  0.0   1904   360 ?        S    16:24   0:00 /usr/sbin/courierlogger -pid=/var/run/courier/imapd-ssl.pid -start -name=imapd-ssl /usr/sbin/couriertcpd -address=0 -maxprocs=40 -maxperip=20
    root      5536  0.0  0.0   2004   596 ?        S    16:24   0:00 /usr/sbin/couriertcpd -address=0 -maxprocs=40 -maxperip=20 -nodnslookup -noidentlookup 993 /usr/bin/couriertls -server -tcpd /usr/lib/courier/
    root      5539  0.0  0.1   4428  1396 ?        S    16:24   0:00 /usr/lib/courier/courier-authlib/authdaemond
    root      5540  0.0  0.1   4428  1396 ?        S    16:24   0:00 /usr/lib/courier/courier-authlib/authdaemond
    root      5541  0.0  0.1   4428  1396 ?        S    16:24   0:00 /usr/lib/courier/courier-authlib/authdaemond
    root      5542  0.0  0.1   4428  1396 ?        S    16:24   0:00 /usr/lib/courier/courier-authlib/authdaemond
    root      5543  0.0  0.1   4428  1400 ?        S    16:24   0:00 /usr/lib/courier/courier-authlib/authdaemond
    root      5554  0.0  0.0   1904   364 ?        S    16:24   0:00 /usr/sbin/courierlogger -pid=/var/run/courier/pop3d.pid -start -name=pop3d /usr/sbin/couriertcpd -maxprocs=40 -maxperip=4 -nodnslookup -noiden
    root      5555  0.0  0.0   2004   596 ?        S    16:24   0:00 /usr/sbin/couriertcpd -maxprocs=40 -maxperip=4 -nodnslookup -noidentlookup -address=0 110 /usr/lib/courier/courier/courierpop3login /usr/lib/c
    root      5574  0.0  0.0   1904   452 ?        S    16:24   0:00 /usr/sbin/courierlogger -pid=/var/run/courier/pop3d-ssl.pid -start -name=pop3d-ssl /usr/sbin/couriertcpd -address=0 -maxprocs=40 -maxperip=4 -
    root      5575  0.0  0.0   2004   608 ?        S    16:24   0:00 /usr/sbin/couriertcpd -address=0 -maxprocs=40 -maxperip=4 -nodnslookup -noidentlookup 995 /usr/bin/couriertls -server -tcpd /usr/lib/courier/c
    root      5597  0.0  0.2  14108  2580 ?        Ss   16:24   0:00 /usr/sbin/cupsd
    root      5609  0.0  0.3   6184  3832 ?        S    16:24   0:00 ddclient - sleeping for 10 seconds
    root      5658  0.0  0.0      0     0 ?        S    16:24   0:00 [lockd]
    root      5659  0.0  0.0      0     0 ?        S<   16:24   0:00 [nfsd4]
    root      5660  0.0  0.0      0     0 ?        S    16:24   0:00 [nfsd]
    root      5661  0.0  0.0      0     0 ?        S    16:24   0:00 [nfsd]
    root      5662  0.0  0.0      0     0 ?        S    16:24   0:00 [nfsd]
    root      5663  0.0  0.0      0     0 ?        S    16:24   0:00 [nfsd]
    root      5664  0.0  0.0      0     0 ?        S    16:24   0:00 [nfsd]
    root      5665  0.0  0.0      0     0 ?        S    16:24   0:00 [nfsd]
    root      5666  0.0  0.0      0     0 ?        S    16:24   0:00 [nfsd]
    root      5667  0.0  0.0      0     0 ?        S    16:24   0:00 [nfsd]
    root      5671  0.0  0.0   2424   800 ?        Ss   16:24   0:00 /usr/sbin/rpc.mountd
    root      5755  0.0  0.1   6532  1508 ?        Ss   16:24   0:00 /usr/sbin/nmbd -D
    root      5756  0.0  0.2   8408  2096 ?        S    16:24   0:00 /usr/sbin/nmbd -D
    root      5758  0.0  0.2  10132  2644 ?        Ss   16:24   0:00 /usr/sbin/smbd -D
    root      5787  0.0  0.1  10132  1076 ?        S    16:24   0:00 /usr/sbin/smbd -D
    root      5804  0.0  0.1   8092  1356 ?        Ss   16:24   0:00 /usr/sbin/winbindd
    root      5860  0.0  0.1   8244  1680 ?        S    16:24   0:00 /usr/sbin/winbindd
    root      5869  0.0  0.0   1936   252 ?        Ss   16:24   0:00 /usr/sbin/rpc.rquotad
    amavis    5889  0.0  5.2  67468 54828 ?        S    16:24   0:00 amavisd (ch2-avail)
    amavis    5890  0.0  5.2  67336 54688 ?        S    16:24   0:00 amavisd (ch2-avail)
    114       5892  0.0  0.3   6016  3852 ?        Ss   16:24   0:00 /usr/sbin/hald
    root      5895  0.0  0.2   7716  2112 ?        Ssl  16:24   0:00 /usr/sbin/console-kit-daemon
    root      5957  0.0  0.1   3348  1176 ?        S    16:24   0:00 hald-runner
    114       5976  0.0  0.0   2200   908 ?        S    16:24   0:00 hald-addon-acpi: listening on acpi kernel interface /proc/acpi/event
    root      5987  0.0  0.1   3416  1156 ?        S    16:24   0:00 hald-addon-input: Listening on /dev/input/event1 /dev/input/event3 /dev/input/event4
    root      5994  0.0  0.1   3420  1144 ?        S    16:24   0:00 hald-addon-storage: no polling on /dev/fd0 because it is explicitly disabled
    root      6008  0.0  0.1   3420  1164 ?        S    16:24   0:00 hald-addon-storage: polling /dev/scd0 (every 16 sec)
    root      6011  0.0  0.1   3420  1164 ?        S    16:24   0:00 hald-addon-storage: polling /dev/scd1 (every 16 sec)
    root      6026  0.0  0.0   2084   344 ?        Ss   16:24   0:00 /sbin/mdadm --monitor --pid-file /var/run/mdadm/monitor.pid --daemonise --scan --syslog
    daemon    6040  0.0  0.0   1980   420 ?        Ss   16:24   0:00 /usr/sbin/atd
    root      6051  0.0  0.0   2100   888 ?        Ss   16:24   0:00 /usr/sbin/cron
    root      6074  0.0  1.0  33620 11284 ?        Ss   16:24   0:00 /usr/sbin/apache2 -k start
    root      6097  0.0  0.0   1716   508 tty1     Ss+  16:24   0:00 /sbin/getty 38400 tty1
    www-data  6100  0.0  1.9  45660 20464 ?        S    16:24   0:00 /usr/sbin/apache2 -k start
    www-data  6101  0.0  0.5  33976  5996 ?        S    16:24   0:00 /usr/sbin/apache2 -k start
    www-data  6102  0.0  0.5  33976  6000 ?        S    16:24   0:00 /usr/sbin/apache2 -k start
    www-data  6103  0.0  0.5  33976  5996 ?        S    16:24   0:00 /usr/sbin/apache2 -k start
    www-data  6104  0.0  0.5  33976  5996 ?        S    16:24   0:00 /usr/sbin/apache2 -k start
    www-data  6314  0.0  0.5  33976  5996 ?        S    16:40   0:00 /usr/sbin/apache2 -k start
    root      6644  0.0  0.3  11492  3700 ?        Rs   16:55   0:00 sshd: [email protected]/1 
    root      6646  0.0  0.1   4164  1804 pts/1    Rs   16:55   0:00 -bash
    root      6813  0.0  0.0   8092   968 ?        S    17:01   0:00 /usr/sbin/winbindd
    root      7473  0.0  0.0   7868   756 ?        Ss   17:29   0:00 /usr/sbin/saslauthd -a pam -c -m /var/spool/postfix/var/run/saslauthd -r -n 5
    root      7474  0.0  0.1   9976  1576 ?        S    17:29   0:00 /usr/sbin/saslauthd -a pam -c -m /var/spool/postfix/var/run/saslauthd -r -n 5
    root      7476  0.0  0.0   7868   464 ?        S    17:29   0:00 /usr/sbin/saslauthd -a pam -c -m /var/spool/postfix/var/run/saslauthd -r -n 5
    root      7478  0.0  0.0   7868   348 ?        S    17:29   0:00 /usr/sbin/saslauthd -a pam -c -m /var/spool/postfix/var/run/saslauthd -r -n 5
    root      7479  0.0  0.0   7868   348 ?        S    17:29   0:00 /usr/sbin/saslauthd -a pam -c -m /var/spool/postfix/var/run/saslauthd -r -n 5
    root      7576  0.0  0.1   5392  1736 ?        Ss   17:31   0:00 /usr/lib/postfix/master
    postfix   7577  0.0  0.1   5404  1652 ?        S    17:31   0:00 pickup -l -t fifo -u -c
    postfix   7579  0.0  0.1   5444  1696 ?        S    17:31   0:00 qmgr -l -t fifo -u
    root      7814  0.0  0.0   2644  1004 pts/1    R+   17:59   0:00 ps aux
    
    If I give the command "Telnet localhost 25" and then "ehlo localhost" it just hangs and I have to restart postfix to get back to the command prompt.

    From the command line I can login in to my sql database as the mail admin user succesfully and I can execute a query such as "Select email from users;" and it returns correct email addresses.

    I can also use the command
    Code:
    testsaslauthd -u xxxxx -p xxxxxxxx -f /var/spool/postfix/var/run/saslauthd/mux
    
    And it return "OK"

    Can you help with my problem??:confused:
     
  2. falko

    falko Super Moderator ISPConfig Developer

    It must be
    Code:
    sql_hostnames[B][COLOR="Red"]:[/COLOR][/B] 127.0.0.1
    not
    Code:
    sql_hostname[B][COLOR="Red"]=[/COLOR][/B]127.0.0.1
     
  3. crudolphy

    crudolphy New Member

    Many Thanks!

    Falko, I have using your site and the tutorials posted there for several years now. I find that all that I have used are well written and work without flaw!

    To think that a mistyped "=" instead of ":" was the problem. I must of looked over those files for hours and didn't catch that.

    What a second pair of eyes will do! Thanks for your sharp editing skills.

    Chuck:)
     

Share This Page