SMTP Email

Discussion in 'Installation/Configuration' started by bkrausz, Jun 9, 2006.

  1. bkrausz

    bkrausz New Member

    Hello, I'm just about done setting up my ISPConfig install (this forum was invaluable...thanks!). I just have one more problem:

    I cannot send mail through the server. I setup SMTP to work on port 587 in addition to 25 (through inetd). When I try to send mail it required auth, I try the auth with the correct username (u4_brian, I changed web[WEBID] to u[WEBID]) and password, only to be denied.

    I can use webmail without a problem. My server doesn't have any ports blocked. My house has port 25 blocked, but again, I worked around that and it has no problems. I'm on Debian 3.1

    Here is the output from /var/log/mail.log:
    Code:
    Jun  9 18:19:58 HOSTNAME postfix/smtpd[32695]: warning: database /etc/postfix/virtusertable.db is older than source file /etc/postfix/virtusertable
    Jun  9 18:19:58 HOSTNAME postfix/smtpd[32695]: connect from MYHOST[MYIP]
    Jun  9 18:20:04 HOSTNAME postfix/smtpd[32695]: warning: SASL authentication failure: Password verification failed
    Jun  9 18:20:04 HOSTNAME postfix/smtpd[32695]: warning: MYHOST[MYIP]: SASL PLAIN authentication failed
    Jun  9 18:20:06 HOSTNAME postfix/smtpd[32695]: warning: MYHOST[MYIP]: SASL LOGIN authentication failed
    Jun  9 18:20:11 HOSTNAME postfix/smtpd[32695]: lost connection after AUTH from MYHOST[MYIP]
    Jun  9 18:20:11 HOSTNAME postfix/smtpd[32695]: disconnect from MYHOST[MYIP]
    
    Here is postfix's main.cf:
    Code:
    # See /usr/share/postfix/main.cf.dist for a commented, more complete version
    
    smtpd_banner = $myhostname ESMTP $mail_name (Debian/GNU)
    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
    
    myhostname = HOSTNAME.com
    alias_maps = hash:/etc/aliases
    alias_database = hash:/etc/aliases
    myorigin = /etc/mailname
    #mydestination = HOSTNAME.com, localhost.com, , localhost
    relayhost =
    mynetworks = 127.0.0.0/8
    mailbox_command = procmail -a "$EXTENSION"
    mailbox_size_limit = 0
    recipient_delimiter = +
    inet_interfaces = all
    smtpd_sasl_local_domain = $myhostname
    smtpd_sasl_auth_enable = yes
    smtpd_sasl_security_options = noanonymous
    broken_sasl_auth_clients = yes
    smtpd_recipient_restrictions = permit_sasl_authenticated,permit_mynetworks,reject_unauth_destination
    smtpd_tls_session_cache_timeout = 3600s
    tls_random_source = dev:/dev/urandom
    smtpd_tls_auth_only = no
    smtp_use_tls = yes
    smtpd_use_tls = yes
    smtp_tls_note_starttls_offer = yes
    smtpd_tls_key_file = /etc/postfix/ssl/smtpd.key
    smtpd_tls_cert_file = /etc/postfix/ssl/smtpd.crt
    smtpd_tls_CAfile = /etc/postfix/ssl/cacert.pem
    smtpd_tls_loglevel = 1
    smtpd_tls_received_header = yes
    virtual_maps = hash:/etc/postfix/virtusertable
    mydestination = /etc/postfix/local-host-names
    
    Here is master.cf:
    Code:
    smtp      inet  n       -       -       -       -       smtpd
    587       inet  n       -       -       -       -       smtpd
    #submission inet n      -       -       -       -       smtpd
    #       -o smtpd_etrn_restrictions=reject
    #628      inet  n       -       -       -       -       qmqpd
    pickup    fifo  n       -       -       60      1       pickup
    cleanup   unix  n       -       -       -       0       cleanup
    qmgr      fifo  n       -       -       300     1       qmgr
    #qmgr     fifo  n       -       -       300     1       oqmgr
    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
    smtp      unix  -       -       -       -       -       smtp
    relay     unix  -       -       -       -       -       smtp
    #       -o smtp_helo_timeout=5 -o smtp_connect_timeout=5
    showq     unix  n       -       -       -       -       showq
    error     unix  -       -       -       -       -       error
    local     unix  -       n       n       -       -       local
    virtual   unix  -       n       n       -       -       virtual
    lmtp      unix  -       -       n       -       -       lmtp
    anvil     unix  -       -       n       -       1       anvil
    #
    # Interfaces to non-Postfix software. Be sure to examine the manual
    # pages of the non-Postfix software to find out what options it wants.
    #
    # maildrop. See the Postfix MAILDROP_README file for details.
    #
    maildrop  unix  -       n       n       -       -       pipe
      flags=DRhu user=vmail argv=/usr/local/bin/maildrop -d ${recipient}
    uucp      unix  -       n       n       -       -       pipe
      flags=Fqhu user=uucp argv=uux -r -n -z -a$sender - $nexthop!rmail ($recipient)
    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 -d -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}
    
    # only used by postfix-tls
    #tlsmgr   fifo  -       -       n       300     1       tlsmgr
    #smtps    inet  n       -       n       -       -       smtpd -o smtpd_tls_wrappermode=yes -o smtpd_sasl_auth_enable=yes
    #587      inet  n       -       n       -       -       smtpd -o smtpd_enforce_tls=yes -o smtpd_sasl_auth_enable=yes
    
    Ideas?
     
    Last edited: Jun 9, 2006
  2. bkrausz

    bkrausz New Member

Share This Page