imap courier postfix

Discussion in 'Server Operation' started by peoplenamed, May 18, 2012.

  1. peoplenamed

    peoplenamed New Member

    I am new to Linux and am trying to install a mail server that can send and receive e-mails local and abroad.. I am running ubuntu server 12.04. I am following this post: https://help.ubuntu.com/community/PostfixBasicSetupHowto

    EVERYTHING was fine until, i get to the part that says:
    netcat mail.yourdomain.com 25​
    @ which point i get the error:

    [email protected]:/etc$ netcat mail.peteserve.linkpc.net 25
    netcat: getaddrinfo: Name or service not known

    However, if I type:

    [email protected]:/etc$ netcat peteserve.linkpc.net 25​

    I get:

    220 mail.peteserve.linkpc.net ESMTP Postfix (Ubuntu)
    ehlo peteserve.linkpc.net
    250-mail.peteserve.linkpc.net
    250-PIPELINING
    250-SIZE 10240000
    250-VRFY
    250-ETRN
    250-STARTTLS
    250-ENHANCEDSTATUSCODES
    250-8BITMIME
    250 DSN

    I can also type:
    [email protected]:/etc$ telnet localhost imap
    and get:

    Trying 127.0.0.1...
    Connected to localhost.
    Escape character is '^]'.
    * OK [CAPABILITY IMAP4rev1 UIDPLUS CHILDREN NAMESPACE THREAD=ORDEREDSUBJECT THREAD=REFERENCES SORT QUOTA IDLE ACL ACL2=UNION] Courier-IMAP ready. Copyright 1998-2011 Double Precision, Inc. See COPYING for distribution information.​

    /etc/hosts:

    127.0.0.1 localhost
    127.0.1.1 serverb.peteserve.linkpc.net serverb

    # The following lines are desirable for IPv6 capable hosts
    ::1 ip6-localhost ip6-loopback
    fe00::0 ip6-localnet
    ff00::0 ip6-mcastprefix
    ff02::1 ip6-allnodes
    ff02::2 ip6-allrouters

    main.cf:

    # TLS parameters
    smtpd_tls_cert_file=/etc/ssl/certs/ssl-cert-snakeoil.pem
    smtpd_tls_key_file=/etc/ssl/private/ssl-cert-snakeoil.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 = mail.peteserve.linkpc.net
    alias_maps = hash:/etc/aliases
    alias_database = hash:/etc/aliases
    myorigin = $myhostname
    mydestination = mail.peteserve.linkpc.net, *.peteserve.linkpc.net, serverb.peteserve.linkpc.net,$
    relayhost =
    mynetworks = 127.0.0.1/8, 192.168.1.0/24
    mailbox_size_limit = 0
    recipient_delimiter = +
    inet_interfaces = all
    home_mailbox = Maildir/
    mailbox_command =
    inet_protocols = ipv4

    master.cf:

    pickup fifo n - - 60 1 pickup
    cleanup unix n - - - 0 cleanup
    qmgr fifo n - n 300 1 qmgr
    #qmgr fifo n - 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 - - n - - smtp
    relay unix - - - - - smtp
    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



    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} ${extens$
    mailman unix - n n - - pipe
    flags=FR user=list argv=/usr/lib/mailman/bin/postfix-to-mailman.py
    ${nexthop} ${user}
     
  2. peoplenamed

    peoplenamed New Member

    30 views no answers? I will add this is my 5th install... i have tried several different DIY or Sourceforge instructions and everyone leaves out VITAL details...
     
  3. till

    till Super Moderator Staff Member ISPConfig Developer

    It seems as if the domain that you used as hostname of your server or as email domain (mail.peteserve.linkpc.net) neither exists in /etc/hosts nor in DNS.

    Btw. the howtos from howtoforge are complete, but you did not use one of our howtos to setup your server and complain here about incomlete howtos that you found somewhere else...
     
  4. peoplenamed

    peoplenamed New Member

    thank you for taking the time! :) I should have put that the first 4 times i had tried sourceforge how to's... but i could only find ones here that talked about making virtual hosts with virtual users... I just wanted the most simple install because I thought I was running into problems with virtual users.. However, after trying the one I am on now, I came to the conclusion that I must be missing something else entirely.. As this happens no matter who's tutorial i am using... BTW.. this is my /var/mail.err log:

    May 18 02:09:57 serverb imapd: (null): TOO MANY CONSECUTIVE PROTOCOL VIOLATIONS​
     
  5. peoplenamed

    peoplenamed New Member

    This is my hosts file:

    127.0.0.1 localhost
    127.0.1.1 serverb.peteserve.linkpc.net serverb

    # The following lines are desirable for IPv6 capable hosts
    ::1 ip6-localhost ip6-loopback
    fe00::0 ip6-localnet
    ff00::0 ip6-mcastprefix
    ff02::1 ip6-allnodes
    ff02::2 ip6-allrouters


    I should change it to :
    127.0.0.1 localhost
    127.0.1.1 mail.peteserve.linkpc.net serverb

    # The following lines are desirable for IPv6 capable hosts
    ::1 ip6-localhost ip6-loopback
    fe00::0 ip6-localnet
    ff00::0 ip6-mcastprefix
    ff02::1 ip6-allnodes
    ff02::2 ip6-allrouters​
     
  6. peoplenamed

    peoplenamed New Member

    I am not sure what you mean by DNS? Do you mean that I setup the MX wrong?(Thank you in advance) (I plan to make a simple how-to for sourceforge once i get this up)
     
  7. peoplenamed

    peoplenamed New Member

    still not working...
     
  8. falko

    falko Super Moderator ISPConfig Developer

  9. peoplenamed

    peoplenamed New Member

    Thank you for replying! OK... so i formatted / reinstalled ubuntu12.04 Used FALKO's install with virtual servers(even though i didnt want virtual servers...) followed his instructions to the t.(for the second time) EXACT SAME ERROR! After researching for the past 6ish hours I have concluded that a large number of people have the same problem.(most give up at this point, I know because all the posts i find are never 'solved' and are months old.. This is not a new problem either. It has been happening to people for a couple years. I do not know what I am missing / setup wrong.
    squirrelmail config-test:

    SquirrelMail configtest

    This script will try to check some aspects of your SquirrelMail configuration and point you to errors whereever it can find them. You need to go run conf.pl in the config/ directory first before you run this script.

    SquirrelMail version: 1.4.22
    Config file version: 1.4.0
    Config file last modified: 19 May 2012 21:16:21
    Checking PHP configuration...
    PHP version 5.3.10-1ubuntu3.1 OK.
    Running as www-data(33) / www-data(33)
    display_errors:
    error_reporting: 22527
    variables_order OK: GPCS.
    PHP extensions OK. Dynamic loading is disabled.
    Checking paths...
    Data dir OK.
    Attachment dir OK.
    Plugins OK.
    Themes OK.
    Default language OK.
    Base URL detected as: http://peteserve.linkpc.net/squirrelmail/src (location base autodetected)
    Checking outgoing mail service....
    sendmail OK
    Checking IMAP service....
    IMAP server ready (* OK [CAPABILITY IMAP4rev1 UIDPLUS CHILDREN NAMESPACE THREAD=ORDEREDSUBJECT THREAD=REFERENCES SORT QUOTA IDLE ACL ACL2=UNION STARTTLS] Courier-IMAP ready. Copyright 1998-2011 Double Precision, Inc. See COPYING for distribution information.)
    Capabilities: * CAPABILITY IMAP4rev1 UIDPLUS CHILDREN NAMESPACE THREAD=ORDEREDSUBJECT THREAD=REFERENCES SORT QUOTA IDLE ACL ACL2=UNION STARTTLS
    Checking internationalization (i18n) settings...
    gettext - Gettext functions are available. On some systems you must have appropriate system locales compiled.
    mbstring - Mbstring functions are available.
    recode - Recode functions are unavailable.
    iconv - Iconv functions are available.
    timezone - Webmail users can change their time zone settings.
    Checking database functions...
    not using database functionality.
    Congratulations, your SquirrelMail setup looks fine to me!​


    and then when i log in to my server through squirrelmail, i get:

    ERROR:
    ERROR: Connection dropped by IMAP server.

     
  10. peoplenamed

    peoplenamed New Member

    btw, I have challenged 2 of my computer-literate friends to install this using falko.. They are almost at the same point. The only thing that i can possibly think of is that my domain is a second level domain(i got it free from dns exit) But they still allowed me to set my MX to mail.peteserve.linkpc.net 10
    so.. IDK if that is even an issue..

    I just realized that you are FALKO! haha.. THANK U so much for taking the time to help me.
     
  11. peoplenamed

    peoplenamed New Member

    So.. still trying all sorts of edits.. i thought i was keeping a close track on what i was doing and now when i try to go to squirrelmail through the web, for somereason it redirects to peteserve.linkpc.net/peteserve.linkpc.net/whatever... IDK why it is adding the extra peteserve...
     

Share This Page