Can't send email with attachments to a user

Discussion in 'General' started by rafaelenrike, Jun 12, 2006.

  1. rafaelenrike

    rafaelenrike New Member

    Hello guys.

    I'm having the following problem with ISPConfig 2.1.2

    I'm trying to send an email with an attachment to a user on the same site and the server says the following:

    Code:
    This is the Postfix program at host myserver.example.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 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_usuario2"
    The account web1_usuario2 is configured as follows:
    Webquota: 0
    Mailquota: 150
    No antivirus configured
    No antispam configured
    No mailscanner configured

    The account where I'm sending the email from (web1_usuario1) is configured as follows:
    Webquota: 0
    Mailquota: 150
    No antivirus configured
    No antispam configured
    No mailscanner configured

    I'm using only a huge partition (not separate partitions for /var and /home)

    The strange thing here is that when I send an email to this user without an attachment, it goes well and he receives it.

    Why do you think is this happening?

    Best regards.
     
  2. falko

    falko Super Moderator Howtoforge Staff

    What's the output of
    Code:
    repquota -avug | grep web1
    ?
    What's the output of
    Code:
    df -h
    ?
    What's the output of
    Code:
    ls -la /var/spool/mail
    ?
     
  3. rafaelenrike

    rafaelenrike New Member

    can't send email with attachments.

    Hello. These are the outputs with real data (I was giving an example before):

    Code:
    [root@webserver ~]# df -h
    Filesystem            Size  Used Avail Use% Mounted on
    /dev/mapper/VolGroup00-LogVol00
                          287G  5.7G  267G   3% /
    /dev/sda2              99M   23M   72M  24% /boot
    /dev/shm              504M     0  504M   0% /dev/shm
    
    The output of "ls -la" and "repquota -avug | grep web3" is sent as attachments.

    Thanks.
     

    Attached Files:

  4. falko

    falko Super Moderator Howtoforge Staff

    Can you post the outputs here instead of attaching them?
     
  5. rafaelenrike

    rafaelenrike New Member

    I Already resolved the problem

    It seems like the mbox file for the user was corrupted. He could read all the emails from the web and could send and receive emails without attachments, but he couldn't receive emails with attachments. What I did was the following:

    1. Make a backup of the mbox file.
    2. Remove the original mbox file and create an empty new one.
    3. Create a new account called whatever I want, and replace its mbox file with the one I backed up before.
    4. I made a fetchmail of all the emails using pop3 protocol from the new created account to the account with problems.

    This way the new mbox file contains all the emails and is not corrupted. After all this everything worked fine.

    Thanks for your attention and best regards.
     
  6. fobicodam

    fobicodam New Member

    I have the same problem with account on 1 domain. I didnt understand the point 4, you do what?!!?
     
  7. till

    till Super Moderator Staff Member ISPConfig Developer

    He used the linux program "fetchmail" to get the emails from the corrupted mailbox and redirect them to the new empty mailbox.

    by the way, using Maildir instead of Mbox prevents these problems.
     
  8. fobicodam

    fobicodam New Member

    Ill try it, but i dont see how can help..

    I tried to use maildir once but i couldnt retrieve the emails with pop3, does it need a how to or something?
     
  9. till

    till Super Moderator Staff Member ISPConfig Developer

    If you want to use maildir, you will have to do 2 steps:

    1) Install a maildir capable pop3 and IMAP daemon like courier.
    2) Switch to maildir in ISPConfig under management > server > settings on the mail tab.

    But be aware that all emails that have not been fetched by your customers from their mbox files will be inaccessible after the change.
     
  10. fobicodam

    fobicodam New Member

    mmm ok, ill take it as last resource...
     

Share This Page