Problem with retrieving mail after using ISPConfig

Discussion in 'Installation/Configuration' started by sw33t, May 12, 2006.

  1. sw33t

    sw33t New Member

    I am a newbie user and I setup the latest version of ISPConfig.

    I used the Debian Sarge Howto to setup my box. I am using

    Postfix -> Courier POP+IMAP -> Procmail -> Maildir

    I am able to send and receive email but the only problem is I can't retrieve it via Thunderbird (POP3 or IMAP over TLS). Everything is authenticated and Thunderbird communicates with the mail server (my box). I am not sure what I am doing wrong.. Here are some relevant snippets..

    A. Sending email from user@gmail.com to ray@myvirtualdomain1.com

    FROM /var/log/mail.log

    May 11 17:14:54 s79648 postfix/smtpd[7747]: connect from nf-out-0910.google.com[64.233.182.187]
    May 11 17:14:54 s79648 postfix/smtpd[7747]: 6C08C3081F2: client=nf-out-0910.google.com[64.233.182.187]
    May 11 17:14:54 s79648 postfix/cleanup[7750]: 6C08C3081F2: message-id=<a5e73b760605111513p74d48fffm2a1a63a694cb898b@mail.gmail.com>
    May 11 17:14:54 s79648 postfix/qmgr[7593]: 6C08C3081F2: from=<user@gmail.com>, size=1669, nrcpt=1 (queue active)
    May 11 17:14:55 s79648 postfix/pickup[7592]: 65B6A30820C: uid=10002 from=<web5_ray>
    May 11 17:14:55 s79648 postfix/cleanup[7750]: 65B6A30820C: message-id=<20060511221454.65B6A30820C@s79648.servername.com>
    May 11 17:14:55 s79648 postfix/qmgr[7593]: 65B6A30820C: from=<web5_ray@servername.com>, size=363, nrcpt=1 (queue active)
    May 11 17:14:55 s79648 postfix/local[7768]: 65B6A30820C: to=<admispconfig@localhost>, relay=local, delay=1, status=sent (delivered to command: /usr/bin/procmail -f-)
    May 11 17:14:55 s79648 postfix/qmgr[7593]: 65B6A30820C: removed
    May 11 17:14:57 s79648 postfix/local[7751]: 6C08C3081F2: to=<web5_ray@servername.com>, orig_to=<ray@virtualdomain1.com>, relay=local, delay=3, status=sent (delivered to command: /usr/bin/procmail -f-)
    May 11 17:14:57 s79648 postfix/qmgr[7593]: 6C08C3081F2: removed


    B. POSTFIX CONFIG FILE: /etc/postfix/main.cf
    ----------------------------------------------
    # appending .domain is the MUA's job.
    append_dot_mydomain = no

    # Uncomment the next line to generate "delayed mail" warnings
    #delay_warning_time = 4h

    alias_maps = hash:/etc/aliases
    alias_database = hash:/etc/aliases
    myorigin = /etc/mailname
    localhost
    relayhost =
    mynetworks = 127.0.0.0/8
    mailbox_command =
    mailbox_size_limit = 0
    recipient_delimiter = +
    inet_interfaces = all
    smtpd_sasl_local_domain =
    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_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
    smtpd_tls_session_cache_timeout = 3600s
    tls_random_source = dev:/dev/urandom
    home_mailbox = Maildir/
    virtual_maps = hash:/etc/postfix/virtusertable
    mydestination = /etc/postfix/local-host-names


    C. VIRTUAL MAPS - /etc/postfix/virtusertable

    ###################################
    #
    # ISPConfig virtusertable Configuration File
    # Version 1.0
    #
    ###################################
    ray@www.virtualdomain1.com web5_ray
    web5_ray@www.virtualdomain1.com web5_ray
    ray@virtualdomain1.com web5_ray
    web5_ray@virtualdomain1.com web5_ray
    #### MAKE MANUAL ENTRIES BELOW THIS LINE! ####
    web5_ray@servername.com web5_ray



    D. LOCAL HOST NAMES: /etc/postfix/local-host-names

    ###################################
    #
    # ISPConfig local-host-names Configuration File
    # Version 1.0
    #
    ###################################
    localhost
    s79648.servername.com
    localhost.s79648.servername.com
    localhost.servername.com
    www.virtualdomain1.com
    virtualdomain1.com
    #### MAKE MANUAL ENTRIES BELOW THIS LINE! ####
    servername.com





    Any input will be highly appreciated.

    Thanks.

    Sw33t
     
  2. falko

    falko Super Moderator ISPConfig Developer

    You must enable Maildir in ISPConfig: Management -> Server -> Settings -> Email.
     
  3. sw33t

    sw33t New Member

    Rephrased question

    Hey Falko:

    Thanks for the response.

    Let me rephrase my question.

    Will mailboxes created via ISPConfig work only with a webmail client? Can I not use POP3 or IMAP to access those mailboxes?

    I installed one of the recommended webmail clients (UebiMiau) and i am able to send and receive email fine. But I want to configure it in such a way that I can send and receive email using Thunderbird etc.

    Yes, I have enabled Maildir option under "Management -> Server -> Settings -> EMail"
     
  4. falko

    falko Super Moderator ISPConfig Developer

    Of course you can use a regular email client, that's no problem at all.
    Make sure your firewall doesn't block the POP3 and IMAP ports.
     
  5. sw33t

    sw33t New Member

    Results of "nmap tab"

    PORT STATE SERVICE
    21/tcp open ftp
    22/tcp open ssh
    25/tcp open smtp
    53/tcp open domain
    80/tcp open http
    81/tcp open hosts2-ns
    110/tcp open pop3
    143/tcp open imap
    443/tcp open https
    993/tcp open imaps
    995/tcp open pop3s
    3306/tcp open mysql

    They are open! :(
     
  6. sw33t

    sw33t New Member

    Did a quick hack

    Hey falko:

    I changed Courier's IMAP config param

    from

    MAILDIRPATH=/Maildir

    to

    MAILDIRPATH=/var/www/web5/user/web5_ray/Maildir


    and I can retrieve emails through an email client (Thunderbird). Something tells me that this is not the right way though.

    Could you tell me if what I did was right?


    Thanks.
     
  7. falko

    falko Super Moderator ISPConfig Developer

    That way you can retrieve only emails for web5_ray. It should work with
    Code:
    MAILDIRPATH=/Maildir
    , if not, try
    Code:
    MAILDIRPATH=/$HOME/Maildir
     
  8. sw33t

    sw33t New Member

    Cool

    Works fine now.

    I changed the settings to /$HOME/Maildir

    Thanks you very much Falko..


    Do you have any recommendations for a good mailing list manager which will be a breeze to setup on Debian Sarge?
     
  9. falko

    falko Super Moderator ISPConfig Developer

    I don't think there's an eays-to-set-up mailing list manager. Personally, I'm using Mailgust, which was easy to set up, but it's not developed anymore, and you can't download I anymore.
    But you can use Mailman, it works with ISPConfig. Make sure to follow the Mailman installlation instructions.
     

Share This Page