procmail can't write

Discussion in 'General' started by Hellbound, Jan 13, 2008.

  1. Hellbound

    Hellbound New Member

    hi guys,

    I have a mailbox that can't go beyond 50MB and there -1 set in the backpanel,
    so it must be unlimited,

    the sender get this message >

    Code:
    
    Sorry, this feature is not yet available in your country.
    
    You can still receive new mail alerts through Yahoo! Messenger, or automatically manage your messages using filters.
    Previous | Next | Back to Messages Call or Instant Message  
    Delete Reply Forward Spam Move...
    
    Printable View This message is not flagged. [ Flag Message - Mark as Unread ]
    Date:	Mon, 14 Jan 2008 03:28:35 +0800 (MYT)
    From:	"Mail Delivery System" <MAILER-DAEMON@host2.persiasys.com>  Add to Address BookAdd to Address Book  Add Mobile Alert
    Subject:	Undelivered Mail Returned to Sender
    To:	mp3nick@yahoo.com
    
    
    This is the mail system at host host2.persiasys.com.
    
    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 mail system
    
    <web7_root@host2.persiasys.com> (expanded from <ramin neguin.com>): can't
        create user output file. Command output: procmail: Error while writing to
        "/var/spool/mail/web7_root"
    
    Message/delivery-status
    
    Reporting-MTA: dns; host2.persiasys.com
    X-Postfix-Queue-ID: 297A4AD800A2
    X-Postfix-Sender: rfc822; mp3nick@yahoo.com
    Arrival-Date: Mon, 14 Jan 2008 03:28:33 +0800 (MYT)
    
    Final-Recipient: rfc822; web7_root@host2.persiasys.com
    Original-Recipient: rfc822;ramin@neguin.com
    Action: failed
    Status: 5.2.0
    Diagnostic-Code: x-unix; procmail: Error while writing to
        "/var/spool/mail/web7_root"
    
    Forwarded Message [ Download File ]
    Date:	Sun, 13 Jan 2008 11:28:31 -0800 (PST)
    From:	"S. Mohammad" <mp3nick@yahoo.com>
    Subject:	test 3.28am
    To:	"Ramin Ahmadi" <ramin@neguin.com>
    
    HTML Attachment [ Scan and Save to Computer ]
    
    Delete Reply Forward Spam Move...
    Previous | Next | Back to Messages Save Message Text | Full Headers
    

    also I have some odd owner for some of the mailboxes:

    Code:
    -rw-rw----  1         12006 mail        0 2007-11-19 17:52 web6_anonftp
    -rw-rw----  1         10007 mail        0 2007-11-19 17:51 web6_irsr
    -rw-rw----  1 web6_mohd     mail        0 2007-11-28 18:15 web6_mohd
    -rw-rw----  1         10048 mail        0 2007-11-19 17:51 web6_root
    -rw-rw----  1         10011 mail        0 2007-11-19 17:51 web6_sitemanager
    -rw-rw----  1         10010 mail        0 2007-11-19 17:51 web6_webmaster
    
     
    Last edited: May 19, 2009
  2. till

    till Super Moderator Howtoforge Staff HowtoForge Supporter ISPConfig Developer

    What is the webspace limit of the user and the site?
     
  3. Hellbound

    Hellbound New Member


    it is 10 Gigabytes and it 95% empty
     
  4. till

    till Super Moderator Howtoforge Staff HowtoForge Supporter ISPConfig Developer

    You set the numer 10000 in the web quota field of the site and in the web quota field of this user?
     
  5. Hellbound

    Hellbound New Member

    it says zero :

    Code:
    [root@host2 ~]# quota web7_root
    Disk quotas for user web7_root (uid 10030): none
    
     
  6. till

    till Super Moderator Howtoforge Staff HowtoForge Supporter ISPConfig Developer

    And what did you enter in the two fileds: web quota of the user and web quota of the site?
     
  7. Hellbound

    Hellbound New Member

    sorry,
    SITE:
    Space MB: 10000

    USER:
    WebSpace MB: -1
    MailSpace MB: -1
     
  8. falko

    falko Super Moderator Howtoforge Staff Moderator HowtoForge Supporter ISPConfig Developer

    What's the output of
    Code:
    repquota -avug
    ?
     
  9. Hellbound

    Hellbound New Member

    Thanks for the reply

    Code:
    [root@host2 ~]# repquota -avug
    *** Report for user quotas on device /dev/mapper/VolGroup00-LogVol00
    Block grace time: 7days; Inode grace time: 7days
                            Block limits                File limits
    User            used    soft    hard  grace    used  soft  hard  grace
    ----------------------------------------------------------------------
    root      -- 5340284       0       0          96596     0     0
    daemon    --      20       0       0              3     0     0
    lp        --      16       0       0              2     0     0
    ftp       --       4       0       0              1     0     0
    nobody    --       4       0       0              1     0     0
    vcsa      --       4       0       0              1     0     0
    rpc       --      28       0       0              4     0     0
    distcache --       4       0       0              1     0     0
    nscd      --       4       0       0              1     0     0
    tcpdump   --       4       0       0              1     0     0
    dbus      --       4       0       0              1     0     0
    rpm       --    2488       0       0            109     0     0
    polkituser --      20       0       0              3     0     0
    apache    --   86128       0       0           6684     0     0
    avahi     --      24       0       0              8     0     0
    openvpn   --       4       0       0              1     0     0
    mailnull  --       4       0       0              1     0     0
    smmsp     --      12       0       0              2     0     0
    rpcuser   --      32       0       0              6     0     0
    nfsnobody --       4       0       0              1     0     0
    named     --     112       0       0             16     0     0
    ntp       --      24       0       0              4     0     0
    squid     --      20       0       0              3     0     0
    sshd      --       4       0       0              1     0     0
    webalizer --      36       0       0              5     0     0
    dovecot   --      12       0       0              2     0     0
    mysql     --   96240       0       0           3306     0     0
    torrent   --      44       0       0              6     0     0
    backuppc  --     168       0       0             12     0     0
    haldaemon --      20       0       0              3     0     0
    postfix   --    1296       0       0            284     0     0
    admispconfig -- 9173660       0       0           3821     0     0
    web12_root --       0       0       0              1     0     0
    web16_root --       0       0       0              1     0     0
    web18_contact --       0       0       0              1     0     0
    web1_anonftp --       0       0       0              1     0     0
    web7_contact --       4       0       0              1     0     0
    web2_root --  155960       0       0          14713     0     0
    web2_anonftp --       0       0       0              1     0     0
    web1_roya --    4512       0       0            478     0     0
    web1_root --      20       0       0              7     0     0
    web14_ps  --   21568       0       0           2689     0     0
    web15_root --   18104       0       0             96     0     0
    web7_alipour --      20       0       0              5     0     0
    web10_root -- 293877828       0       0          15314     0     0
    web13_root --  352164       0       0           2634     0     0
    web12_contact --      20       0       0              5     0     0
    web12_hamed --      16       0       0              6     0     0
    web6_mohd --      20       0       0              6     0     0
    web6_root --  163120       0       0            109     0     0
    web6_irsr --      20       0       0              5     0     0
    web6_webmaster --      20       0       0              5     0     0
    web6_sitemanager --      20       0       0              5     0     0
    web19_root -- 1074276       0       0          26532     0     0
    web17_root -- 97158564       0       0           3578     0     0
    web8_angelene --      32       0       0              6     0     0
    web8_fauzil --      20       0       0              6     0     0
    web8_contact --  345168       0       0           8725     0     0
    web8_billing --    2644       0       0              6     0     0
    web8_mohd --     836       0       0             33     0     0
    web7_root --  702640       0       0          50154     0     0
    web7_vernon --   21576       0       0              7     0     0
    web7_diba --     228       0       0              6     0     0
    web7_rahman --    7860       0       0              6     0     0
    web7_shahram --      32       0       0              6     0     0
    web7_behzadi --    3220       0       0              6     0     0
    web7_mohd --      24       0       0              7     0     0
    web7_javan --    7436       0       0              6     0     0
    #501      --    6012       0       0            543     0     0
    #12006    --       0       0       0              1     0     0
    #10007    --       0       0       0              1     0     0
    #1000     --   35768       0       0           2841     0     0
    #10010    --       0       0       0              1     0     0
    #10011    --       0       0       0              1     0     0
    #10048    --  254592       0       0           7965     0     0
    #10018    --      32       0       0             10     0     0
    #1010     --    6880       0       0            918     0     0
    
    Statistics:
    Total blocks: 15
    Data blocks: 4
    Entries: 77
    Used average: 19.250000
    
    *** Report for group quotas on device /dev/mapper/VolGroup00-LogVol00
    Block grace time: 7days; Inode grace time: 7days
                            Block limits                File limits
    Group           used    soft    hard  grace    used  soft  hard  grace
    ----------------------------------------------------------------------
    root      -- 20536016       0       0         151466     0     0
    daemon    --      24       0       0              4     0     0
    sys       --      32       0       0              4     0     0
    tty       --      24       0       0              2     0     0
    disk      --       4       0       0              1     0     0
    lp        --      96       0       0             19     0     0
    mail      --   93816       0       0             65     0     0
    man       --     256       0       0             32     0     0
    games     --    6012       0       0            543     0     0
    ftp       --       4       0       0              1     0     0
    lock      --      28       0       0              2     0     0
    nobody    --     100       0       0              2     0     0
    rpc       --       8       0       0              1     0     0
    utmp      --     792       0       0              6     0     0
    utempter  --       8       0       0              1     0     0
    ccache    --    9288       0       0           1043     0     0
    slocate   --    6920       0       0              3     0     0
    screen    --     356       0       0              2     0     0
    dbus      --      48       0       0              1     0     0
    rpm       --    2484       0       0            108     0     0
    polkituser --      48       0       0              4     0     0
    apache    -- 1755572       0       0          58428     0     0
    wbpriv    --       8       0       0              1     0     0
    avahi     --      20       0       0              7     0     0
    fuse      --      68       0       0              2     0     0
    smmsp     --     852       0       0              7     0     0
    rpcuser   --      28       0       0              5     0     0
    named     --     376       0       0             75     0     0
    ntp       --      28       0       0              4     0     0
    squid     --     212       0       0              6     0     0
    dovecot   --      24       0       0              6     0     0
    mysql     --   96240       0       0           3306     0     0
    torrent   --      40       0       0              5     0     0
    backuppc  --     116       0       0              5     0     0
    haldaemon --      16       0       0              2     0     0
    postdrop  --     360       0       0              4     0     0
    postfix   --    1244       0       0            270     0     0
    admispconfig -- 9173656       0       0           3819     0     0
    web6      --  269052 10240000 10241024            128     0     0
    web12     --     764 20480000 20481024             83     0     0
    web16     --     124 102400000 102401024             36     0     0
    web1      --    4540 10240000 10241024            486     0     0
    web2      --    1012 10240000 10241024             90     0     0
    web7      --  256472 10240000 10241024          14177     0     0
    web8      --    6920 102400000 102401024            110     0     0
    web10     -- 279137732       0       0           6754     0     0
    web13     --  352168 20480000 20481024           2636     0     0
    web14     --    1988 10240000 10241024             81     0     0
    web15     --   18112 20480000 20481024             99     0     0
    web17     -- 97138252       0       0            590     0     0
    web19     --    6976       0       0             47     0     0
    #1000     --   35768       0       0           2841     0     0
    #1010     --    6880       0       0            918     0     0
    
    Statistics:
    Total blocks: 12
    Data blocks: 3
    Entries: 53
    Used average: 17.666667
    
    
     
  10. falko

    falko Super Moderator Howtoforge Staff Moderator HowtoForge Supporter ISPConfig Developer

    Looks ok. What's the output of
    Code:
    ls -la /var/spool/mail
    ?
     
  11. Hellbound

    Hellbound New Member

    Thanks for the reply,
    thats where I'm scratching my head


    Code:
    [root@host2 ~]# ls -la /var/spool/mail
    total 108776
    drwxrwxr-x  2 root          mail     4096 2008-01-15 22:14 .
    drwxr-xr-x 15 root          root     4096 2004-01-03 00:17 ..
    -rw-rw----  1 admispconfig  mail        0 2007-11-16 14:29 admispconfig
    -rw-rw----  1 apache        mail        0 2004-01-02 00:49 apache
    -rw-rw----  1 avahi         mail        0 2004-01-02 00:49 avahi
    -rw-rw----  1 backuppc      mail        0 2004-01-02 00:52 backuppc
    -rw-rw----  1 dbus          mail        0 2004-01-02 00:49 dbus
    -rw-rw----  1 distcache     mail        0 2004-01-02 00:48 distcache
    -rw-rw----  1 dovecot       mail        0 2004-01-02 00:50 dovecot
    -rw-rw----  1 haldaemon     mail        0 2004-01-02 00:52 haldaemon
    -rw-rw----  1 mailnull      mail        0 2004-01-02 00:50 mailnull
    -rw-rw----  1 mysql         mail        0 2004-01-02 00:50 mysql
    -rw-rw----  1 named         mail        0 2004-01-02 00:50 named
    -rw-rw----  1 nfsnobody     mail        0 2004-01-02 00:50 nfsnobody
    -rw-rw----  1 nscd          mail        0 2004-01-02 00:48 nscd
    -rw-rw----  1 ntp           mail        0 2004-01-02 00:50 ntp
    -rw-rw----  1 openvpn       mail        0 2004-01-02 00:49 openvpn
    -rw-rw----  1 polkituser    mail        0 2004-01-02 00:49 polkituser
    -rw-rw----  1 postfix       mail        0 2004-01-03 00:17 postfix
    -rw-rw----  1 root          root  7166323 2008-01-15 22:14 root
    -rw-rw----  1 rpc           mail        0 2004-01-02 00:48 rpc
    -rw-rw----  1 rpcuser       mail        0 2004-01-02 00:50 rpcuser
    -rw-rw----  1 rpm           mail        0 2004-01-02 00:49 rpm
    -rw-rw----  1 smmsp         mail        0 2004-01-02 00:50 smmsp
    -rw-rw----  1 squid         mail        0 2004-01-02 00:50 squid
    -rw-rw----  1 sshd          mail        0 2004-01-02 00:50 sshd
    -rw-rw----  1 tcpdump       mail        0 2004-01-02 00:48 tcpdump
    -rw-rw----  1 torrent       mail        0 2004-01-02 00:52 torrent
    -rw-rw----  1 vcsa          mail        0 2004-01-02 00:47 vcsa
    -rw-rw----  1 web10_root    mail        0 2007-11-21 14:37 web10_root
    -rw-rw----  1 web12_root    mail        0 2007-11-19 17:51 web12_root
    -rw-rw----  1 web13_root    mail        0 2007-11-29 11:01 web13_root
    -rw-rw----  1 web14_ps      mail        0 2007-11-29 11:08 web14_ps
    -rw-rw----  1 web15_root    mail        0 2007-12-01 03:47 web15_root
    -rw-rw----  1 web16_root    mail        0 2007-11-19 17:51 web16_root
    -rw-rw----  1 web17_root    mail        0 2007-12-01 17:16 web17_root
    -rw-rw----  1 web18_contact mail        0 2007-11-19 17:52 web18_contact
    -rw-rw----  1 web19_root    mail        0 2007-12-31 03:06 web19_root
    -rw-rw----  1 web1_anonftp  mail        0 2007-11-19 18:03 web1_anonftp
    -rw-rw----  1 web1_root     mail        0 2007-11-29 10:34 web1_root
    -rw-rw----  1 web1_roya     mail        0 2007-11-29 10:34 web1_roya
    -rw-rw----  1 web2_anonftp  mail        0 2007-11-29 10:33 web2_anonftp
    -rw-rw----  1 web2_root     mail        0 2007-11-20 12:35 web2_root
    -rw-rw----  1         12006 mail        0 2007-11-19 17:52 web6_anonftp
    -rw-rw----  1         10007 mail        0 2007-11-19 17:51 web6_irsr
    -rw-rw----  1 web6_mohd     mail        0 2007-11-28 18:15 web6_mohd
    -rw-rw----  1         10048 mail        0 2007-11-19 17:51 web6_root
    -rw-rw----  1         10011 mail        0 2007-11-19 17:51 web6_sitemanager
    -rw-rw----  1         10010 mail        0 2007-11-19 17:51 web6_webmaster
    -rw-rw----  1 web7_behzadi  mail  3358299 2008-01-15 16:15 web7_behzadi
    -rw-rw----  1 web7_diba     mail   230002 2008-01-14 19:23 web7_diba
    -rw-rw----  1 web7_javan    mail  9670685 2008-01-15 22:19 web7_javan
    -rw-rw----  1 web7_mohd     mail     1543 2008-01-12 22:51 web7_mohd
    -rw-rw----  1 web7_rahman   mail  8450497 2008-01-15 23:40 web7_rahman
    -rw-------  1 web7_root     mail  4340521 2008-01-16 00:43 web7_root
    -rw-rw----  1 web7_shahram  mail     8406 2007-12-18 14:49 web7_shahram
    -rw-rw----  1 web7_vernon   mail 23285881 2008-01-16 00:44 web7_vernon
    -rw-rw----  1 web8_angelene mail     9103 2007-12-21 16:52 web8_angelene
    -rw-rw----  1 web8_billing  mail  2681613 2008-01-15 07:37 web8_billing
    -rw-rw----  1 web8_contact  mail        0 2007-11-21 13:11 web8_contact
    -rw-rw----  1 web8_fauzil   mail        0 2007-11-29 00:10 web8_fauzil
    -rw-rw----  1 web8_mohd     mail   673622 2008-01-15 00:22 web8_mohd
    -rw-rw----  1 webalizer     mail        0 2004-01-02 00:50 webalizer
    -rw-rw----  1 web7_root     mail 51199793 2008-01-14 03:40 web_root_old
    You have new mail in /var/spool/mail/root
    [root@host2 ~]#
    
     
  12. falko

    falko Super Moderator Howtoforge Staff Moderator HowtoForge Supporter ISPConfig Developer

    Please run
    Code:
    chmod 660 /var/spool/mail/web7_root
     
  13. Hellbound

    Hellbound New Member

    Hi,

    I've than before but it didn't help and I noticed after a while the permission is changed to 600 but I don't know what is changing the permission, I guess is quota that is doing that to limit the writing to the file but the qouta is showing nothing.
     
  14. falko

    falko Super Moderator Howtoforge Staff Moderator HowtoForge Supporter ISPConfig Developer

    Does this happen regularly? If so, does it happen at the same time each day? Maybe a cron job?
    Maybe you should also check your server with chkrootkit and rkhunter.
     
  15. dron

    dron New Member

    I have a similar problem

    hello

    I think it correspond with this thread... all my mailboxes whose size is bigger than 50MB has this problem.

    Code:
    can't
        create user output file. Command output: procmail: Extraneous locallockfile
        ignored procmail: Error while writing to "/var/mail/web4_admin"
    output of ls -la /var/mail/web4*

    Code:
    -rw------- 1 web4_admin      mail 51074831 Sep  8 11:07 /var/mail/web4_admin
    -rw------- 1 web4_dron       mail    67702 Aug 22 15:27 /var/mail/web4_user
    
    space limit for this web is 2MB, for this mail account is -1. Other mail account is not affected with this issue.

    quota is not exceeded.

    output of repquota -avug

    Code:
    Group           used    soft    hard  grace    used  soft  hard  grace
    ----------------------------------------------------------------------
    web4      --  112536 2048000 2049024           3092     0     0
    
    I find this issue on about 5 accounts. When I delete some mails I can accept mails but allways only up to 50MB limit of mailbox size.

    Now I use ISPConfig 2.2.24

    Has anyone same problem? Can you help me? Thanx!
     
  16. falko

    falko Super Moderator Howtoforge Staff Moderator HowtoForge Supporter ISPConfig Developer

    What's the output of
    Code:
    repquota -avug | grep web4
    ?
    What's in /etc/postfix/main.cf?
     
  17. dron

    dron New Member

    here is... (but I deleted a lots of mails from admin account, so it took only 3845260bytes now])
    Code:
    web4_admin --  116748       0       0           3104     0     0
    web4_user  --     264       0       0             34     0     0
    web4_admin --   42580       0       0            952     0     0
    web4_user  --     204       0       0             34     0     0
    web4       --       0 2048000 2049024              0     0     0
    web4       --  112648 2048000 2049024           3092     0     0
    web4       --       0 2048000 2049024              0     0     0
    web4       --   42608 2048000 2049024            986     0     0
    

    I made some changes here (I tried set-up greylisting but it didn't work as I expected so I comment out these changes and decided read more about it... one time...).

    Code:
    queue_directory = /var/spool/postfix
    command_directory = /usr/sbin
    daemon_directory = /usr/libexec/postfix
    mail_owner = postfix
    mydestination = /etc/postfix/local-host-names
    inet_interfaces = all
    
    unknown_local_recipient_reject_code = 550
    
    alias_maps = hash:/etc/aliases
    
    alias_database = hash:/etc/aliases
    
    local_destination_concurrency_limit = 5
    default_destination_concurrency_limit = 20
    
    debug_peer_level = 2
    
    debugger_command =
             PATH=/bin:/usr/bin:/usr/local/bin:/usr/X11R6/bin
             xxgdb $daemon_directory/$process_name $process_id & sleep 5
    
    sendmail_path = /usr/sbin/sendmail.postfix
    newaliases_path = /usr/bin/newaliases.postfix
    mailq_path = /usr/bin/mailq.postfix
    setgid_group = postdrop
    html_directory = no
    manpage_directory = /usr/share/man
    sample_directory = /usr/share/doc/postfix-2.3.3/samples
    readme_directory = /usr/share/doc/postfix-2.3.3/README_FILES
    
    smtpd_sasl_local_domain =
    smtpd_sasl_auth_enable = yes
    smtpd_sasl_security_options = noanonymous
    broken_sasl_auth_clients = yes
    
    smtpd_recipient_restrictions =
        permit_mynetworks,
        permit_auth_destination,
    #    reject_unauth_destination,
    #    check_policy_service  inet:127.0.0.1:10023,
        permit_sasl_authenticated,
        reject_unauth_destination,
        reject_invalid_hostname,
        reject_non_fqdn_sender,
        reject_non_fqdn_recipient,
        reject_unknown_sender_domain,
        reject_unknown_recipient_domain,
        reject_unauth_pipelining,
        reject
    
    
    mynetworks = 127.0.0.0/8
    smtpd_tls_auth_only = no
    smtp_use_tls = yes
    smtpd_use_tls = yes
    smtp_tls_note_starttls_offer = yes
    smtpd_tls_key_file = /etc/postfix/ssl/smtpd.key
    smtpd_tls_cert_file = /etc/postfix/ssl/smtpd.crt
    smtpd_tls_CAfile = /etc/postfix/ssl/cacert.pem
    smtpd_tls_loglevel = 1
    smtpd_tls_received_header = yes
    smtpd_tls_session_cache_timeout = 3600s
    tls_random_source = dev:/dev/urandom
    myhostname = hostname.myserver.net
    home_mailbox = Maildir/
    mailbox_command =
    
    virtual_maps = hash:/etc/postfix/virtusertable
    
    btw. I use centos 5.2.

    thanx for your help and time, falko.
     
  18. falko

    falko Super Moderator Howtoforge Staff Moderator HowtoForge Supporter ISPConfig Developer

    What's the output of
    Code:
    postconf -d | grep mailbox_size_limit
    ?

    You can try to set an unlimited mailbox size with
    Code:
    postconf -e 'mailbox_size_limit = 0'
    Restart Postfix afterwards.
     
  19. dron

    dron New Member

    aaargh :)

    Code:
    mailbox_size_limit = 51200000
    thanx a lot falko!
     
  20. dron

    dron New Member

    wow, it is funny. I can't change my mailbox_size_limit. no change is made when I set it to 0 or 51200001 or 51100000. After postfix restart there is allways output of
    Code:
    postconf -d
    Code:
    mailbox_size_limit = 51200000
    .

    Am I stupid or what? :confused:

    I use postfix-2.3.3-2.1.el5_2
     

Share This Page