Courier-imap and suse 10.1 64 BIT

Discussion in 'Installation/Configuration' started by rickygm, Jun 20, 2006.

  1. rickygm

    rickygm New Member

    hello forum has followed the guide of SUSE 10.1 Perfect setup , But I have some problems with courier-imap , I send him a mail an user of my server doesn't receive it and I see the log and I find errors of Maildir :

    pegaso postfix/qmgr[3677]: 84F002C000FF: removed
    Jun 19 17:04:52 pegaso postfix/local[4166]: 990E72C00583: to=<[email protected]>, relay=local, delay=0, status=bounced (maildir delivery failed: create /home/user/Maildir/tmp/1150758292.P4166.pegaso: Permission denied)
    Jun 19 17:04:52 pegaso postfix/local[4166]: warning: maildir access problem for UID/GID=1001/100: create /home/user/Maildir/tmp/1150758292.P4166.pegaso: Permission denied
    Jun 19 17:04:52 pegaso postfix/local[4166]: warning: perhaps you need to create the maildirs in advance

    I have followed the guide of Suse 10.1 Perfect Setup 10.1 32 bit

    that it can be happening?

    thank forum!!!
     
  2. falko

    falko Super Moderator ISPConfig Developer

    What's the output of
    Code:
    ls -la /home
    ls -la /home/user
    ls -la /home/user/Maildir
    ?
    What's the username you send mail to?
     
  3. rickygm

    rickygm New Member

    pegaso:/home # ls -la /home/
    total 4
    drwxr-xr-x 2 root root 6 Apr 22 20:07 .
    drwxr-xr-x 23 root root 4096 Jun 21 23:54 ..


    pegaso:/ # ls -l
    total 72
    drwx------ 2 root root 75 Jun 21 23:26 .gnupg
    drwxr-xr-x 2 root root 4096 Jun 22 00:25 Backup10.1-64Bits
    drwxr-xr-x 2 root root 4096 Jun 21 22:08 bin
    drwxr-xr-x 3 root root 4096 Jun 21 23:07 boot
    drwxr-xr-x 11 root root 8140 Jun 22 00:32 dev
    drwxr-xr-x 108 root root 12288 Jun 22 00:33 etc
    drwxr-xr-x 2 root root 6 Apr 22 20:07 home
    drwxr-xr-x 10 root root 4096 Jun 21 22:36 lib
    drwxr-xr-x 3 root root 4096 Jun 21 22:36 lib64


    inside the home I don't have any user, I understand that courier believes the home from the user when sending a mail

    I send a mail to the user ricardo

    thank forum
    drwxr-xr-x 2 root root 6 Apr 22 20:07 home
     
  4. falko

    falko Super Moderator ISPConfig Developer

    What's the output of
    Code:
    grep ricardo /etc/passwd
    ?
     
  5. rickygm

    rickygm New Member

    pegaso:~ # grep ricardo /etc/passwd
    ricardo:x:1000:100::/home/ricardo:/sbin/nologin

    also sends me this problem :

    authentication error: Permission denied
    Connection, ip=[::ffff:192.168.1.13]
    Jun 24 12:58:36 pegaso pop3d: ricardo: chdir(/home/ricardo) failed!!
    Jun 24 12:58:36 pegaso pop3d: error: Permission denied
    Jun 24 12:58:36 pegaso pop3d: LOGIN FAILED, user=ricardo, ip=[::ffff:192.168.1.13
     
  6. falko

    falko Super Moderator ISPConfig Developer

    Please do this:
    Code:
    mkdir /home/ricardo
    chown ricardo /home/ricardo
     
  7. rickygm

    rickygm New Member

    Jun 25 23:44:18 pegaso postfix/qmgr[3560]: 2A5FC2C00582: from=<>, size=2476, nrcpt=1 (queue active)
    Jun 25 23:44:18 pegaso postfix/qmgr[3560]: 131722C00581: removed
    Jun 25 23:44:18 pegaso postfix/local[3916]: 2A5FC2C00582: to=<[email protected]>, relay=local, delay=0, status=bounced (maildir delivery failed: create /home/ricardo/Maildir/tmp/1151300658.P3916.pegaso: Permission denied)
    Jun 25 23:44:18 pegaso postfix/local[3916]: warning: maildir access problem for UID/GID=1000/100: create /home/ricardo/Maildir/tmp/1151300658.P3916.pegaso: Permission denied
    Jun 25 23:44:18 pegaso postfix/local[3916]: warning: perhaps you need to create the maildirs in advance
    Jun 25 23:44:18 pegaso postfix/qmgr[3560]: 2A5FC2C00582: removed

    pegaso:/home # ls -l
    total 0
    drwxr-xr-x 2 peter users 6 Jun 25 23:39 peter
    drwxr-xr-x 2 ricardo users 6 Jun 25 23:38 ricardo


    Postfix


    pegaso:/home # postconf -n
    alias_maps = hash:/etc/aliases
    biff = no
    canonical_maps = hash:/etc/postfix/canonical
    command_directory = /usr/sbin
    config_directory = /etc/postfix
    daemon_directory = /usr/lib/postfix
    debug_peer_level = 2
    defer_transports =
    disable_dns_lookups = no
    disable_mime_output_conversion = no
    home_mailbox = Maildir/
    html_directory = /usr/share/doc/packages/postfix/html
    inet_interfaces = all
    inet_protocols = all
    mail_owner = postfix
    mail_spool_directory = Maildir/
    mailbox_command =
    mailbox_size_limit = 0
    mailbox_transport =
    mailq_path = /usr/bin/mailq
    manpage_directory = /usr/share/man
    masquerade_classes = envelope_sender, header_sender, header_recipient
    masquerade_domains = netsoluciones.net
    masquerade_exceptions = root
    message_size_limit = 10240000
    mydestination = $myhostname, localhost.$mydomain, localhost, $mydomain
    mydomain = netsoluciones.net
    myhostname = pegaso.netsoluciones.net
    mynetworks = 192.168.1.0/24, 127.0.0.0/8
    mynetworks_style = subnet
    myorigin = $mydomain
    newaliases_path = /usr/bin/newaliases
    queue_directory = /var/spool/postfix
    readme_directory = /usr/share/doc/packages/postfix/README_FILES
    recipient_delimiter = +
    relay_domains = $mydestination
    relayhost =
    relocated_maps = hash:/etc/postfix/relocated
    sample_directory = /usr/share/doc/packages/postfix/samples
    sender_canonical_maps = hash:/etc/postfix/sender_canonical
    sendmail_path = /usr/sbin/sendmail
    setgid_group = maildrop
    smtp_sasl_auth_enable = no
    smtp_use_tls = no
    smtpd_client_restrictions =
    smtpd_helo_required = no
    smtpd_helo_restrictions =
    smtpd_recipient_restrictions = permit_mynetworks,reject_unauth_destination
    smtpd_sasl_auth_enable = no
    smtpd_sender_restrictions = hash:/etc/postfix/access
    smtpd_use_tls = no
    strict_8bitmime = no
    strict_rfc821_envelopes = no
    transport_maps = hash:/etc/postfix/transport
    unknown_local_recipient_reject_code = 550
    virtual_alias_domains = hash:/etc/postfix/virtual
    virtual_alias_maps = hash:/etc/postfix/virtual

    mail.err

    pegaso pop3d: authentication error: No such file or directory
    Jun 24 12:10:41 pegaso pop3d: authentication error: Permission denied
    Jun 24 12:18:36 pegaso pop3d: authentication error: Permission denied
     
  8. falko

    falko Super Moderator ISPConfig Developer

    What's the output of
    Code:
    ls -la /home/ricardo
    ?
     
  9. rickygm

    rickygm New Member

    solved problem, disable the apparmor

    thank forum
     

Share This Page