Maildrop erro: Home directory owned by wrong user

Discussion in 'Server Operation' started by matieh, Feb 22, 2014.

  1. matieh

    matieh New Member

    Hello everyone

    I have this error msg in the mail log when trying to send emails to a local email:

    server1 maildrop[2332]: Home directory owned by wrong user.

    the output of ls -la /usr/bin/maildrop is:

    Code:
    -rwxr-xr-x 1 root mail 187K Feb 16 20:29 /usr/bin/maildrop
    
    thanks
     
  2. florian030

    florian030 ISPConfig Developer ISPConfig Developer

    tyr chmod 2755 /usr/bin/maildrop
     
  3. matieh

    matieh New Member

    thank you florian030, I tried and same error remains

    now the output of ls -la /usr/bin/maildrop is:

    Code:
    -rwxr-sr-x 1 root mail 187K Feb 16 20:29 /usr/bin/maildrop
    
     
  4. florian030

    florian030 ISPConfig Developer ISPConfig Developer

    Post the complete log
     
  5. matieh

    matieh New Member

    Code:
    Feb 22 11:56:51 server1 postfix/qmgr[13132]: F13A32EA2A5: from=<[email protected]>, size=15760, nrcpt=1 (queue active)
    Feb 22 11:56:51 server1 postfix/local[13919]: F13A32EA2A5: to=<[email protected]>, orig_to=<[email protected]>, relay=local, delay=0.01, delays=0.01/0/0/0, dsn=2.0.0, status=sent (delivered to mailbox)
    Feb 22 11:56:51 server1 postfix/qmgr[13132]: F13A32EA2A5: removed
    Feb 22 11:56:52 server1 amavis[12367]: (12367-16) Passed CLEAN {RelayedInbound}, <[email protected]> -> <[email protected]>, Message-ID: <[email protected]>, mail_id: 1kdvcOfTu5zh, Hits: 1.178, size: 15312, queued_as: F13A32EA2A5, 5692 ms
    Feb 22 11:56:52 server1 postfix/smtp[14121]: A77882EA2AE: to=<[email protected]>, orig_to=<root>, relay=127.0.0.1[127.0.0.1]:10024, delay=12, delays=0.02/6.6/0.01/5.7, dsn=2.0.0, status=sent (250 2.0.0 from MTA(smtp:[127.0.0.1]:10025): 250 2.0.0 Ok: queued as F13A32EA2A5)
    Feb 22 11:56:52 server1 postfix/qmgr[13132]: A77882EA2AE: removed
    Feb 22 11:57:10 server1 postfix/pickup[13131]: 56BBE2EA2A6: uid=0 from=<root>
    Feb 22 11:57:10 server1 postfix/cleanup[14141]: 56BBE2EA2A6: message-id=<[email protected]>
    Feb 22 11:57:10 server1 postfix/qmgr[13132]: 56BBE2EA2A6: from=<[email protected]>, size=431, nrcpt=1 (queue active)
    Feb 22 11:57:10 server1 dccproc[14424]: continue not asking DCC 366 seconds after 5 failures
    Feb 22 11:57:15 server1 postfix/smtpd[13192]: connect from unknown[127.0.0.1]
    Feb 22 11:57:15 server1 postfix/smtpd[13192]: 9EB6E2EA2A9: client=unknown[127.0.0.1]
    Feb 22 11:57:15 server1 postfix/cleanup[13878]: 9EB6E2EA2A9: message-id=<[email protected]>
    Feb 22 11:57:15 server1 postfix/qmgr[13132]: 9EB6E2EA2A9: from=<[email protected]>, size=1071, nrcpt=1 (queue active)
    Feb 22 11:57:15 server1 maildrop[14438]: Home directory owned by wrong user.
    Feb 22 11:57:15 server1 amavis[14338]: (14338-01) Passed CLEAN {RelayedInbound}, <[email protected]> -> <[email protected]>, Message-ID: <[email protected]>, mail_id: 0_PF6T7bGHE9, Hits: 1.178, size: 431, queued_as: 9EB6E2EA2A9, 5304 ms
    Feb 22 11:57:15 server1 postfix/pipe[14437]: 9EB6E2EA2A9: to=<[email protected]>, relay=maildrop, delay=0.03, delays=0.01/0.02/0/0.01, dsn=4.3.0, status=deferred (temporary failure. Command output: /usr/bin/maildrop: Home directory owned by wrong user. )
    Feb 22 11:57:15 server1 postfix/smtp[13882]: 56BBE2EA2A6: to=<[email protected]>, relay=127.0.0.1[127.0.0.1]:10024, delay=5.3, delays=0.03/0/0.02/5.3, dsn=2.0.0, status=sent (250 2.0.0 from MTA(smtp:[127.0.0.1]:10025): 250 2.0.0 Ok: queued as 9EB6E2EA2A9)
    Feb 22 11:57:15 server1 postfix/qmgr[13132]: 56BBE2EA2A6: removed
    
    
     
  6. florian030

    florian030 ISPConfig Developer ISPConfig Developer

    Which tutorial didyou use for setup?

    Under which user do you run maildrop (see your postfix main.cf)?

    Is this user setup in your passwd?

    Is your mail-dir (/var/vmail) owned by this user (should be vmail.vmail)?
     
  7. matieh

    matieh New Member

    Thank you florian030,

    problem solved by deleting all mailboxes and creating them again, and after that resync mailboxes from ISPConfig panel

    thank you again
     
  8. till

    till Super Moderator Staff Member ISPConfig Developer

    You should have mentioned that you use ispconfig. as you posted in a forum for non ispconfig questions, I thoufh that you dont use ispconfig. with ispconfig, this command would have fixed it:

    chown -R vmal:vmail /var/vmail
     
  9. François

    François New Member

    Hello,

    I have the same problem and also have ISPConfig... I run your command, but not fixed that.. still have the error
    /usr/bin/maildrop: Home directory owned by wrong user. )
     
  10. till

    till Super Moderator Staff Member ISPConfig Developer

    Post the exact error messages from mail.log.
     
  11. Lineisy Kosenkova

    Lineisy Kosenkova New Member

    I think Problem has been Solved
     
  12. François

    François New Member

    Yeah the problem was a variable of mail path that ispconfig was wrong... Homedir Path in Server config was : /var/mail/ instead of /var/vmail/

    Thank you
     
  13. imort

    imort New Member

    Looks like your mail directory owned by root and not mail server user, while 'mail' group doesn't have the write access to it
    So it just can't write new mails to the directory, that's the problem.

    Do you know which user your mail server running at?
    You can try:
    Code:
    chown mail:mail /usr/bin/maildrop -R
    
    But you need to be sure that 'mail' user is the user your mail server running with.
    You also can find more information about Linux file permissions here.[/CODE]
     

Share This Page