Mail system problems.

Discussion in 'Installation/Configuration' started by SkIRmiS, Oct 13, 2005.

  1. SkIRmiS

    SkIRmiS New Member


    1. first problem.
    Sometimes I got the strange message:
    with no subject, name and et.c the body is:

    X-Spam-Checker-Version: SpamAssassin 3.0.4 (2005-06-05) on
    X-Spam-Status: No, score=-1.2 required=5.0 tests=ALL_TRUSTED,MISSING_DATE,
    MISSING_SUBJECT autolearn=unavailable version=3.0.4

    I got this message after sending file.txt to my email. Already, i got 5 messages like this. My email is set to system admin email in ISPconfig.

    2. second problem, with quotas.
    Web users and web site has quota 5000 mb. The ISPconfig shows that site are only using 23.2 mb of all 5000. Web site users does'nt has mail box quota limits. But sometimes whey cannot receive email, of a error Mail quota exceeded!

    On shell:
    repquota -avug | grep web29
    web29 -- 410904 5120000 5120000 6992 0 0

    As you can see web29 user are using 401 mb. Not 23.2 mb that says the ISPconfig. I checked the owners of users directories, everything is fine. Others sites are showing not correct size too:( But at least the emails are working well.

    3. Where to find logs of spammassins reports, trashscan, clamav?

    4. Thanks for advice.

  2. till

    till Super Moderator Staff Member ISPConfig Developer

    ISPConfig reports the size of the website directory including the subdirectorys user, logs, web, etc. If your users are able to store files in other places the sizes may differ.

    They dont write logs by default.
  3. SkIRmiS

    SkIRmiS New Member

    1.The users don't have other places outside webXX.
    2.I need these logs to see that happens with rejected mail.

    And do you know something about my first problem?

  4. jmroth

    jmroth ISPConfig Developer ISPConfig Developer

    Well well,
    I have started receiving quota exceeded errors for one user too, and the user definitely has no quota restrictions (neither does the group).
    The debug output shows interesting things:
    /bin/sh: line 1: let: HD_QUOTA=*1024: syntax error: operand expected (error token is "*1024")
    Apparently procmail thinks QUOTA is set and then tries to do arithmetics on an empty expression which obviously goes wrong.
    I didn't dig into procmail yet but maybe this helps someone figure out the real problem.
  5. jmroth

    jmroth ISPConfig Developer ISPConfig Developer

    I don't really know but maybe what you were trying to do should be
    ... quota -v ${LOGNAME} | sed -n 3p ....
    on line 22 of .quota.rc, otherwise the 3p wouldn't really make sense
    however I do not know why my other users don't generate error messages
    very strange although something is obviously wrong here
  6. Ovidiu

    Ovidiu Active Member

    I have exactly the same strange, empty emails, I get them around 5-7 times a day, its hard to track them down as they don't even have a timestamp, nothing. I had one idea, concerning their origin: it seemed like when I was trying to send an email to a non-existent mailbox I got these empty mails instead of a user unknown reply. but I can't test it as I can't send emails to local domains, because these get instantly verified...

    can you try and send an email to [email protected] ? Please check if you get one ofthese empty mails right after that.
  7. brent.stephens

    brent.stephens New Member

    I'm getting these extremely odd mail quota issues now as well. I cannot discern why its happening, but its extremely frustrating and pretty embarassing too. syslog output below. It seems to be breaking up their 'real' name and trying to send it to them...I just have no idea where its getting it and WHY its happening...

  8. till

    till Super Moderator Staff Member ISPConfig Developer

  9. brent.stephens

    brent.stephens New Member

    The username is davesperandio
  10. falko

    falko Super Moderator ISPConfig Developer

  11. momo

    momo New Member

  12. till

    till Super Moderator Staff Member ISPConfig Developer

  13. momo

    momo New Member

    Yes, I mean this, I fallowed your advice:
    If you use maildir, you can try to disable the quota procmail recipe. Then the quota is handled completely by the linux system quota. This might solve the problem.

    Open the file


    and comment out the line:


    Then go in the ispconfig interface and change something in an account of y user where you got this problem and save the user. The procmailrc will then be rewritten.


    But don't know how to change to all users this ? Not to only 4 one... I have about 600 users

    Thanks for advice!
  14. falko

    falko Super Moderator ISPConfig Developer

    You could either write a script that does it, or you set the status field of all users in the isp_isp_user table in the ISPConfig database to u and run
    touch /home/admispconfig/ispconfig/.run
    This will make ISPConfig rewrite the procmail recipes (I haven't tested it, but it should work).
  15. rafaelenrike

    rafaelenrike New Member

    I had almost the same problem. this is the error email that returns back when I send an email to a specific account (not all accounts):

    This is the Postfix program at host mailserver.domain.tld.

    I'm sorry to have to inform you that your message could not
    be delivered to one or more recipients. It's attached below.

    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 Postfix program

    <[email protected]> (expanded from <[email protected]>):
    can't create user output file. Command output: /bin/sh: let:
    HD_QUOTA=*1024: syntax error: operand expected (error token is "*1024")
    /bin/sh: line 1: [: !=: unary operator expected procmail: Error while
    writing to "/var/mail/web1_user1"

    Does anyone know why is dis happening and how to fix it?

    Thanks for your help.
  16. till

    till Super Moderator Staff Member ISPConfig Developer

    Please set a web (harddisk) quota for this user in ISPCOnfig.

    Do you use maildir or mbox format for mail storage?
  17. rafaelenrike

    rafaelenrike New Member

    Problem with Mails

    I use mbox format for mail storage. Every account for this domain is using mbox format and also every account has set 0 Mb for Web storage and XX Mb for Mail storage.
  18. till

    till Super Moderator Staff Member ISPConfig Developer

    Do you have linux system quota enabled on your /var partition?

    If yes, you must set the webspace quota at least to the double size of the mbox size.
  19. rafaelenrike

    rafaelenrike New Member

    Mail System Problem

    I just have "/boot" and "/" partitions on my system (I used FC4 perfect setup). I already configured quotas for "/".

    [root@webserver ~]# df -h
    Filesystem Size Used Avail Use% Mounted on
    287G 3.5G 269G 2% /
    /dev/sda2 99M 23M 72M 24% /boot
    /dev/shm 504M 0 504M 0% /dev/shm

    So I just have one partition for all the system.

    Thanks for your help.
  20. falko

    falko Super Moderator ISPConfig Developer

    Please post the output of
    ls -la /var/mail
    repquota -avug | web1_user1
    What's web1_user1's homedir?

Share This Page