email problem

Discussion in 'Installation/Configuration' started by richardson, Nov 22, 2009.

  1. richardson

    richardson New Member

    I have ispconfig3 on suse 11.2
    I have some problems with my mailserver. When is send a mail to example@mydomain.com i had this in the error log:
    Code:
    Nov 22 01:18:02 core postfix/smtpd[5395]: connect from unknown[127.0.0.1]
    Nov 22 01:18:02 core postfix/smtpd[5395]: AFB142AD4D: client=unknown[127.0.0.1]
    Nov 22 01:18:02 core postfix/cleanup[5351]: AFB142AD4D: message-id=<20091122001758.DE9D92AD4E@core.mydomain.com>
    Nov 22 01:18:02 core postfix/smtpd[5395]: disconnect from unknown[127.0.0.1]
    Nov 22 01:18:02 core postfix/qmgr[11523]: AFB142AD4D: from=, size=2422, nrcpt=1 (queue active)
    Nov 22 01:18:02 core amavis[20545]: (20545-05) Passed BAD-HEADER, -> , quarantine: badh-yeDbPnR8zdZO, Message-ID: <20091122001758.DE9D92AD4E@core.mydomain.com>, mail_id: yeDbPnR8zdZO, Hits: 0.233, size: 573, queued_as: AFB142AD4D, 3801 ms
    Nov 22 01:18:02 core maildrop[5401]: Cannot set my user or group id.
    Nov 22 01:18:02 core postfix/smtp[5355]: DE9D92AD4E: to=, relay=127.0.0.1[127.0.0.1]:10024, delay=3.9, delays=0.04/0.01/0/3.8, dsn=2.0.0, status=sent (250 2.0.0 Ok, id=20545-05, from MTA([127.0.0.1]:10025): 250 2.0.0 Ok: queued as AFB142AD4D)
    Nov 22 01:18:02 core postfix/qmgr[11523]: DE9D92AD4E: removed
    Nov 22 01:18:02 core postfix/pipe[5400]: AFB142AD4D: to=, relay=maildrop, delay=0.05, delays=0.02/0.01/0/0.01, dsn=4.3.0, status=deferred (temporary failure. Command output: /usr/bin/maildrop: Cannot set my user or group id. )
    in var/vmail i have this:
    Code:
    core:/var/vmail # ls -l
    total 12
    -rw------- 1 vmail vmail 1382 Nov 18 20:20 .mailfilter
    -rw-r--r-- 1 root  root  1382 Nov 18 20:20 .mailfilter~
    drwxr-xr-x 4 root  root  4096 Nov 21 15:42 mailfilters
    
     
  2. richardson

    richardson New Member

    i send email to an exesting account, and i had this reply from the server:

    Code:
    This is the mail system at host core.domain.com.
    
    ####################################################################
    # THIS IS A WARNING ONLY.  YOU DO NOT NEED TO RESEND YOUR MESSAGE. #
    ####################################################################
    
    Your message could not be delivered for more than 1 hour(s).
    It will be retried until it is 5 day(s) old.
    
    For further assistance, please send mail to postmaster.
    
    If you do so, please include this problem report. You can
    delete your own text from the attached returned message.
    
                      The mail system
    
    <mail@domain.com>: temporary failure. Command output:
       /usr/bin/maildrop: Cannot set my user or group id.
    
    Final-Recipient: rfc822; mail@domain.com
    Original-Recipient: rfc822;mail@domain.com
    Action: delayed
    Status: 4.3.0
    Diagnostic-Code: x-unix; /usr/bin/maildrop: Cannot set my user or group id.
    Will-Retry-Until: Fri, 27 Nov 2009 01:24:11 +0100 (CET)
    I hope Till you can help me.
     
  3. richardson

    richardson New Member

    more

    I think i know the problem.
    My maildrop doent make the maildir.

    Code:
    core:/var/vmail # maildrop -V 3 -d sysadm@domain.com
    maildrop: authlib: groupid=5000
    maildrop: authlib: userid=5000
    maildrop: authlib: logname=sysadm@domain.com, home=/var/vmail, mail=/var/vmail/domain.com/sysadm
    maildrop: Changing to /var/vmail
    maildrop: Home directory owned by wrong user.
    
    the problem is that here is my /var/vmail:
    Code:
    core:/var/vmail # ls -l
    total 12
    -rwx------ 1 vmail vmail 1382 Nov 22 11:24 .mailfilter
    -rw-r--r-- 1 root  root  1382 Nov 22 11:24 .mailfilter~
    drwxr-xr-x 4 root  root  4096 Nov 21 15:42 mailfilters
    
    And the directory:
    Code:
    core:/var/vmail # ls -ld
    drwxr-xr-x 3 vmail vmail 4096 Nov 22 14:01 .
    
    What shoud i do?
     
  4. till

    till Super Moderator Howtoforge Staff HowtoForge Supporter ISPConfig Developer

    The maildir is made by ispconfig and not maildrop. Please take a look in the ispconfog monitor and post the error message that you get there in the system log.
     
  5. richardson

    richardson New Member

    Code:
    Nov 22 15:01:01 core /usr/sbin/cron[20346]: (root) CMD (/usr/local/ispconfig/server/server.sh &> /dev/null)
    Nov 22 15:02:01 core /usr/sbin/cron[20374]: (root) CMD (/usr/local/ispconfig/server/server.sh &> /dev/null)
    Nov 22 15:03:01 core /usr/sbin/cron[20404]: (root) CMD (/usr/local/ispconfig/server/server.sh &> /dev/null)
    Nov 22 15:04:01 core /usr/sbin/cron[20432]: (root) CMD (/usr/local/ispconfig/server/server.sh &> /dev/null)
    Nov 22 15:05:01 core /usr/sbin/cron[20460]: Permission denied
    Nov 22 15:05:01 core /usr/sbin/cron[20462]: (root) CMD (/usr/local/ispconfig/server/server.sh &> /dev/null)
    Nov 22 15:05:01 core pure-ftpd: (?@127.0.0.1) [INFO] New connection from 127.0.0.1
    Nov 22 15:05:01 core pure-ftpd: (?@127.0.0.1) [INFO] Logout.
    Permission denied? mybe there is the problem
     
  6. falko

    falko Super Moderator Howtoforge Staff Moderator HowtoForge Supporter ISPConfig Developer

    What's the output of
    Code:
    crontab -l
    ?
     
  7. richardson

    richardson New Member

    Code:
    core:~ # crontab -l
    # DO NOT EDIT THIS FILE - edit the master and reinstall.
    # (crontab.txt installed on Sun Nov 22 11:25:01 2009)
    # (Cron version V5.0 -- $Id: crontab.c,v 1.12 2004/01/23 18:56:42 vixie Exp $)
    # DO NOT EDIT THIS FILE - edit the master and reinstall.
    # (crontab.txt installed on Wed Nov 18 20:20:52 2009)
    # (Cron version V5.0 -- $Id: crontab.c,v 1.12 2004/01/23 18:56:42 vixie Exp $)
    # DO NOT EDIT THIS FILE - edit the master and reinstall.
    # (crontab.txt installed on Wed Nov 18 19:44:46 2009)
    # (Cron version V5.0 -- $Id: crontab.c,v 1.12 2004/01/23 18:56:42 vixie Exp $)
    # DO NOT EDIT THIS FILE - edit the master and reinstall.
    # (crontab.txt installed on Wed Nov 18 15:38:43 2009)
    # (Cron version V5.0 -- $Id: crontab.c,v 1.12 2004/01/23 18:56:42 vixie Exp $)
    # DO NOT EDIT THIS FILE - edit the master and reinstall.
    # (crontab.txt installed on Wed Nov 18 14:43:20 2009)
    # (Cron version V5.0 -- $Id: crontab.c,v 1.12 2004/01/23 18:56:42 vixie Exp $)
    * * * * * /usr/local/ispconfig/server/server.sh &> /dev/null
    30 00 * * * /usr/local/ispconfig/server/cron_daily.sh &> /dev/null
    
     
  8. richardson

    richardson New Member

    anyone? :(
     
  9. till

    till Super Moderator Howtoforge Staff HowtoForge Supporter ISPConfig Developer

    Please check the system log in the ispconfig monitor. the log output that you posted above is not the system log from the monitor.
     
  10. richardson

    richardson New Member

    this is from the system-log ( in the menu)
    Code:
    Nov 24 10:04:01 core /usr/sbin/cron[26220]: (root) CMD (/usr/local/ispconfig/server/server.sh &> /dev/null)
    Nov 24 10:05:01 core /usr/sbin/cron[26250]: (root) CMD (/usr/local/ispconfig/server/server.sh &> /dev/null)
    Nov 24 10:05:01 core /usr/sbin/cron[26247]: Permission denied
    Nov 24 10:05:02 core pure-ftpd: (?@127.0.0.1) [INFO] New connection from 127.0.0.1
    Nov 24 10:05:02 core pure-ftpd: (?@127.0.0.1) [INFO] Logout.
    Nov 24 10:06:01 core /usr/sbin/cron[26307]: (root) CMD (/usr/local/ispconfig/server/server.sh &> /dev/null)
    Nov 24 10:07:01 core /usr/sbin/cron[26335]: (root) CMD (/usr/local/ispconfig/server/server.sh &> /dev/null)
    Nov 24 10:08:01 core /usr/sbin/cron[26365]: (root) CMD (/usr/local/ispconfig/server/server.sh &> /dev/null)
    Nov 24 10:09:01 core /usr/sbin/cron[26423]: (root) CMD (/usr/local/ispconfig/server/server.sh &> /dev/null)
    Nov 24 10:10:01 core /usr/sbin/cron[26450]: Permission denied
    Nov 24 10:10:01 core /usr/sbin/cron[26452]: (root) CMD (/usr/local/ispconfig/server/server.sh &> /dev/null)
    mail error log:
    Code:
    Nov 22 00:29:13 core imapd: mail@domain.com: No such file or directory
    Nov 22 00:29:32 core imapd: mail@domain.com: No such file or directory
    Nov 22 00:31:13 core imapd: mail@domain.com: No such file or directory
    Nov 22 00:36:45 core imapd: mail@domain.com: No such file or directory
    Nov 22 00:43:58 core imapd: mail@domain.com: No such file or directory
    Nov 22 00:46:27 core amavis[20545]: (20545-04) (!!)WARN: all primary virus scanners failed, considering backups
    Nov 22 01:00:19 core imapd: mail@domain.com: No such file or directory
    Nov 22 01:05:29 core amavis[20546]: (20546-04) (!!)WARN: all primary virus scanners failed, considering backups
    Nov 22 01:17:59 core amavis[20545]: (20545-05) (!!)WARN: all primary virus scanners failed, considering backups
    Nov 22 01:24:03 core amavis[20546]: (20546-05) (!!)WARN: all primary virus scanners failed, considering backups
    Nov 22 01:39:49 core pipe[6298]: fatal: pipe_command: execvp /usr/bin/maildrop: No such file or directory
    Nov 22 11:26:05 core imapd: mail@domain.com: No such file or directory
    mail-log
    Code:
    Nov 24 10:08:26 core maildrop[26415]: Cannot set my user or group id.
    Nov 24 10:08:26 core postfix/pipe[26411]: 8806E2AD51: to=, relay=maildrop, delay=204255, delays=204255/0.05/0/0.01, dsn=4.3.0, status=deferred (temporary failure. Command output: /usr/bin/maildrop: Cannot set my user or group id. )
    Nov 24 10:08:26 core maildrop[26420]: Cannot set my user or group id.
    Nov 24 10:08:26 core postfix/pipe[26398]: 5CE8C2AD53: to=, relay=maildrop, delay=167855, delays=167855/0.06/0/0.01, dsn=4.3.0, status=deferred (temporary failure. Command output: /usr/bin/maildrop: Cannot set my user or group id. )
    Nov 24 10:10:01 core postfix/smtpd[26487]: connect from localhost[127.0.0.1]
    Nov 24 10:10:01 core postfix/smtpd[26487]: lost connection after CONNECT from localhost[127.0.0.1]
    Nov 24 10:10:01 core postfix/smtpd[26487]: disconnect from localhost[127.0.0.1]
     
  11. richardson

    richardson New Member

    anyone?

    so the problem is that i dont have no more here:
    /var/vmail
    Code:
    core:/var/vmail # ls -l
    total 12
    -rwx------ 1 vmail vmail 1382 2009-11-22 11:24 .mailfilter
    -rw-r--r-- 1 vmail vmail 1382 2009-11-22 11:24 .mailfilter~
    drwxr-xr-x 4 vmail vmail 4096 2009-11-24 21:26 mailfilters
    
    but in the admin i have the accounts
     
  12. richardson

    richardson New Member

    ok, if i make on my own the maildir than everything works...
     
  13. momfer

    momfer New Member HowtoForge Supporter

    Same problem persists here, install guide was followed 100%.

    Mail is still not accepting mail and/or connections!
     
  14. till

    till Super Moderator Howtoforge Staff HowtoForge Supporter ISPConfig Developer

    In > 90% of all cases ist not the same problem. So please make a new thread with a exact description of your problem incl. the error messages from the mail log file.
     

Share This Page