How do you change the email attachment default

Discussion in 'Installation/Configuration' started by Rockdrala, Jan 2, 2008.

  1. Rockdrala

    Rockdrala New Member

    Currently after installation im able to send 1, 3mb attachment. How can i increase the attachments allowed to 20 mb
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    Add the line:

    message_size_limit = 20000000

    to the file /etc/postfix/main.cf and restart postfix.
     
  3. Rockdrala

    Rockdrala New Member

    It didnt work. :O
     
  4. falko

    falko Super Moderator ISPConfig Developer

    What's in your main.cf?
    What's the output of
    Code:
    repquota -avug
    ?
     
  5. Rockdrala

    Rockdrala New Member

    ...........................................
    Code:
    [[email protected] ~]# 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      -- 2470948       0       0          90372     0     0
    daemon    --      20       0       0              3     0     0
    lp        --      16       0       0              2     0     0
    nobody    --       4       0       0              1     0     0
    rpm       --   32332       0       0            123     0     0
    smmsp     --       8       0       0              1     0     0
    avahi     --      12       0       0              3     0     0
    rpcuser   --       8       0       0              1     0     0
    apache    --     208       0       0             50     0     0
    ntp       --      12       0       0              2     0     0
    xfs       --       0       0       0              1     0     0
    mysql     --   38644       0       0           2494     0     0
    dovecot   --       8       0       0              1     0     0
    webalizer --      32       0       0              4     0     0
    squid     --      16       0       0              2     0     0
    named     --     108       0       0             20     0     0
    postfix   --     260       0       0             92     0     0
    admispconfig --   71072       0       0           2490     0     0
    web10_bob --   63240       0       0           8367     0     0
    web1_steve --  230452       0       0          22301     0     0
    web4_webmaster --   63408       0       0           7241     0     0
    ispconfigend --      20       0       0              5     0     0
    #501      --    6012       0       0            543     0     0
    #10001    --      36       0       0              6     0     0
    #10003    --       8       0       0              2     0     0
    #10010    --      56       0       0             13     0     0
    
    Statistics:
    Total blocks: 13
    Data blocks: 2
    Entries: 26
    Used average: 13.000000
    
    *** 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      -- 2464024       0       0          90283     0     0
    daemon    --      28       0       0              4     0     0
    sys       --      24       0       0              3     0     0
    tty       --      24       0       0              2     0     0
    disk      --       4       0       0              1     0     0
    lp        --     108       0       0             19     0     0
    mail      --     216       0       0              6     0     0
    man       --     256       0       0             32     0     0
    games     --    6012       0       0            543     0     0
    lock      --      28       0       0              2     0     0
    nobody    --     100       0       0              2     0     0
    rpm       --   32332       0       0            123     0     0
    utmp      --    1636       0       0              4     0     0
    smmsp     --     868       0       0             15     0     0
    avahi     --      12       0       0              3     0     0
    rpcuser   --       8       0       0              1     0     0
    apache    --      40       0       0              6     0     0
    ntp       --      12       0       0              2     0     0
    utempter  --       8       0       0              1     0     0
    slocate   --    2756       0       0              3     0     0
    xfs       --       0       0       0              1     0     0
    mysql     --   38648       0       0           2495     0     0
    dovecot   --      32       0       0              5     0     0
    squid     --     216       0       0              7     0     0
    named     --     204       0       0             34     0     0
    screen    --     356       0       0              2     0     0
    postdrop  --     352       0       0              4     0     0
    postfix   --     208       0       0             79     0     0
    admispconfig --   71068       0       0           2488     0     0
    web1      --  230492       0       0          22308     0     0
    web4      --   63428  102400  103424           7246     0     0
    web10     --   63244       0       0           8369     0     0
    web11     --     176       0       0             42     0     0
    ispconfigend --      20       0       0              5     0     0
    
    Statistics:
    Total blocks: 12
    Data blocks: 2
    Entries: 34
    Used average: 17.000000
    
     
  6. Rockdrala

    Rockdrala New Member

    Main.cf

    ........................................................................................................
    Code:
    
    # Of course you should adjust these settings as appropriate for the
    # capacity of the hardware you are using. The recipient limit setting
    # can be used to take advantage of the single instance message store
    # capability of Cyrus. The concurrency limit can be used to control
    # how many simultaneous LMTP sessions will be permitted to the Cyrus
    # message store.
    #
    # To use the old cyrus deliver program you have to set:
    #mailbox_transport = cyrus
    
    # The fallback_transport specifies the optional transport in master.cf
    # to use for recipients that are not found in the UNIX passwd database.
    # This parameter has precedence over the luser_relay parameter.
    #
    # Specify a string of the form transport:nexthop, where transport is
    # the name of a mail delivery transport defined in master.cf.  The
    # :nexthop part is optional. For more details see the sample transport
    # configuration file.
    #
    # NOTE: if you use this feature for accounts not in the UNIX password
    # file, then you must update the "local_recipient_maps" setting in
    # the main.cf file, otherwise the SMTP server will reject mail for
    # non-UNIX accounts with "User unknown in local recipient table".
    #
    #fallback_transport = lmtp:unix:/var/lib/imap/socket/lmtp
    #fallback_transport =
    
    # The luser_relay parameter specifies an optional destination address
    # for unknown recipients.  By default, mail for unknown@$#mydestination,
    # unknown@[$inet_interfaces] or unknown@[$proxy_interfaces] is returned
    # as undeliverable.
    #
    # The following expansions are done on luser_relay: $user (recipient
    # username), $shell (recipient shell), $home (recipient home directory),
    # $recipient (full recipient address), $extension (recipient address
    # extension), $domain (recipient domain), $local (entire recipient
    # localpart), $recipient_delimiter. Specify ${name?value} or
    # ${name:value} to expand value only when $name does (does not) exist.
    #
    # luser_relay works only for the default Postfix local delivery agent.
    #
    # NOTE: if you use this feature for accounts not in the UNIX password
    # file, then you must specify "local_recipient_maps =" (i.e. empty) in
    # the main.cf file, otherwise the SMTP server will reject mail for
    # non-UNIX accounts with "User unknown in local recipient table".
    #
    #luser_relay = [email protected]
    #luser_relay = [email protected]
    #luser_relay = admin+$local
    
    # JUNK MAIL CONTROLS
    #
    # The controls listed here are only a very small subset. The file
    # SMTPD_ACCESS_README provides an overview.
    
    # The header_checks parameter specifies an optional table with patterns
    # that each logical message header is matched against, including
    # headers that span multiple physical lines.
    #
    # By default, these patterns also apply to MIME headers and to the
    # headers of attached messages. With older Postfix versions, MIME and
    # attached message headers were treated as body text.
    #
    # For details, see "man header_checks".
    #
    #header_checks = regexp:/etc/postfix/header_checks
    
    # FAST ETRN SERVICE
    #
    # Postfix maintains per-destination logfiles with information about
    # deferred mail, so that mail can be flushed quickly with the SMTP
    # "ETRN domain.tld" command, or by executing "sendmail -qRdomain.tld".
    # See the ETRN_README document for a detailed description.
    #
    # The fast_flush_domains parameter controls what destinations are
    # eligible for this service. By default, they are all domains that
    # this server is willing to relay mail to.
    #
    #fast_flush_domains = $relay_domains
    
    # SHOW SOFTWARE VERSION OR NOT
    #
    # The smtpd_banner parameter specifies the text that follows the 220
    # code in the SMTP server's greeting banner. Some people like to see
    # the mail version advertised. By default, Postfix shows no version.
    #
    # You MUST specify $myhostname at the start of the text. That is an
    # RFC requirement. Postfix itself does not care.
    #
    #smtpd_banner = $myhostname ESMTP $mail_name
    #smtpd_banner = $myhostname ESMTP $mail_name ($mail_version)
    
    # PARALLEL DELIVERY TO THE SAME DESTINATION
    #
    # How many parallel deliveries to the same user or domain? With local
    # delivery, it does not make sense to do massively parallel delivery
    # to the same user, because mailbox updates must happen sequentially,
    # and expensive pipelines in .forward files can cause disasters when
    # too many are run at the same time. With SMTP deliveries, 10
    # simultaneous connections to the same domain could be sufficient to
    # raise eyebrows.
    #
    # Each message delivery transport has its XXX_destination_concurrency_limit
    # parameter.  The default is $default_destination_concurrency_limit for
    # most delivery transports. For the local delivery agent the default is 2.
    
    #local_destination_concurrency_limit = 2
    #default_destination_concurrency_limit = 20
    
    # DEBUGGING CONTROL
    #
    # The debug_peer_level parameter specifies the increment in verbose
    # logging level when an SMTP client or server host name or address
    # matches a pattern in the debug_peer_list parameter.
    #
    debug_peer_level = 2
    
    # The debug_peer_list parameter specifies an optional list of domain
    # or network patterns, /file/name patterns or type:name tables. When
    # an SMTP client or server host name or address matches a pattern,
    # increase the verbose logging level by the amount specified in the
    # debug_peer_level parameter.
    #
    #debug_peer_list = 127.0.0.1
    #debug_peer_list = some.domain
    
    # The debugger_command specifies the external command that is executed
    # when a Postfix daemon program is run with the -D option.
    #
    # Use "command .. & sleep 5" so that the debugger can attach before
    # the process marches on. If you use an X-based debugger, be sure to
    # set up your XAUTHORITY environment variable before starting Postfix.
    #
    debugger_command =
             PATH=/bin:/usr/bin:/usr/local/bin:/usr/X11R6/bin
             xxgdb $daemon_directory/$process_name $process_id & sleep 5
    
    # If you can't use X, use this to capture the call stack when a
    # daemon crashes. The result is in a file in the configuration
    # directory, and is named after the process name and the process ID.
    #
    # debugger_command =
    #       PATH=/bin:/usr/bin:/usr/local/bin; export PATH; (echo cont;
    #       echo where) | gdb $daemon_directory/$process_name $process_id 2>&1
    #       >$config_directory/$process_name.$process_id.log & sleep 5
    #
    # Another possibility is to run gdb under a detached screen session.
    # To attach to the screen sesssion, su root and run "screen -r
    # <id_string>" where <id_string> uniquely matches one of the detached
    # sessions (from "screen -list").
    #
    # debugger_command =
    #       PATH=/bin:/usr/bin:/sbin:/usr/sbin; export PATH; screen
    #       -dmS $process_name gdb $daemon_directory/$process_name
    #       $process_id & sleep 1
    
    # INSTALL-TIME CONFIGURATION INFORMATION
    #
    # The following parameters are used when installing a new Postfix version.
    #
    # sendmail_path: The full pathname of the Postfix sendmail command.
    # This is the Sendmail-compatible mail posting interface.
    #
    sendmail_path = /usr/sbin/sendmail.postfix
    
    # newaliases_path: The full pathname of the Postfix newaliases command.
    # This is the Sendmail-compatible command to build alias databases.
    #
    newaliases_path = /usr/bin/newaliases.postfix
    
    # mailq_path: The full pathname of the Postfix mailq command.  This
    # is the Sendmail-compatible mail queue listing command.
    #
    mailq_path = /usr/bin/mailq.postfix
    
    # setgid_group: The group for mail submission and queue management
    # commands.  This must be a group name with a numerical group ID that
    # is not shared with other accounts, not even with the Postfix account.
    #
    setgid_group = postdrop
    
    # html_directory: The location of the Postfix HTML documentation.
    #
    html_directory = no
    
    # manpage_directory: The location of the Postfix on-line manual pages.
    #
    manpage_directory = /usr/share/man
    
    # sample_directory: The location of the Postfix sample configuration files.
    # This parameter is obsolete as of Postfix 2.1.
    #
    sample_directory = /usr/share/doc/postfix-2.3.3/samples
    
    # readme_directory: The location of the Postfix README files.
    #
    readme_directory = /usr/share/doc/postfix-2.3.3/README_FILES
    #smtpd_sasl_type = dovecot
    #smtpd_sasl_path = private/auth
    smtpd_sasl_local_domain =
    smtpd_sasl_auth_enable = yes
    smtpd_sasl_security_options = noanonymous
    broken_sasl_auth_clients = yes
    smtpd_recipient_restrictions = permit_sasl_authenticated,permit_mynetworks,reject_unauth_destination
    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
    tls_random_source = dev:/dev/urandom
    home_mailbox = Maildir/
    mailbox_command =
    message_size_limit = 30000000
    
    virtual_maps = hash:/etc/postfix/virtusertable
    
    mydestination = /etc/postfix/local-host-names
    
     
  7. Rockdrala

    Rockdrala New Member

    web1 has no quota limit. the email im trying to send it from is from web1
     
  8. falko

    falko Super Moderator ISPConfig Developer

    Are you sending from or to web1? If you're sending from web1 and the recipient doesn't accept the mail, then it's an issue on the remote server, not on yours.
     

Share This Page