Problem on Perfect Setup SUSE10.1 : Maildir can not be occured

Discussion in 'HOWTO-Related Questions' started by sedat1903, Sep 8, 2006.

  1. sedat1903

    sedat1903 New Member

    Problem on Perfect Setup SUSE10.1 : Maildir can not be created

    Hi to all, I follow the Perfect Setup SUSE10.1 guide, I didnt install ispconfig, I havent much time, and actually I have no idea about ispconfig, but I use webmin, maybe they are same role, anyway my problem is when I add a user from command line and to activate the user I send an email to the user, in redhat when I send a test message to the new user, Maildir occured aut─▒matically, but unfourtunately in SUSE ,it couldnt be created automaticalyy, I will use postfix and webmin, webmin shows user's mail directory is /home/user/Maildir but there is no Maildir, cyruss-sasl and related things I install by the following the perfect setup suse guide,
    can you help me, pls, I couldnt figure out that problem
    thanks in advance
     
    Last edited: Sep 16, 2006
  2. jjw

    jjw New Member

    When you do a useradd, can you use the flag to add the contents of /etc/skel? This way, whenever you add a user with useradd, if /etc/skel/Maildir exists, it will be created in the new user's home directory.

    <edit>
    mkdir /etc/skel/Maildir
    useradd -m newUser
    </edit>

    Hope that helps.
     
    Last edited: Sep 8, 2006
  3. sedat1903

    sedat1903 New Member

    yes it occured ,but stilll the emails are not occured in that.how can it be I dont know, is it not complete in the HOWTO, has anybody saw that problem before , when install suse 10.1
     
  4. jjw

    jjw New Member

    Did you check the box in Ispconfig for 'Maildir' in Server settings?
    Restart ispcofig_server?
    Who owns the Maildir directory?

    Sorry if you've thought of this: I'm a noob. :)
     
  5. sedat1903

    sedat1903 New Member

    thank you jjw for trying to help me, I didnt install ispconfig because I use webmin, I dunno maybe they cannot work together, I have no idea about ispcconfig, if I install ispconfig , will I able to use webmin and Maildir services, mycompany uses them and new mail server should have these things, as a result of this I wonder, there will be any problem about using webmin and Maildir , I want to get emails in the directory Maildir and reach them from webmin,
    thank you again
     
  6. jjw

    jjw New Member

    So, are you using:
    Code:
    home_mailbox = Maildir/
    in main.cf?
     
  7. sedat1903

    sedat1903 New Member

    yes I use that
     
  8. jjw

    jjw New Member

    Did you reload Postrfix or restart the server?

    Sorry if you've thought of that: I don't know anything about Suse, and I'm a noob anyway...
     
  9. falko

    falko Super Moderator ISPConfig Developer

    What's the output of
    Code:
    netstat -tap
    ? What's in /etc/postfix/main.cf (please strip out the comments)?
     
  10. sedat1903

    sedat1903 New Member

    unfourtunatel I am not at work, I cant look the server , but monday I will immediately look for netstat command,
    I wonder something, I didnt get emails to the Maildir, then I install ISPconfig,I thought maybe I can receive emails by using ISPconfiguration, but when I install by using all things on perfect setup howto, when I try to connect the 192.168.0.200:81 from another computer in lan, I couldnt enter the site, I use the https, when I enter http ,, isp warns me by hint to use https , I thought that yes the configuration ok, because it can warn me, but I changed url to the https, now it said there is no page, what can be the problem, I will look the other things then write tomorrow from work again, bye
     
  11. sedat1903

    sedat1903 New Member

    hi to all,
    As I said before , Maildir is not be made automatically, for maildir I install courier-imap according to Perfect Setup SUSE HOWTO, I wonder to use Maildir , should I also install qmail,too. I extracted the qmail.tar but there is no installation file, such as config or configure etc, why courier-imap does not build the maildir directory under all users,what I should do for this plls say something to help to solve this problem
     
  12. falko

    falko Super Moderator ISPConfig Developer

    What about my previous post? And why do you try to install qmail???
     
  13. sedat1903

    sedat1903 New Member

    this is netstat output :
    PHP:
     Active Internet connections (servers and established)
    Proto Recv-Q Send-Q Local Address           Foreign Address         State       PID/Program name
    tcp        0      0 
    *:mysql                 *:*                     LISTEN      2735/mysqld
    tcp        0      0 
    *:sunrpc                *:*                     LISTEN      2318/portmap
    tcp        0      0 
    *:ndmp                  *:*                     LISTEN      3086/perl
    tcp        0      0 localhost
    :novell-zen    *:*                     LISTEN      2307/zmd
    tcp        0      0 
    *:smtps                 *:*                     LISTEN      7941/master
    tcp        0      0 mail
    .example.com:domain *:*                     LISTEN      2746/named
    tcp        0      0 
    *:ftp                   *:*                     LISTEN      2948/proftpd: (acce
    tcp        0      0 localhost
    :domain        *:*                     LISTEN      2746/named
    tcp        0      0 
    *:ipp                   *:*                     LISTEN      2858/cupsd
    tcp        0      0 
    *:smtp                  *:*                     LISTEN      7941/master
    tcp        0      0 localhost
    :953           *:*                     LISTEN      2746/named
    tcp        0      0 localhost
    :987           *:*                     LISTEN      2931/famd
    tcp        0      0 mail
    .example.com.:smtp rgminet01.oracle.:29279 TIME_WAIT   -
    tcp        0      0 mail.example.com:45436 dyna-addons.nslb.:https ESTABLISHED 7975/firefox-bin
    tcp        0      0 mail
    .mydomain:45437 dyna-addons.nslb.:https ESTABLISHED 7975/firefox-bin
    tcp        0      0 
    *:www-http              *:*                     LISTEN      3245/httpd2-prefork
    tcp        0      0 
    *:smtps                 *:*                     LISTEN      7941/master
    tcp        0      0 
    *:domain                *:*                     LISTEN      2746/named
    tcp        0      0 
    *:ssh                   *:*                     LISTEN      3028/sshd
    tcp        0      0 
    *:smtp                  *:*                     LISTEN      7941/master
    tcp        0      0 localhost
    :953           *:*                     LISTEN      2746/named
    tcp        0      0 
    *:https                 *:*                     LISTEN      3245/httpd2-prefork
     
  14. sedat1903

    sedat1903 New Member

    This main.cf .......
    PHP:


    readme_directory 
    = /usr/share/doc/packages/postfix/README_FILES
    inet_protocols 
    all
    inet_interfaces 
    all
    biff 
    no
    mail_spool_directory 
    = /var/mail
    canonical_maps 
    hash:/etc/postfix/canonical
    virtual_alias_maps 
    hash:/etc/postfix/virtual
    virtual_alias_domains 
    hash:/etc/postfix/virtual
    relocated_maps 
    hash:/etc/postfix/relocated
    transport_maps 
    hash:/etc/postfix/transport
    sender_canonical_maps 
    hash:/etc/postfix/sender_canonical
    masquerade_exceptions 
    root
    masquerade_classes 
    envelope_senderheader_senderheader_recipient
    program_directory 
    = /usr/lib/postfix
    masquerade_domains 
    =
    defer_transports =
    disable_dns_lookups no
    relayhost 
    =
    mailbox_command =
    mailbox_transport =
    strict_8bitmime no
    disable_mime_output_conversion 
    no
    smtpd_sender_restrictions 
    hash:/etc/postfix/access
    smtpd_client_restrictions 
    =
    smtpd_helo_required no
    smtpd_helo_restrictions 
    =
    strict_rfc821_envelopes no
    smtpd_recipient_restrictions 
    permit_sasl_authenticated,permit_mynetworks,check_relay_domains
    smtp_sasl_auth_enable 
    no
    smtpd_sasl_auth_enable 
    yes
    smtpd_use_tls 
    yes
    smtp_use_tls 
    yes
    alias_maps 
    hash:/etc/aliases
    mailbox_size_limit 
    0
    message_size_limit 
    10240000
    virtual_maps 
    hash:/etc/postfix/virtusertable
    mydestination
    =$mydomain mail.example.com localhost.$mydomain localhost
    smtpd_banner
    =$myhostname ESMTP $mail_name
    receipient_delimiter
    =+
    myorigin=$mydomain
    mydomain 
    examle.com
    myhostname 
    mail.$mydomain
    home_mailbox 
    Maildir/
    mailbox_command =
    smtpd_sasl_local_domain =
    smtpd_sasl_security_options noanonymous
    broken_sasl_auth_clients 
    yes
    smtpd_recipient_restrictions 
    permit_sasl_authenticated,permit_mynetworks,check_relay_domains
    inet_interfaces 
    all
    smtpd_tls_auth_only 
    no
    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
     
    Last edited: Sep 14, 2006
  15. sedat1903

    sedat1903 New Member

    When I send an email to myserver from hotmail or another server, it says that:
    Code:
    maildir delivery failed: link to /home/sedat1903/Maildir/new/1158216607.V343 Ie0c06bM926.mail: Permission denied
    
    As I said before when I send a test message to a new user , Maildir should be occured automatically, now Maildir didnt occured,and I mkdir Maildir, and under it ,new tmp and cur, now mail can go there and cannot write in that , because ,Maildir should not be made by manually, when a user been added, and activated , then it should be builded,
    as I said before ,firs time, I made my mailserver on redhat, I install courier-imap,and configured , then a add a new user, then send test message to the user, Maildir builded automatically, not done anythig more,just install courier-imap, why in suse,it cannot be, what should be problem, pls help,thanks
     
  16. sedat1903

    sedat1903 New Member

    I try to install qmail, because I couldnt make Maildir builded aoutomatically, I thuoght that maybe qmail can help to make Maildir automatically,I am in despreate mode, so I try everything, and as you understand I can be called newbie on linux, just try to figure out this, I tried everything, just because of that I try to install qmail.
     
  17. falko

    falko Super Moderator ISPConfig Developer

    What's the output of
    Code:
    ls -la /home/sedat1903/Maildir
    ?
     
  18. sedat1903

    sedat1903 New Member

    Code:
    total 8
    drwxr-xr-x 2 root          root  4096 2006-09-15 12:52 .
    drwxr-xr-x 9 sedat1903 users 4096 2006-09-15 12:52 ..
    The output is above, I read from a book ,it says that

    PHP:
    With maildir-style deliveryPostfix normally creates the necessary directories and files, if the user's credentials permit it; however, as a security precaution, if the parent directory is world-writable, Postfix delivery agents will not create any additional files or directories.
    :confused:

    I think the problem is postfix confuguration, because courier is working well, I installed as you described in perfect setup howto.
    Have you had any problem like this, or anyone had this, or just for me.
    I am gonna be mad, I couldnt find the problem...:mad:
     
  19. sedat1903

    sedat1903 New Member

    hi
    I try a thing more
    as I tried before, again I add Maildir by
    Code:
    maildirmake Maildir
    in /etc/skel
    now when a user added, Maildir and diretories new,cur,tmp are created automatically ,I know I tried before this, but I didnt look the logs, now there is a thing that can make sense,


    PHP:
    Sep 16 19:24:26 mail postfix/local[30058]: warningperhaps you need to create the maildirs in advance
    Sep 16 19
    :24:26 mail postfix/local[30058]: DF14F558479to=<root@********.com>, relay=localdelay=1status=bounced (maildir delivery failedcreate /root/Maildir/tmp/1158423866.P30058.mailPermission denied)
    Sep 16 19:24:26 mail postfix/local[30058]: warningmaildir access problem for UID/GID=0/0create /root/Maildir/tmp/1158423866.P30058.mailPermission denied
    Sep 16 19
    :24:26 mail postfix/local[30058]: warningperhaps you need to create the maildirs in advance
    Sep 16 19
    :24:26 mail postfix/qmgr[30039]: DF14F558479removed
    have you any comment about this? I think If I fix it I will be able to receive my emails, just this problem left, the other things work fine, pls help me to solve this problem
     
    Last edited: Sep 16, 2006
  20. falko

    falko Super Moderator ISPConfig Developer

    Please run
    Code:
    chown sedat1903:users /home/sedat1903/Maildir
     

Share This Page