How to send email from the command line with specified sender on Debian Wheezy with Exim4?How can I send gpg...
Use two 8s and two 3s to make the number 24
Early credit roll before the end of the film
LuaTex and em dashes
Play Zip, Zap, Zop
What are career options for big-picture thinkers with no experience?
Quickly creating a sparse array
What are "industrial chops"?
Why do neural networks need so many training examples to perform?
Comparing two arrays of unequal length
Has any human ever had the choice to leave Earth permanently?
What incentives do banks have to gather up loans into pools (backed by Ginnie Mae)and selling them?
How did Ancient Greek 'πυρ' become English 'fire?'
IGBT transistor with auxiliary emitter
The use of the spellings -zz- vs. -z-
Why are the books in the Game of Thrones citadel library shelved spine inwards?
What is the most fuel efficient way out of the Solar System?
Story about a person invited to join council of intellects
How should I handle players who ignore the session zero agreement?
Cat is tipping over bed-side lamps during the night
Can you tell from a blurry photo if focus was too close or too far?
Is it possible to grant users sftp access without shell access? If yes, how is it implemented?
Can a Pact of the Blade warlock use the correct existing pact magic weapon so it functions as a "Returning" weapon?
A starship is travelling at 0.9c and collides with a small rock. Will it leave a clean hole through, or will more happen?
How to prevent users from executing commands through browser URL
How to send email from the command line with specified sender on Debian Wheezy with Exim4?
How can I send gpg encrypted mail automatically from the linux command line?How to send email with attachment by postfix from command-line?I want to hide my email address when I send an email from a Lotus Notes Group EmailHow do I change the Respond To for Group Email adresses in Notes 6.5Allow exim to send FROM any catch-all addressExim: How to send email (with headers) from command line?Debian/Raspbian - Send Email “back in time”How to send emails with yahoo account while using outlook so that sender name is not just my email addressChosing a mail service on Debian, for a specific useSpams sent from an external email address but email address sender changed to my own email address in my inbox
I have search for ages trying to find out how to do this:
How can I send email from the command line and specify the sender address on a box with Debian 7.8 and Exim4?
This does not work:
mail -s "Subject of the Email" recipent_address@example.com -- -f from_user@example.com
Neither does this:
mail -s "Subject of the Email" -r from_user@example.com recipent_address@example.com
linux email debian exim
bumped to the homepage by Community♦ 9 mins ago
This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
add a comment |
I have search for ages trying to find out how to do this:
How can I send email from the command line and specify the sender address on a box with Debian 7.8 and Exim4?
This does not work:
mail -s "Subject of the Email" recipent_address@example.com -- -f from_user@example.com
Neither does this:
mail -s "Subject of the Email" -r from_user@example.com recipent_address@example.com
linux email debian exim
bumped to the homepage by Community♦ 9 mins ago
This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
Which mail/mailx do you use?update-alternatives --display mailx
– AnFi
Aug 17 '15 at 19:57
update-alternatives --display mailx mailx - auto modus lenke peker for øyeblikket til /usr/bin/bsd-mailx /usr/bin/bsd-mailx - prioritet 50 slave Mail: /usr/bin/bsd-mailx slave Mail.1.gz: /usr/share/man/man1/bsd-mailx.1.gz slave mail: /usr/bin/bsd-mailx slave mail.1.gz: /usr/share/man/man1/bsd-mailx.1.gz slave mailx.1.gz: /usr/share/man/man1/bsd-mailx.1.gz Nåværende «beste» versjon er «/usr/bin/bsd-mailx»
– Jarle Hammen Knudsen
Aug 17 '15 at 20:15
add a comment |
I have search for ages trying to find out how to do this:
How can I send email from the command line and specify the sender address on a box with Debian 7.8 and Exim4?
This does not work:
mail -s "Subject of the Email" recipent_address@example.com -- -f from_user@example.com
Neither does this:
mail -s "Subject of the Email" -r from_user@example.com recipent_address@example.com
linux email debian exim
I have search for ages trying to find out how to do this:
How can I send email from the command line and specify the sender address on a box with Debian 7.8 and Exim4?
This does not work:
mail -s "Subject of the Email" recipent_address@example.com -- -f from_user@example.com
Neither does this:
mail -s "Subject of the Email" -r from_user@example.com recipent_address@example.com
linux email debian exim
linux email debian exim
asked Aug 17 '15 at 19:23
Jarle Hammen KnudsenJarle Hammen Knudsen
66116
66116
bumped to the homepage by Community♦ 9 mins ago
This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
bumped to the homepage by Community♦ 9 mins ago
This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
Which mail/mailx do you use?update-alternatives --display mailx
– AnFi
Aug 17 '15 at 19:57
update-alternatives --display mailx mailx - auto modus lenke peker for øyeblikket til /usr/bin/bsd-mailx /usr/bin/bsd-mailx - prioritet 50 slave Mail: /usr/bin/bsd-mailx slave Mail.1.gz: /usr/share/man/man1/bsd-mailx.1.gz slave mail: /usr/bin/bsd-mailx slave mail.1.gz: /usr/share/man/man1/bsd-mailx.1.gz slave mailx.1.gz: /usr/share/man/man1/bsd-mailx.1.gz Nåværende «beste» versjon er «/usr/bin/bsd-mailx»
– Jarle Hammen Knudsen
Aug 17 '15 at 20:15
add a comment |
Which mail/mailx do you use?update-alternatives --display mailx
– AnFi
Aug 17 '15 at 19:57
update-alternatives --display mailx mailx - auto modus lenke peker for øyeblikket til /usr/bin/bsd-mailx /usr/bin/bsd-mailx - prioritet 50 slave Mail: /usr/bin/bsd-mailx slave Mail.1.gz: /usr/share/man/man1/bsd-mailx.1.gz slave mail: /usr/bin/bsd-mailx slave mail.1.gz: /usr/share/man/man1/bsd-mailx.1.gz slave mailx.1.gz: /usr/share/man/man1/bsd-mailx.1.gz Nåværende «beste» versjon er «/usr/bin/bsd-mailx»
– Jarle Hammen Knudsen
Aug 17 '15 at 20:15
Which mail/mailx do you use?
update-alternatives --display mailx
– AnFi
Aug 17 '15 at 19:57
Which mail/mailx do you use?
update-alternatives --display mailx
– AnFi
Aug 17 '15 at 19:57
update-alternatives --display mailx mailx - auto modus lenke peker for øyeblikket til /usr/bin/bsd-mailx /usr/bin/bsd-mailx - prioritet 50 slave Mail: /usr/bin/bsd-mailx slave Mail.1.gz: /usr/share/man/man1/bsd-mailx.1.gz slave mail: /usr/bin/bsd-mailx slave mail.1.gz: /usr/share/man/man1/bsd-mailx.1.gz slave mailx.1.gz: /usr/share/man/man1/bsd-mailx.1.gz Nåværende «beste» versjon er «/usr/bin/bsd-mailx»
– Jarle Hammen Knudsen
Aug 17 '15 at 20:15
update-alternatives --display mailx mailx - auto modus lenke peker for øyeblikket til /usr/bin/bsd-mailx /usr/bin/bsd-mailx - prioritet 50 slave Mail: /usr/bin/bsd-mailx slave Mail.1.gz: /usr/share/man/man1/bsd-mailx.1.gz slave mail: /usr/bin/bsd-mailx slave mail.1.gz: /usr/share/man/man1/bsd-mailx.1.gz slave mailx.1.gz: /usr/share/man/man1/bsd-mailx.1.gz Nåværende «beste» versjon er «/usr/bin/bsd-mailx»
– Jarle Hammen Knudsen
Aug 17 '15 at 20:15
add a comment |
1 Answer
1
active
oldest
votes
Exim unlike "sendmail by endmail.org" makes -f
option available by default only to selected local users. Exim Doc - Trusted Users
You can change Exim configuration to:
- make the OS user trusted (
trusted_user
) or make selected OS group trusted (trusted_groups
) [but read about other things it allows] - allow all users to use
-f
(untrusted_set_sender
)
According to that link root is both a trusted user and an admin user. I tested the commands as root.
– Jarle Hammen Knudsen
Aug 17 '15 at 20:34
add a comment |
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "3"
};
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: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
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%2fsuperuser.com%2fquestions%2f958681%2fhow-to-send-email-from-the-command-line-with-specified-sender-on-debian-wheezy-w%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
Exim unlike "sendmail by endmail.org" makes -f
option available by default only to selected local users. Exim Doc - Trusted Users
You can change Exim configuration to:
- make the OS user trusted (
trusted_user
) or make selected OS group trusted (trusted_groups
) [but read about other things it allows] - allow all users to use
-f
(untrusted_set_sender
)
According to that link root is both a trusted user and an admin user. I tested the commands as root.
– Jarle Hammen Knudsen
Aug 17 '15 at 20:34
add a comment |
Exim unlike "sendmail by endmail.org" makes -f
option available by default only to selected local users. Exim Doc - Trusted Users
You can change Exim configuration to:
- make the OS user trusted (
trusted_user
) or make selected OS group trusted (trusted_groups
) [but read about other things it allows] - allow all users to use
-f
(untrusted_set_sender
)
According to that link root is both a trusted user and an admin user. I tested the commands as root.
– Jarle Hammen Knudsen
Aug 17 '15 at 20:34
add a comment |
Exim unlike "sendmail by endmail.org" makes -f
option available by default only to selected local users. Exim Doc - Trusted Users
You can change Exim configuration to:
- make the OS user trusted (
trusted_user
) or make selected OS group trusted (trusted_groups
) [but read about other things it allows] - allow all users to use
-f
(untrusted_set_sender
)
Exim unlike "sendmail by endmail.org" makes -f
option available by default only to selected local users. Exim Doc - Trusted Users
You can change Exim configuration to:
- make the OS user trusted (
trusted_user
) or make selected OS group trusted (trusted_groups
) [but read about other things it allows] - allow all users to use
-f
(untrusted_set_sender
)
answered Aug 17 '15 at 20:29
AnFiAnFi
69939
69939
According to that link root is both a trusted user and an admin user. I tested the commands as root.
– Jarle Hammen Knudsen
Aug 17 '15 at 20:34
add a comment |
According to that link root is both a trusted user and an admin user. I tested the commands as root.
– Jarle Hammen Knudsen
Aug 17 '15 at 20:34
According to that link root is both a trusted user and an admin user. I tested the commands as root.
– Jarle Hammen Knudsen
Aug 17 '15 at 20:34
According to that link root is both a trusted user and an admin user. I tested the commands as root.
– Jarle Hammen Knudsen
Aug 17 '15 at 20:34
add a comment |
Thanks for contributing an answer to Super User!
- 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%2fsuperuser.com%2fquestions%2f958681%2fhow-to-send-email-from-the-command-line-with-specified-sender-on-debian-wheezy-w%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
Which mail/mailx do you use?
update-alternatives --display mailx
– AnFi
Aug 17 '15 at 19:57
update-alternatives --display mailx mailx - auto modus lenke peker for øyeblikket til /usr/bin/bsd-mailx /usr/bin/bsd-mailx - prioritet 50 slave Mail: /usr/bin/bsd-mailx slave Mail.1.gz: /usr/share/man/man1/bsd-mailx.1.gz slave mail: /usr/bin/bsd-mailx slave mail.1.gz: /usr/share/man/man1/bsd-mailx.1.gz slave mailx.1.gz: /usr/share/man/man1/bsd-mailx.1.gz Nåværende «beste» versjon er «/usr/bin/bsd-mailx»
– Jarle Hammen Knudsen
Aug 17 '15 at 20:15