Maildir and mail folder problem

Discussion in 'Installation/Configuration' started by euricojunior, Aug 11, 2006.

  1. euricojunior

    euricojunior New Member

    Hi

    Now, my mail server is working for send and received, but when send email (SMTP) is archived in folder '/var/www/my_web/user/my_user/Maildir/new' and when try read (POP3) file '/var/mail/my_user' is used...

    I don't know alter folder for read emails in folder '/var/www/my_web/user/my_user/Maildir/new' (this is correct...)

    I have 10 emails sends (in webmail and thunderbird) and when try read (POP3), the message is 'No new messages in server'...

    Anybody help me, please?
     
  2. Hans

    Hans Moderator Moderator

    Did you exactly setup your mailserver according Falko's "Perfect setup" ?

    Did you enable Maildir in ISPConfig under Management>Settings>Email ?
    Do you use Postfix? If yes, what is in your /etc/postfix/main.cf ?
     
    Last edited: Aug 11, 2006
  3. euricojunior

    euricojunior New Member

    Maildir is setting in Management->Settings->Email...

    My main.cf:

    ##################################################
    # These are only the parameters changed from a default install
    # see /etc/postfix/main.cf.dist for a commented, fuller version of this file.

    # These are changed by postfix install script
    readme_directory = /usr/share/doc/postfix-2.2.5/README_FILES
    html_directory = /usr/share/doc/postfix-2.2.5/html
    sendmail_path = /usr/sbin/sendmail.postfix
    setgid_group = postdrop
    command_directory = /usr/sbin
    manpage_directory = /usr/share/man
    daemon_directory = /usr/lib/postfix
    newaliases_path = /usr/bin/newaliases
    mailq_path = /usr/bin/mailq
    queue_directory = /var/spool/postfix
    mail_owner = postfix

    # User configurable parameters

    inet_interfaces = all
    mynetworks_style = host
    delay_warning_time = 4h
    smtpd_banner = $myhostname ESMTP $mail_name ($mail_version) (Mandriva Linux)
    unknown_local_recipient_reject_code = 450
    smtp-filter_destination_concurrency_limit = 2
    lmtp-filter_destination_concurrency_limit = 2
    smtpd_sasl_path = /etc/postfix/sasl:/usr/lib/sasl2
    recipient_delimiter = +
    owner_request_special = no
    alias_maps = hash:/etc/postfix/aliases, hash:/var/lib/mailman/data/aliases
    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,rejec
    mydomain = grupooharaby.com.br
    myhostname = sistema.$mydomain
    mydestination = /etc/postfix/local-host-names,localhost,$myhostname,$mydomain
    mynetworks = 127.0.0.0/8,192.168.200.0/24,192.168.100.0/24
    smtpd_tls_auth_only = no
    smtp_use_tls = yes
    smtpd_use_tls = yes
    smtpd_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

    virtual_maps = hash:/etc/postfix/virtusertable
    ##################################################

    Thanks for your help...
     
  4. Hans

    Hans Moderator Moderator

    If this is a "Perfect ISPConfig server", why did you add so many modifications to your main.cf ?
    Is this necesarry for you?

    I would try this:

    Add:

    mydestination = /etc/postfix/local-host-names

    in stead of:

    mydestination = servername.mydomain.tld, localhost.mydomain.tld, localhost

    Change:

    myhostname = sistema.$mydomain

    into:

    myhostname = sistema.grupooharaby.com.br

    If you use Maildir format add this:

    home_mailbox = Maildir/

    Finally restart Postfix with the command:

    /etc/postfix reload
     
    Last edited: Aug 11, 2006
  5. euricojunior

    euricojunior New Member

    Nothing...

    I change:
    mydestination = /etc/postfix/local-host-names
    myhostname = sistema.grupooharaby.com.br
    home_mailbox = Maildir/

    and restart postfix, but thunderbird show message 'No new emails in server' again...

    In folder '/var/www/my_web/user/my_user/Maildir/new' exist more of than 10 messages in list...

    Waiting (thanks)...
     
  6. Hans

    Hans Moderator Moderator

    What is in your: /var/log/mail.log file ?
    You see any error messages?
     
    Last edited: Aug 11, 2006
  7. euricojunior

    euricojunior New Member

    No errors. In log file, when send email:

    Aug 11 07:14:41 sistema postfix/smtpd[2086]: connect from unknown[192.168.200.199]
    Aug 11 07:14:41 sistema postfix/smtpd[2086]: setting up TLS connection from unknown[192.168.200.199]
    Aug 11 07:14:44 sistema postfix/smtpd[2086]: TLS connection established from unknown[192.168.200.199]: TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)
    Aug 11 07:14:44 sistema postfix/smtpd[2086]: 37631D046C: client=unknown[192.168.200.199], sasl_method=PLAIN, [email protected]
    Aug 11 07:14:44 sistema postfix/cleanup[2092]: 37631D046C: message-id=<[email protected]>
    Aug 11 07:14:44 sistema postfix/smtpd[2086]: disconnect from unknown[192.168.200.199]
    Aug 11 07:14:44 sistema postfix/qmgr[19452]: 37631D046C: from=<[email protected]>, size=699, nrcpt=1 (queue active)
    Aug 11 07:14:44 sistema postfix/pickup[1488]: E7412D046E: uid=10006 from=<usu5_oharaby>
    Aug 11 07:14:44 sistema postfix/cleanup[2092]: E7412D046E: message-id=<[email protected]>
    Aug 11 07:14:45 sistema postfix/qmgr[19452]: E7412D046E: from=<[email protected]>, size=402, nrcpt=1 (queue active)
    Aug 11 07:14:45 sistema postfix/local[2107]: E7412D046E: to=<[email protected]>, orig_to=<admispconfig@localhost>, relay=local, delay=1, status=sent (delivered to command: /usr/bin/procmail -f-)
    Aug 11 07:14:45 sistema postfix/qmgr[19452]: E7412D046E: removed
    Aug 11 07:14:48 sistema postfix/local[2093]: 37631D046C: to=<[email protected]>, orig_to=<[email protected]>, relay=local, delay=4, status=sent (delivered to command: /usr/bin/procmail -f-)
    Aug 11 07:14:48 sistema postfix/qmgr[19452]: 37631D046C: removed


    When receive email from thunderbird (Message is 'No new message in server'):

    Aug 11 07:15:46 sistema ipop3sd[2131]: pop3s SSL service init from 192.168.200.199
    Aug 11 07:15:46 sistema ipop3sd[2131]: Auth user=usu5_oharaby host=[192.168.200.199] nmsgs=0/0
    Aug 11 07:15:46 sistema ipop3sd[2131]: Logout user=usu5_oharaby host=[192.168.200.199] nmsgs=0 ndele=0

    Messages in folder:

    [root@sistema new]# pwd
    /var/www/web5/user/usu5_oharaby/Maildir/new
    [root@sistema new]# ls -all
    total 68
    drwx------ 2 usu5_oharaby web5 4096 Ago 11 07:14 ./
    drwx------ 5 usu5_oharaby web5 4096 Ago 9 12:48 ../
    -rw------- 1 usu5_oharaby web5 944 Ago 9 12:48 1155138528.27554_1.sistema.grupooharaby.com.br
    -rw------- 1 usu5_oharaby web5 959 Ago 9 12:50 1155138620.27645_0.sistema.grupooharaby.com.br
    -rw------- 1 usu5_oharaby web5 942 Ago 9 12:57 1155139027.28026_0.sistema.grupooharaby.com.br
    -rw------- 1 usu5_oharaby web5 946 Ago 9 18:11 1155157916.32442_0.sistema.grupooharaby.com.br
    -rw------- 1 usu5_oharaby web5 946 Ago 9 18:15 1155158150.32532_0.sistema.grupooharaby.com.br
    -rw------- 1 usu5_oharaby web5 1299 Ago 10 16:29 1155238183.9433_0.sistema.grupooharaby.com.br
    -rw------- 1 usu5_oharaby web5 1299 Ago 10 16:43 1155239033.10642_0.sistema.grupooharaby.com.br
    -rw------- 1 usu5_oharaby web5 1121 Ago 10 16:44 1155239080.10677_0.sistema.grupooharaby.com.br
    -rw------- 1 usu5_oharaby web5 1123 Ago 10 16:46 1155239166.10733_0.sistema.grupooharaby.com.br
    -rw------- 1 usu5_oharaby web5 1297 Ago 10 16:57 1155239823.11732_0.sistema.grupooharaby.com.br
    -rw------- 1 usu5_oharaby web5 1123 Ago 10 16:57 1155239848.11764_0.sistema.grupooharaby.com.br
    -rw------- 1 usu5_oharaby web5 1161 Ago 10 17:55 1155243321.13170_0.sistema.grupooharaby.com.br
    -rw------- 1 usu5_oharaby web5 1297 Ago 10 17:55 1155243340.13201_0.sistema.grupooharaby.com.br
    -rw------- 1 usu5_oharaby web5 1161 Ago 10 21:12 1155255162.17030_1.sistema.grupooharaby.com.br
    -rw------- 1 usu5_oharaby web5 1133 Ago 11 07:14 1155291288.2094_0.sistema.grupooharaby.com.br


    Thanks your help...
     
  8. falko

    falko Super Moderator Howtoforge Staff

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

    euricojunior New Member

    [root@sistema ~]# netstat -tap
    tcp 0 0 *:imaps *:* OUÇA 3633/xinetd
    tcp 0 0 *:pop3s *:* OUÇA 3633/xinetd
    tcp 0 0 *:pop3 *:* OUÇA 3633/xinetd
    tcp 0 0 *:imap *:* OUÇA 3633/xinetd

    Thanks for help...
     
  10. euricojunior

    euricojunior New Member

    i resolved this:

    In perfect setup for mandriva 2006, the installation default is cyrus-sasl, but in documentation (http://www.postfix.org/faq.html#poppers) cyrus not provide access in Maildir-style mainbox.

    In my ISP config (Management->Server->Settings->Email) is enable Maildir. I disable this, restart postfix, xinited and saslauthd and my email send and receive emails...

    Thanks for help....
     
  11. falko

    falko Super Moderator Howtoforge Staff

    Yes, that's correct. Your POP3 daemon uses mbox, not Maildir. :)
     

Share This Page