What is the maximum size for attachment using unix mailx

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP












0















I am using RHEL 6.4. I have a script which runs in bash. The script sends an email using the command:



mailx -a report.txt "Monthly Report" "business@user.com" < messageBody.html


where report.txt is a pipe separated text file. The size of this file is unknown; sometimes this file may contain just 10-15 records, on other days it may have millions of records.



Now my questions are:



  1. How do I determine what is the maximum file size that can be sent as an attachment?

  2. How to change that size?









share|improve this question



















  • 1





    That really depends on your mail delivery system. If it is all internal, then you may be able to send very large files. However, if your mail administrator has limited the size of attachments, which is good practice, then it will be whatever limit has been set. You'd be best off asking your mail administrator what that limit is, if any.

    – Warwick
    Dec 23 '14 at 22:12











  • mailx is MUA, It's depend on your MTA.

    – PersianGulf
    Dec 24 '14 at 0:46











  • Thank you Warwick and Mohsen, i was able to check with our mail administrator and he asked me to run this command: postconf -d | grep message_size which provided me the size on the box.

    – JavaTec
    Dec 24 '14 at 16:00
















0















I am using RHEL 6.4. I have a script which runs in bash. The script sends an email using the command:



mailx -a report.txt "Monthly Report" "business@user.com" < messageBody.html


where report.txt is a pipe separated text file. The size of this file is unknown; sometimes this file may contain just 10-15 records, on other days it may have millions of records.



Now my questions are:



  1. How do I determine what is the maximum file size that can be sent as an attachment?

  2. How to change that size?









share|improve this question



















  • 1





    That really depends on your mail delivery system. If it is all internal, then you may be able to send very large files. However, if your mail administrator has limited the size of attachments, which is good practice, then it will be whatever limit has been set. You'd be best off asking your mail administrator what that limit is, if any.

    – Warwick
    Dec 23 '14 at 22:12











  • mailx is MUA, It's depend on your MTA.

    – PersianGulf
    Dec 24 '14 at 0:46











  • Thank you Warwick and Mohsen, i was able to check with our mail administrator and he asked me to run this command: postconf -d | grep message_size which provided me the size on the box.

    – JavaTec
    Dec 24 '14 at 16:00














0












0








0








I am using RHEL 6.4. I have a script which runs in bash. The script sends an email using the command:



mailx -a report.txt "Monthly Report" "business@user.com" < messageBody.html


where report.txt is a pipe separated text file. The size of this file is unknown; sometimes this file may contain just 10-15 records, on other days it may have millions of records.



Now my questions are:



  1. How do I determine what is the maximum file size that can be sent as an attachment?

  2. How to change that size?









share|improve this question
















I am using RHEL 6.4. I have a script which runs in bash. The script sends an email using the command:



mailx -a report.txt "Monthly Report" "business@user.com" < messageBody.html


where report.txt is a pipe separated text file. The size of this file is unknown; sometimes this file may contain just 10-15 records, on other days it may have millions of records.



Now my questions are:



  1. How do I determine what is the maximum file size that can be sent as an attachment?

  2. How to change that size?






size mailx






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Jan 16 '17 at 22:16









рüффп

77831529




77831529










asked Dec 23 '14 at 20:02









JavaTecJavaTec

272149




272149







  • 1





    That really depends on your mail delivery system. If it is all internal, then you may be able to send very large files. However, if your mail administrator has limited the size of attachments, which is good practice, then it will be whatever limit has been set. You'd be best off asking your mail administrator what that limit is, if any.

    – Warwick
    Dec 23 '14 at 22:12











  • mailx is MUA, It's depend on your MTA.

    – PersianGulf
    Dec 24 '14 at 0:46











  • Thank you Warwick and Mohsen, i was able to check with our mail administrator and he asked me to run this command: postconf -d | grep message_size which provided me the size on the box.

    – JavaTec
    Dec 24 '14 at 16:00













  • 1





    That really depends on your mail delivery system. If it is all internal, then you may be able to send very large files. However, if your mail administrator has limited the size of attachments, which is good practice, then it will be whatever limit has been set. You'd be best off asking your mail administrator what that limit is, if any.

    – Warwick
    Dec 23 '14 at 22:12











  • mailx is MUA, It's depend on your MTA.

    – PersianGulf
    Dec 24 '14 at 0:46











  • Thank you Warwick and Mohsen, i was able to check with our mail administrator and he asked me to run this command: postconf -d | grep message_size which provided me the size on the box.

    – JavaTec
    Dec 24 '14 at 16:00








1




1





That really depends on your mail delivery system. If it is all internal, then you may be able to send very large files. However, if your mail administrator has limited the size of attachments, which is good practice, then it will be whatever limit has been set. You'd be best off asking your mail administrator what that limit is, if any.

– Warwick
Dec 23 '14 at 22:12





That really depends on your mail delivery system. If it is all internal, then you may be able to send very large files. However, if your mail administrator has limited the size of attachments, which is good practice, then it will be whatever limit has been set. You'd be best off asking your mail administrator what that limit is, if any.

– Warwick
Dec 23 '14 at 22:12













mailx is MUA, It's depend on your MTA.

– PersianGulf
Dec 24 '14 at 0:46





mailx is MUA, It's depend on your MTA.

– PersianGulf
Dec 24 '14 at 0:46













Thank you Warwick and Mohsen, i was able to check with our mail administrator and he asked me to run this command: postconf -d | grep message_size which provided me the size on the box.

– JavaTec
Dec 24 '14 at 16:00






Thank you Warwick and Mohsen, i was able to check with our mail administrator and he asked me to run this command: postconf -d | grep message_size which provided me the size on the box.

– JavaTec
Dec 24 '14 at 16:00











1 Answer
1






active

oldest

votes


















0














To check maximum size on systems using postfix as their mail transport agent, we can use the postconf command.



postconf -d | grep message_size


It will show you the size in bytes.
To change the value, Run



postconf -e 'message_size_limit = 20480000'


To make the changes effective, restart Postfix afterwards:



service postfix restart


(or equivalent on your system)






share|improve this answer
























    Your Answer








    StackExchange.ready(function()
    var channelOptions =
    tags: "".split(" "),
    id: "106"
    ;
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function()
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled)
    StackExchange.using("snippets", function()
    createEditor();
    );

    else
    createEditor();

    );

    function createEditor()
    StackExchange.prepareEditor(
    heartbeatType: 'answer',
    autoActivateHeartbeat: false,
    convertImagesToLinks: false,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: null,
    bindNavPrevention: true,
    postfix: "",
    imageUploader:
    brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
    contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
    allowUrls: true
    ,
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    );



    );













    draft saved

    draft discarded


















    StackExchange.ready(
    function ()
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f175671%2fwhat-is-the-maximum-size-for-attachment-using-unix-mailx%23new-answer', 'question_page');

    );

    Post as a guest















    Required, but never shown

























    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    0














    To check maximum size on systems using postfix as their mail transport agent, we can use the postconf command.



    postconf -d | grep message_size


    It will show you the size in bytes.
    To change the value, Run



    postconf -e 'message_size_limit = 20480000'


    To make the changes effective, restart Postfix afterwards:



    service postfix restart


    (or equivalent on your system)






    share|improve this answer





























      0














      To check maximum size on systems using postfix as their mail transport agent, we can use the postconf command.



      postconf -d | grep message_size


      It will show you the size in bytes.
      To change the value, Run



      postconf -e 'message_size_limit = 20480000'


      To make the changes effective, restart Postfix afterwards:



      service postfix restart


      (or equivalent on your system)






      share|improve this answer



























        0












        0








        0







        To check maximum size on systems using postfix as their mail transport agent, we can use the postconf command.



        postconf -d | grep message_size


        It will show you the size in bytes.
        To change the value, Run



        postconf -e 'message_size_limit = 20480000'


        To make the changes effective, restart Postfix afterwards:



        service postfix restart


        (or equivalent on your system)






        share|improve this answer















        To check maximum size on systems using postfix as their mail transport agent, we can use the postconf command.



        postconf -d | grep message_size


        It will show you the size in bytes.
        To change the value, Run



        postconf -e 'message_size_limit = 20480000'


        To make the changes effective, restart Postfix afterwards:



        service postfix restart


        (or equivalent on your system)







        share|improve this answer














        share|improve this answer



        share|improve this answer








        edited Jan 29 at 11:57









        Stéphane Chazelas

        306k57577931




        306k57577931










        answered Jan 29 at 10:00









        Varun GargVarun Garg

        116




        116



























            draft saved

            draft discarded
















































            Thanks for contributing an answer to Unix & Linux Stack Exchange!


            • Please be sure to answer the question. Provide details and share your research!

            But avoid


            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.

            To learn more, see our tips on writing great answers.




            draft saved


            draft discarded














            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f175671%2fwhat-is-the-maximum-size-for-attachment-using-unix-mailx%23new-answer', 'question_page');

            );

            Post as a guest















            Required, but never shown





















































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown

































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown






            Popular posts from this blog

            How to check contact read email or not when send email to Individual?

            Bahrain

            Postfix configuration issue with fips on centos 7; mailgun relay