Find the answer to your Linux question:
Results 1 to 10 of 10
I have an issue with my Debian Postfix mail server running Roundcube for webmail. When web clients receive an attachment over 900K in size, they cannot open the email message. ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Sep 2006
    Posts
    21

    Postfix webmail attachments won't open


    I have an issue with my Debian Postfix mail server running Roundcube for webmail. When web clients receive an attachment over 900K in size, they cannot open the email message. They get an "Internet Explorer cannot display the webpage" error if using IE, or just a blank page if using Mozilla Firefox. If they use an IMAP client like Outlook to get their email then there is no problem with the attachments.

    Has anyone seen this before and or know of a fix?

  2. #2
    Linux Enthusiast likwid's Avatar
    Join Date
    Dec 2006
    Location
    MA
    Posts
    649
    Should be a setting in php.ini for this.

  3. #3
    Just Joined!
    Join Date
    Sep 2006
    Posts
    21
    I don't see an php.ini file, but I have /var/www/roundcube/config/db.inc.php and /var/www/roundcube/config/main.inc.php.

    In the db.inc.php there is a line that reads:

    Code:
    // maximum length of a query in bytes
    $rcmail_config['db_max_length'] = 512000;  // 500K
    Is that where the limitation is set?

    Any help would be greatly appreciated.

  4. #4
    Linux Enthusiast likwid's Avatar
    Join Date
    Dec 2006
    Location
    MA
    Posts
    649
    Your php.ini will be in your php directories, you can find it with
    Code:
    locate php.ini
    or
    Code:
    find / -name php.ini
    At least this is where I think this limitation is being set. That specific limitation looks like a sql query length limit.

  5. #5
    Just Joined!
    Join Date
    Sep 2006
    Posts
    21
    Ok I found the file. It is huge and difficult to parse through. Here's two interesting lines I found:

    Code:
    ; Maximum size of POST data that PHP will accept.
    post_max_size = 8M
    Code:
    ; Maximum allowed size for uploaded files.
    upload_max_filesize = 2M
    But both of those values are larger than the attachment size that will work.

    Any ideas? I could email you the entire file if you needed it.

  6. #6
    Linux Enthusiast likwid's Avatar
    Join Date
    Dec 2006
    Location
    MA
    Posts
    649
    Hm maybe it's apache? Take a quick peruse through your httpd.conf for directives that look like they might be causing it.

  7. #7
    Just Joined!
    Join Date
    Sep 2006
    Posts
    21
    httpd.conf was only there for backwards compatibility but I parsed apahe2.conf. I didn't see anything listed there for file restrictions.

  8. #8
    Linux Enthusiast likwid's Avatar
    Join Date
    Dec 2006
    Location
    MA
    Posts
    649
    I would try the roundcube forums.

  9. #9
    Just Joined!
    Join Date
    Sep 2006
    Posts
    21
    I think I found the solution in the roundcube forum:

    http://roundcubeforum.net/forum/index.php?topic=671.0

    I have changed the files he mentions in this post. Is there a way to restart roundcube without having to reboot the server?

    v/r

    - Bob

  10. #10
    Just Joined!
    Join Date
    Sep 2007
    Posts
    1

    helps a lot

    thnx dude, it helps me a lot and I save a time

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •