Enable quota Postfix

Discussion in 'Server Operation' started by MGStudioWEB, Oct 3, 2011.

  1. MGStudioWEB

    MGStudioWEB Member

    Hi, i've Centos 5.5 x86_64 with Postfix 2.3.3 installed via yum, i want enable quotas but following many guides all refer to editing a file, / usr / src / redhat / SPECS / postfix.spec; I don't have this file, perhaps it would have had to install the rpm source postfix-2.3.3-2.src.rpm? In my case, how can I apply the patch without losing configurations?

    Thanks
     
  2. MGStudioWEB

    MGStudioWEB Member

    I've try to use postfix-2.3.3-2.src.rpm but it give a error:

    Code:
    ERROR ERROR ERROR ERROR ERROR ERROR ERROR ERROR ERROR ERROR ERROR ERROR
    
    This postfix.spec file may not work correctly.
    It was built for rhel-4.0, while you are running rhel-5.0.
    
    Please rebuild postfix.spec for your distribution by following the
    instructions in postfix.spec.cf.
    
    If this procedure does not allow you to produce a working package, please
    let me know.
    
    ERROR ERROR ERROR ERROR ERROR ERROR ERROR ERROR ERROR ERROR ERROR ERROR
    
    Where i can find postfix 2.3.3 src for Centos 5.5 or fix it?

    Thanks
     
  3. falko

    falko Super Moderator Howtoforge Staff

  4. MGStudioWEB

    MGStudioWEB Member

    Hi Falco,

    the rmp link is broken...
     
  5. falko

    falko Super Moderator Howtoforge Staff

  6. MGStudioWEB

    MGStudioWEB Member

    Thanks, should I remove the previous version (installed via YUM) before installing the Postfix rpm file?
     
  7. falko

    falko Super Moderator Howtoforge Staff

    I don't think this is necessary if you install the new src.rpm with the -Uvh switch:
    Code:
    rpm -Uvh postfix-2.3.3-2.1.el5_2.src.rpm
     
  8. MGStudioWEB

    MGStudioWEB Member

    My Postfix versione are more recent, i've remove and reinstall... now i've install the new rmp.
    Now how can test the quota features?
    I've store my mail user on /etc/passwd (create with useradd), for the quota i use edquota, can i set postfix for read this value and not mysql?

    Thanks a lot!
     
  9. falko

    falko Super Moderator Howtoforge Staff

    I'm not sure if the quota patch works for system users because you can use normal system quota for them. I guess the patch is made to read quota values from a database.
     
  10. MGStudioWEB

    MGStudioWEB Member

    if I send an email to over quota accout goes back a mail error (procmail error) it can't move a file into maildir forder, how can check the user quota and give a custom message?
     
  11. MGStudioWEB

    MGStudioWEB Member

    I think my problem is like this:

    http://www.howtoforge.com/forums/showthread.php?t=8197

    In main.cf I've this line:

    bounce_template_file = /etc/postfix/bounce.cf

    If i send a message, the error is like this:

    <>: can't create user output file.
    Command output: procmail: Missing name procmail: Couldn't create
    ...

    I would show a quota message, how can i do?
    The server can check if a user has a nearly full box (90%) and automatically send an email notice to the user email address?
     
    Last edited: Oct 6, 2011
  12. MGStudioWEB

    MGStudioWEB Member

    Procmail don't see if a user is over quota and when try to move the new email into Maildir folder it give a error; the return mail is correct but i want send to return-path emial a over quota message, not a procmail error...
     
  13. MGStudioWEB

    MGStudioWEB Member

    Up...

    I just do not see the real error message but customizing an e-mail message with a friendly text...
    Know a script that monitors and send an email quota message?

    Thanks
     

Share This Page