"Perfect Server Help"

Discussion in 'HOWTO-Related Questions' started by alaeric, Dec 26, 2007.

  1. alaeric

    alaeric New Member

    Hey,
    i was fallowing your tutorial on the "perfect servfer"
    (http://www.howtoforge.com/perfect_server_ubuntu7.10)
    and i got up to runing

    telnet localhost 25
    ehlo localhost


    and the output does not have
    250 AUTH PLAIN LOGIN
    250 AUTH=PLAIN LOGIN


    i have gone through all the inputs did and it appears that i made no errors. what does it mean that that is not in in the ehlo? is there a script that can find the issues?
     
  2. falko

    falko Super Moderator ISPConfig Developer

    Can you post the telnet output?
    What's in /etc/postfix/main.cf and /etc/postfix/sasl/smtpd.conf?
     
  3. alaeric

    alaeric New Member

    telnet

    the telnet out put is as follows
    ehlo localhost
    250-alaeric.sampaster.com
    250-PIPELINING
    250-SIZE 10240000
    250-VRFY
    250-ETRN
    250-STATTLS
    250-ENHANCEDSTATUSCODES
    250-8BITMIME
    250 DSN


    cat /etc/postfix/main.cf :

    # 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

    # TLS parameters
    smtpd_tls_cert_file = /etc/postfix/ssl/smtpd.crt
    smtpd_tls_key_file = /etc/postfix/ssl/smtpd.key
    smtpd_use_tls = yes
    smtpd_tls_session_cache_database = btree:${queue_directory}/smtpd_scache
    smtp_tls_session_cache_database = btree:${queue_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 = alaeric.sampaster.com
    alias_maps = hash:/etc/aliases
    alias_database = hash:/etc/aliases
    myorigin = /etc/mailname
    mydestination = alaeric.sampaster.com, localhost.sampaster.com, localhost.localdomain, localhost
    relayhost =
    mynetworks = 127.0.0.0/8
    mailbox_command = procmail -a "$EXTENSION"
    mailbox_size_limit = 0
    recipient_delimiter = +
    inet_interfaces = all
    inet_protocols = all

    smtp_recipient_restrictions = permit_sasl_authenticated,permit_mynetworks,reject_unauth_destination
    broken_sasl_auth_clients = yes
    smtp_sasl_security_options = noanonymous
    smtp_sasl_auth_enable = yes
    smtp_sasl_local_domain =
    smtpd_tls_auth_only = no
    smtp_use_tls = yes
    smtp_tls_note_starttls_offer = yes
    smtpd_tls_CAfile = /etc/postfix/ssl/cacert.pem
    smtpd_tls_loglevel = 1
    smtpd_tls_received_header = yes
    smtpd_tls_session_cache_timeout = 3600s
    tls_random_source = dev:/dev/urandom

    smtp_tls_cert_file = /etc/postfix/ssl/smtp.key


    /etc/postfix/sasl/smtpd.conf

    pwcheck_method: saslauthd
    mech_list: plain login
     
  4. falko

    falko Super Moderator ISPConfig Developer

    Looks ok. Any errors in your mail log? What's the output of
    Code:
    uname -a
    ?
     
  5. alaeric

    alaeric New Member

    uname -a

    Linux alaeric.sampaster.com 2.6.22-14-server #1 SMP Tue Dec 18 08:31:40 UTC 2007 i686 GNU/Linux
     
  6. falko

    falko Super Moderator ISPConfig Developer

    What about your mail log?
     
  7. alaeric

    alaeric New Member

    is it just the /var/log/mail.log file?

    cat /var/log/mail.log :

    Dec 25 18:02:02 alaeric postfix/master[10762]: terminating on signal 15
    Dec 25 18:04:16 alaeric postfix/master[4058]: daemon started -- version 2.4.5, c onfiguration /etc/postfix
    Dec 25 18:49:12 alaeric postfix/smtpd[4277]: connect from localhost.localdomain[ 127.0.0.1]
    Dec 25 18:49:45 alaeric postfix/smtpd[4277]: disconnect from localhost.localdoma in[127.0.0.1]
    Dec 25 19:08:55 alaeric postfix/master[4058]: terminating on signal 15
    Dec 25 19:08:57 alaeric postfix/master[4384]: daemon started -- version 2.4.5, c onfiguration /etc/postfix
    Dec 25 19:09:37 alaeric postfix/smtpd[4407]: connect from localhost.localdomain[ 127.0.0.1]
    Dec 25 19:10:17 alaeric postfix/smtpd[4407]: disconnect from localhost.localdoma in[127.0.0.1]
    Dec 26 15:44:36 alaeric postfix/smtpd[4657]: connect from localhost.localdomain[ 127.0.0.1]
    Dec 26 15:47:03 alaeric postfix/smtpd[4657]: disconnect from localhost.localdoma in[127.0.0.1]
    Dec 27 21:47:23 alaeric postfix/master[4106]: daemon started -- version 2.4.5, c onfiguration /etc/postfix
     
  8. falko

    falko Super Moderator ISPConfig Developer

    What's the output of
    Code:
    netstat -tap
    ?
     
  9. alaeric

    alaeric New Member

    aight

    netstat -tap

    Active Internet connections (servers and established)
    Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
    tcp 0 0 *:mysql *:* LISTEN 3970/mysqld
    tcp 0 0 alaeric.sampaste:domain *:* LISTEN 3828/named
    tcp 0 0 localhost.locald:domain *:* LISTEN 3828/named
    tcp 0 0 *:smtp *:* LISTEN 4106/master
    tcp 0 0 localhost.localdoma:953 *:* LISTEN 3828/named
    tcp6 0 0 *:domain *:* LISTEN 3828/named
    tcp6 0 0 *:ssh *:* LISTEN 3857/sshd
    tcp6 0 0 *:smtp *:* LISTEN 4106/master
    tcp6 0 0 ip6-localhost:953 *:* LISTEN 3828/named
    tcp6 0 296 alaeric.sampaster.c:ssh sam.home:1245 ESTABLISHED5211/sshd: sam [pri
     
  10. falko

    falko Super Moderator ISPConfig Developer

    I was thinking that maybe another mailserver (other than Postfix) was running on your server, but that's not the case.
    Are you sure you followed the Postfix configuration from the tutorial to the letter?
     
  11. alaeric

    alaeric New Member

    i could say yes and be all cocky about it and be insulted that you would doubt my mad skillz.

    but alas
    i believe i did, i double checked each input but there could still be a faulty in my typing. i did run through and double check but i will again. Is there some script that can check for errors? or a test that could point me to were i screwed up?

    thanks
     
  12. falko

    falko Super Moderator ISPConfig Developer

    You can simply copy & paste the commands from the tutorial. That way you avoid typos. :)
     
  13. alaeric

    alaeric New Member

    it doesnt seem to work in putty, is there another ssh program that can?
     
  14. alaeric

    alaeric New Member

    oh it works now... one last thing, can you tell me or point me to a place that could help me learn how to turn it into a server that hosts a website? were do i put html files? access the sql server
     
  15. falko

    falko Super Moderator ISPConfig Developer

    If you've followed the "Perfect Setup", you already have such a server. You could install ISPConfig on it to create web sites, email & ftp accounts, MySQL databases, etc.
     
  16. algonco

    algonco New Member

    Hello,
    First say thanks to falko.

    I follow this howto too but now i do not know how to create the mail users.

    Thanks, i am noob in linux.
     
  17. alaeric

    alaeric New Member

    thanks for your help, well i know that this configured allows us to do that. however, i dont know how to do what i want. html files etc.
     
  18. falko

    falko Super Moderator ISPConfig Developer

    If you install ISPConfig, you can do this in your web browser. If you want to configure email accounts on the shell, take a look here: http://www.howtoforge.com/forums/showthread.php?t=2
     
  19. algonco

    algonco New Member

    Thanks falko it works.

    but now i have a dude, in that post...

    when i create the user, the system do not create the home user-folder (/home/user_example).
    I was testing and if i made by my self the home user-folfer and the Maildir, i can send and recive mail.
    any idea?
    Thanks
     
  20. falko

    falko Super Moderator ISPConfig Developer

    Use
    Code:
    useradd -d /home/sample_user [B][COLOR="Red"]-m[/COLOR][/B] -g users sample_user
    instead.
     

Share This Page