Help understanding how mail server should be setup

Discussion in 'Server Operation' started by micko_escalade, Jan 28, 2006.

  1. micko_escalade

    micko_escalade New Member

    Here we go..
    Code:
    [root@m5-fedora4-04 ~]# telnet localhost 25
    Trying 127.0.0.1...
    Connected to localhost.localdomain (127.0.0.1).
    Escape character is '^]'.
    220 m5-fedora4-04.myxen.com ESMTP Postfix
    ehlo localhost
    250-m5-fedora4-04.myxen.com
    250-PIPELINING
    250-SIZE 10240000
    250-VRFY
    250-ETRN
    250-AUTH PLAIN LOGIN
    250-AUTH=PLAIN LOGIN
    250 8BITMIME
    
    
    
     
  2. falko

    falko Super Moderator Howtoforge Staff

    This looks better. :) Can you send emails now with Outlook?
     
  3. micko_escalade

    micko_escalade New Member

    I hate to tell you but I can't same login pops up :(
    I know for sure that I have it correct cause I just loged in to SquirrelMail with same info,
    how do I un-install postfix and follow from here Postfix With SMTP-AUTH And TLS
    because Fedora core 4 was installed on my VPS by my host not me,
     
  4. falko

    falko Super Moderator Howtoforge Staff

    I wouldn't uninstall Postfix, I'd simply run all the Postfix and saslauthd configuration steps from the tutorial over the existing configuration.
     
  5. micko_escalade

    micko_escalade New Member

    Ok, thanks I'll do that,
    hopefully it goes well,
    I'll report results.
     
  6. micko_escalade

    micko_escalade New Member

    This is unbelievable :mad:
    same problem even after I followed "Postfix With SMTP-AUTH And TLS" part
    I found this small utility on the net that supposely made for debugging purposes
    http://postfix.state-of-mind.de/patrick.koetter/saslfinger/
    bellow are outputs of ./saslfinger -c and ./saslfinger -c

    at the buttom of ./saslfinger -c command it says
    is that a hint ?
    Code:
    [root@m5-fedora4-04 saslfinger-1.0]# ./saslfinger -c
    saslfinger - postfix Cyrus sasl configuration Mon Feb  6 18:58:56 PST 2006
    version: 1.0
    mode: client-side SMTP AUTH
    
    -- basics --
    Postfix: 2.2.2
    System: Fedora Core release 4 (Stentz)
    
    -- smtp is linked to --
            libsasl2.so.2 => /usr/lib/libsasl2.so.2 (0x4bbe1000)
    
    -- active SMTP AUTH and TLS parameters for smtp --
    smtp_tls_note_starttls_offer = yes
    smtp_use_tls = yes
    
    
    -- listing of /usr/lib/sasl --
    total 404
    drwxr-xr-x   2 root root  4096 Feb  5 12:02 .
    drwxr-xr-x  46 root root 20480 Feb  6 04:03 ..
    -rw-r--r--   1 root root  4854 Apr 13  2005 libanonymous.a
    -rwxr-xr-x   1 root root   873 Apr 13  2005 libanonymous.la
    -rwxr-xr-x   1 root root  5808 Apr 13  2005 libanonymous.so
    -rwxr-xr-x   1 root root  5808 Apr 13  2005 libanonymous.so.1
    -rwxr-xr-x   1 root root  5808 Apr 13  2005 libanonymous.so.1.0.17
    -rw-r--r--   1 root root 10490 Apr 13  2005 libcrammd5.a
    -rwxr-xr-x   1 root root   859 Apr 13  2005 libcrammd5.la
    -rwxr-xr-x   1 root root 10500 Apr 13  2005 libcrammd5.so
    -rwxr-xr-x   1 root root 10500 Apr 13  2005 libcrammd5.so.1
    -rwxr-xr-x   1 root root 10500 Apr 13  2005 libcrammd5.so.1.0.19
    -rw-r--r--   1 root root 34148 Apr 13  2005 libdigestmd5.a
    -rwxr-xr-x   1 root root   882 Apr 13  2005 libdigestmd5.la
    -rwxr-xr-x   1 root root 29900 Apr 13  2005 libdigestmd5.so
    -rwxr-xr-x   1 root root 29900 Apr 13  2005 libdigestmd5.so.0
    -rwxr-xr-x   1 root root 29900 Apr 13  2005 libdigestmd5.so.0.0.20
    -rw-r--r--   1 root root 12062 Apr 13  2005 libgssapiv2.a
    -rwxr-xr-x   1 root root   908 Apr 13  2005 libgssapiv2.la
    -rwxr-xr-x   1 root root 12588 Apr 13  2005 libgssapiv2.so
    -rwxr-xr-x   1 root root 12588 Apr 13  2005 libgssapiv2.so.1
    -rwxr-xr-x   1 root root 12588 Apr 13  2005 libgssapiv2.so.1.0.19
    -rw-r--r--   1 root root  7186 Apr 13  2005 liblogin.a
    -rwxr-xr-x   1 root root   849 Apr 13  2005 liblogin.la
    -rwxr-xr-x   1 root root  7724 Apr 13  2005 liblogin.so
    -rwxr-xr-x   1 root root  7724 Apr 13  2005 liblogin.so.0
    -rwxr-xr-x   1 root root  7724 Apr 13  2005 liblogin.so.0.0.7
    -rw-r--r--   1 root root  6734 Apr 13  2005 libplain.a
    -rwxr-xr-x   1 root root   851 Apr 13  2005 libplain.la
    -rwxr-xr-x   1 root root  7444 Apr 13  2005 libplain.so
    -rwxr-xr-x   1 root root  7444 Apr 13  2005 libplain.so.1
    -rwxr-xr-x   1 root root  7444 Apr 13  2005 libplain.so.1.0.16
    -rw-r--r--   1 root root    46 Feb  5 11:55 smtpd.conf
    
    -- listing of /usr/lib/sasl2 --
    total 3088
    drwxr-xr-x   2 root root   4096 Feb  5 12:02 .
    drwxr-xr-x  46 root root  20480 Feb  6 04:03 ..
    -rw-r--r--   1 root root     25 May  6  2005 Sendmail.conf
    -rwxr-xr-x   1 root root    877 Apr 13  2005 libanonymous.la
    -rwxr-xr-x   1 root root  14028 Apr 13  2005 libanonymous.so
    -rwxr-xr-x   1 root root  14028 Apr 13  2005 libanonymous.so.2
    -rwxr-xr-x   1 root root  14028 Apr 13  2005 libanonymous.so.2.0.20
    -rwxr-xr-x   1 root root    865 Apr 13  2005 libcrammd5.la
    -rwxr-xr-x   1 root root  16456 Apr 13  2005 libcrammd5.so
    -rwxr-xr-x   1 root root  16456 Apr 13  2005 libcrammd5.so.2
    -rwxr-xr-x   1 root root  16456 Apr 13  2005 libcrammd5.so.2.0.20
    -rwxr-xr-x   1 root root    886 Apr 13  2005 libdigestmd5.la
    -rwxr-xr-x   1 root root  45100 Apr 13  2005 libdigestmd5.so
    -rwxr-xr-x   1 root root  45100 Apr 13  2005 libdigestmd5.so.2
    -rwxr-xr-x   1 root root  45100 Apr 13  2005 libdigestmd5.so.2.0.20
    -rwxr-xr-x   1 root root    913 Apr 13  2005 libgssapiv2.la
    -rwxr-xr-x   1 root root  26444 Apr 13  2005 libgssapiv2.so
    -rwxr-xr-x   1 root root  26444 Apr 13  2005 libgssapiv2.so.2
    -rwxr-xr-x   1 root root  26444 Apr 13  2005 libgssapiv2.so.2.0.20
    -rwxr-xr-x   1 root root    853 Apr 13  2005 liblogin.la
    -rwxr-xr-x   1 root root  14536 Apr 13  2005 liblogin.so
    -rwxr-xr-x   1 root root  14536 Apr 13  2005 liblogin.so.2
    -rwxr-xr-x   1 root root  14536 Apr 13  2005 liblogin.so.2.0.20
    -rwxr-xr-x   1 root root    853 Apr 13  2005 libplain.la
    -rwxr-xr-x   1 root root  14696 Apr 13  2005 libplain.so
    -rwxr-xr-x   1 root root  14696 Apr 13  2005 libplain.so.2
    -rwxr-xr-x   1 root root  14696 Apr 13  2005 libplain.so.2.0.20
    -rwxr-xr-x   1 root root    933 Apr 13  2005 libsasldb.la
    -rwxr-xr-x   1 root root 880628 Apr 13  2005 libsasldb.so
    -rwxr-xr-x   1 root root 880628 Apr 13  2005 libsasldb.so.2
    -rwxr-xr-x   1 root root 880628 Apr 13  2005 libsasldb.so.2.0.20
    -rw-r--r--   1 root root     49 Feb  5 12:20 smtpd.conf
    
    
    Cannot find the smtp_sasl_password_maps parameter in main.cf.
    Client-side SMTP AUTH cannot work without this parameter!
    [root@m5-fedora4-04 saslfinger-1.0]#
    
     
    Last edited: Feb 7, 2006
  7. micko_escalade

    micko_escalade New Member

    Code:
    [root@m5-fedora4-04 saslfinger-1.0]# ./saslfinger -s
    saslfinger - postfix Cyrus sasl configuration Mon Feb  6 18:59:34 PST 2006
    version: 1.0
    mode: server-side SMTP AUTH
    
    -- basics --
    Postfix: 2.2.2
    System: Fedora Core release 4 (Stentz)
    
    -- smtpd is linked to --
            libsasl2.so.2 => /usr/lib/libsasl2.so.2 (0x4bbe1000)
    
    -- active SMTP AUTH and TLS parameters for smtpd --
    broken_sasl_auth_clients = yes
    smtpd_sasl_auth_enable = yes
    smtpd_sasl_security_options = noanonymous
    smtpd_tls_CAfile = /etc/postfix/ssl/cacert.pem
    smtpd_tls_auth_only = no
    smtpd_tls_cert_file = /etc/postfix/ssl/smtpd.crt
    smtpd_tls_key_file = /etc/postfix/ssl/smtpd.key
    smtpd_tls_loglevel = 1
    smtpd_tls_received_header = yes
    smtpd_tls_session_cache_timeout = 3600s
    smtpd_use_tls = yes
    
    
    -- listing of /usr/lib/sasl --
    total 404
    drwxr-xr-x   2 root root  4096 Feb  5 12:02 .
    drwxr-xr-x  46 root root 20480 Feb  6 04:03 ..
    -rw-r--r--   1 root root  4854 Apr 13  2005 libanonymous.a
    -rwxr-xr-x   1 root root   873 Apr 13  2005 libanonymous.la
    -rwxr-xr-x   1 root root  5808 Apr 13  2005 libanonymous.so
    -rwxr-xr-x   1 root root  5808 Apr 13  2005 libanonymous.so.1
    -rwxr-xr-x   1 root root  5808 Apr 13  2005 libanonymous.so.1.0.17
    -rw-r--r--   1 root root 10490 Apr 13  2005 libcrammd5.a
    -rwxr-xr-x   1 root root   859 Apr 13  2005 libcrammd5.la
    -rwxr-xr-x   1 root root 10500 Apr 13  2005 libcrammd5.so
    -rwxr-xr-x   1 root root 10500 Apr 13  2005 libcrammd5.so.1
    -rwxr-xr-x   1 root root 10500 Apr 13  2005 libcrammd5.so.1.0.19
    -rw-r--r--   1 root root 34148 Apr 13  2005 libdigestmd5.a
    -rwxr-xr-x   1 root root   882 Apr 13  2005 libdigestmd5.la
    -rwxr-xr-x   1 root root 29900 Apr 13  2005 libdigestmd5.so
    -rwxr-xr-x   1 root root 29900 Apr 13  2005 libdigestmd5.so.0
    -rwxr-xr-x   1 root root 29900 Apr 13  2005 libdigestmd5.so.0.0.20
    -rw-r--r--   1 root root 12062 Apr 13  2005 libgssapiv2.a
    -rwxr-xr-x   1 root root   908 Apr 13  2005 libgssapiv2.la
    -rwxr-xr-x   1 root root 12588 Apr 13  2005 libgssapiv2.so
    -rwxr-xr-x   1 root root 12588 Apr 13  2005 libgssapiv2.so.1
    -rwxr-xr-x   1 root root 12588 Apr 13  2005 libgssapiv2.so.1.0.19
    -rw-r--r--   1 root root  7186 Apr 13  2005 liblogin.a
    -rwxr-xr-x   1 root root   849 Apr 13  2005 liblogin.la
    -rwxr-xr-x   1 root root  7724 Apr 13  2005 liblogin.so
    -rwxr-xr-x   1 root root  7724 Apr 13  2005 liblogin.so.0
    -rwxr-xr-x   1 root root  7724 Apr 13  2005 liblogin.so.0.0.7
    -rw-r--r--   1 root root  6734 Apr 13  2005 libplain.a
    -rwxr-xr-x   1 root root   851 Apr 13  2005 libplain.la
    -rwxr-xr-x   1 root root  7444 Apr 13  2005 libplain.so
    -rwxr-xr-x   1 root root  7444 Apr 13  2005 libplain.so.1
    -rwxr-xr-x   1 root root  7444 Apr 13  2005 libplain.so.1.0.16
    -rw-r--r--   1 root root    46 Feb  5 11:55 smtpd.conf
    
    -- listing of /usr/lib/sasl2 --
    total 3088
    drwxr-xr-x   2 root root   4096 Feb  5 12:02 .
    drwxr-xr-x  46 root root  20480 Feb  6 04:03 ..
    -rw-r--r--   1 root root     25 May  6  2005 Sendmail.conf
    -rwxr-xr-x   1 root root    877 Apr 13  2005 libanonymous.la
    -rwxr-xr-x   1 root root  14028 Apr 13  2005 libanonymous.so
    -rwxr-xr-x   1 root root  14028 Apr 13  2005 libanonymous.so.2
    -rwxr-xr-x   1 root root  14028 Apr 13  2005 libanonymous.so.2.0.20
    -rwxr-xr-x   1 root root    865 Apr 13  2005 libcrammd5.la
    -rwxr-xr-x   1 root root  16456 Apr 13  2005 libcrammd5.so
    -rwxr-xr-x   1 root root  16456 Apr 13  2005 libcrammd5.so.2
    -rwxr-xr-x   1 root root  16456 Apr 13  2005 libcrammd5.so.2.0.20
    -rwxr-xr-x   1 root root    886 Apr 13  2005 libdigestmd5.la
    -rwxr-xr-x   1 root root  45100 Apr 13  2005 libdigestmd5.so
    -rwxr-xr-x   1 root root  45100 Apr 13  2005 libdigestmd5.so.2
    -rwxr-xr-x   1 root root  45100 Apr 13  2005 libdigestmd5.so.2.0.20
    -rwxr-xr-x   1 root root    913 Apr 13  2005 libgssapiv2.la
    -rwxr-xr-x   1 root root  26444 Apr 13  2005 libgssapiv2.so
    -rwxr-xr-x   1 root root  26444 Apr 13  2005 libgssapiv2.so.2
    -rwxr-xr-x   1 root root  26444 Apr 13  2005 libgssapiv2.so.2.0.20
    -rwxr-xr-x   1 root root    853 Apr 13  2005 liblogin.la
    -rwxr-xr-x   1 root root  14536 Apr 13  2005 liblogin.so
    -rwxr-xr-x   1 root root  14536 Apr 13  2005 liblogin.so.2
    -rwxr-xr-x   1 root root  14536 Apr 13  2005 liblogin.so.2.0.20
    -rwxr-xr-x   1 root root    853 Apr 13  2005 libplain.la
    -rwxr-xr-x   1 root root  14696 Apr 13  2005 libplain.so
    -rwxr-xr-x   1 root root  14696 Apr 13  2005 libplain.so.2
    -rwxr-xr-x   1 root root  14696 Apr 13  2005 libplain.so.2.0.20
    -rwxr-xr-x   1 root root    933 Apr 13  2005 libsasldb.la
    -rwxr-xr-x   1 root root 880628 Apr 13  2005 libsasldb.so
    -rwxr-xr-x   1 root root 880628 Apr 13  2005 libsasldb.so.2
    -rwxr-xr-x   1 root root 880628 Apr 13  2005 libsasldb.so.2.0.20
    -rw-r--r--   1 root root     49 Feb  5 12:20 smtpd.conf
    
    
    
    
    -- content of /usr/lib/sasl/smtpd.conf --
    pwcheck_method: saslauthd
    saslauthd_version: 2
    -- content of /usr/lib/sasl2/smtpd.conf --
    pwcheck_method: saslauthd
    mech_list: plain login
    
    
    -- active services in /etc/postfix/master.cf --
    # service type  private unpriv  chroot  wakeup  maxproc command + args
    #               (yes)   (yes)   (yes)   (never) (100)
    smtp      inet  n       -       n       -       -       smtpd
    pickup    fifo  n       -       n       60      1       pickup
    cleanup   unix  n       -       n       -       0       cleanup
    qmgr      fifo  n       -       n       300     1       qmgr
    tlsmgr    unix  -       -       n       1000?   1       tlsmgr
    rewrite   unix  -       -       n       -       -       trivial-rewrite
    bounce    unix  -       -       n       -       0       bounce
    defer     unix  -       -       n       -       0       bounce
    trace     unix  -       -       n       -       0       bounce
    verify    unix  -       -       n       -       1       verify
    flush     unix  n       -       n       1000?   0       flush
    proxymap  unix  -       -       n       -       -       proxymap
    smtp      unix  -       -       n       -       -       smtp
    relay     unix  -       -       n       -       -       smtp
            -o fallback_relay=
    showq     unix  n       -       n       -       -       showq
    error     unix  -       -       n       -       -       error
    discard   unix  -       -       n       -       -       discard
    local     unix  -       n       n       -       -       local
    virtual   unix  -       n       n       -       -       virtual
    lmtp      unix  -       -       n       -       -       lmtp
    anvil     unix  -       -       n       -       1       anvil
    scache    unix  -       -       n       -       1       scache
    maildrop  unix  -       n       n       -       -       pipe
      flags=DRhu user=vmail argv=/usr/local/bin/maildrop -d ${recipient}
    old-cyrus unix  -       n       n       -       -       pipe
      flags=R user=cyrus argv=/usr/lib/cyrus-imapd/deliver -e -m ${extension} ${user}
    cyrus     unix  -       n       n       -       -       pipe
      user=cyrus argv=/usr/lib/cyrus-imapd/deliver -e -r ${sender} -m ${extension} ${user}
    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=foo argv=/usr/local/sbin/bsmtp -f $sender $nexthop $recipient
    
    -- mechanisms on localhost --
    250-AUTH PLAIN LOGIN
    250-AUTH=PLAIN LOGIN
    
    
    -- end of saslfinger output --
    
    [root@m5-fedora4-04 saslfinger-1.0]#
    
     
  8. falko

    falko Super Moderator Howtoforge Staff

    Please run
    Code:
    postconf -e 'smtp_sasl_password_maps ='
    and restart Postfix.
     
  9. micko_escalade

    micko_escalade New Member

    Still same problem :(
     
  10. falko

    falko Super Moderator Howtoforge Staff

  11. micko_escalade

    micko_escalade New Member

    Since the server is not at my home I don't think I can follow the setup,
    but anyway thank you for your help!
     
  12. micko_escalade

    micko_escalade New Member

    I found solution!

    just in case someone gets stuck with same problem,
    problem was that shadow was missing, when I switched back in saslauthd to pam I could send/receive no problem, so I run pwconv and that created shadow and in saslauthd I changed it back to shadow and its working.
    Amen to that :)
     

Share This Page