What is the maximum size for attachment using unix mailx
Clash Royale CLAN TAG#URR8PPP
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:
- How do I determine what is the maximum file size that can be sent as an attachment?
- How to change that size?
size mailx
add a comment |
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:
- How do I determine what is the maximum file size that can be sent as an attachment?
- How to change that size?
size mailx
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 isMUA
, It's depend on yourMTA
.
– 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
add a comment |
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:
- How do I determine what is the maximum file size that can be sent as an attachment?
- How to change that size?
size mailx
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:
- How do I determine what is the maximum file size that can be sent as an attachment?
- How to change that size?
size mailx
size mailx
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 isMUA
, It's depend on yourMTA
.
– 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
add a comment |
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 isMUA
, It's depend on yourMTA
.
– 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
add a comment |
1 Answer
1
active
oldest
votes
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)
add a comment |
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
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
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)
add a comment |
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)
add a comment |
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)
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)
edited Jan 29 at 11:57
Stéphane Chazelas
306k57577931
306k57577931
answered Jan 29 at 10:00
Varun GargVarun Garg
116
116
add a comment |
add a comment |
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.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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
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 yourMTA
.– 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