Manually Install SSMTP On Drobo 5N NAS Without APT-GET Package
The goal is to achieve an outbound email notification when a cron job is run on my Drobo 5N NAS device. But, there does not appear to be any package installed such as mail, sendmail or ssmtp that would allow for outbound email.
I would prefer to send email using a Gmail account and it appears that SSMTP would be a good fit for that. However, neither apt-get, yum or pacman work from the shell and return "not found". I would install the package manually, but I am not even sure what version of Linux this box is running (e.g. Debian Squeeze, Arch, etc.).
When I issue the command:
$cat /proc/version
What is returned is:
Linux version 3.2.58-2 (root@buildtestserver3) (gcc version 4.4.5 20100614
(prerelease) (FSF GNU GCC branch-4.4.5. Marvell GCC 201106-257.a1ba7f96) )
#1 SMP Thu May 26 14:04:32 PDT 2016
And, the command:
$uname -mrs
returns:
Linux 3.2.58-2 armv7l
So,
- Is it possible to install the SSMTP package on this box? And,
- What's the appropriate SSMTP package to manually download? And lastly,
- How do I manually install it?
Thanks in advance for your contribution.
linux debian shell nas drobo
add a comment |
The goal is to achieve an outbound email notification when a cron job is run on my Drobo 5N NAS device. But, there does not appear to be any package installed such as mail, sendmail or ssmtp that would allow for outbound email.
I would prefer to send email using a Gmail account and it appears that SSMTP would be a good fit for that. However, neither apt-get, yum or pacman work from the shell and return "not found". I would install the package manually, but I am not even sure what version of Linux this box is running (e.g. Debian Squeeze, Arch, etc.).
When I issue the command:
$cat /proc/version
What is returned is:
Linux version 3.2.58-2 (root@buildtestserver3) (gcc version 4.4.5 20100614
(prerelease) (FSF GNU GCC branch-4.4.5. Marvell GCC 201106-257.a1ba7f96) )
#1 SMP Thu May 26 14:04:32 PDT 2016
And, the command:
$uname -mrs
returns:
Linux 3.2.58-2 armv7l
So,
- Is it possible to install the SSMTP package on this box? And,
- What's the appropriate SSMTP package to manually download? And lastly,
- How do I manually install it?
Thanks in advance for your contribution.
linux debian shell nas drobo
"but I am not even sure what version of Linux this box is running (e.g. Debian Squeeze, Arch, etc.)." - It's none of the above, it appears to be a custom built version of the 3.2 kernel for ARMv71. Which is to be expected since it's a Drobo
– Ramhound
Jun 30 '17 at 18:49
Hi @Ramhound, thank you for your insight. Does it necessarily follow that I must have a SSMTP package compiled specifically for this "custom built version of the 3.2 kernel for ARMv71"? Will a package from another version such as Debian, but is compatible with the ARMv71 architecture not work?
– Brainflurry
Jun 30 '17 at 19:08
add a comment |
The goal is to achieve an outbound email notification when a cron job is run on my Drobo 5N NAS device. But, there does not appear to be any package installed such as mail, sendmail or ssmtp that would allow for outbound email.
I would prefer to send email using a Gmail account and it appears that SSMTP would be a good fit for that. However, neither apt-get, yum or pacman work from the shell and return "not found". I would install the package manually, but I am not even sure what version of Linux this box is running (e.g. Debian Squeeze, Arch, etc.).
When I issue the command:
$cat /proc/version
What is returned is:
Linux version 3.2.58-2 (root@buildtestserver3) (gcc version 4.4.5 20100614
(prerelease) (FSF GNU GCC branch-4.4.5. Marvell GCC 201106-257.a1ba7f96) )
#1 SMP Thu May 26 14:04:32 PDT 2016
And, the command:
$uname -mrs
returns:
Linux 3.2.58-2 armv7l
So,
- Is it possible to install the SSMTP package on this box? And,
- What's the appropriate SSMTP package to manually download? And lastly,
- How do I manually install it?
Thanks in advance for your contribution.
linux debian shell nas drobo
The goal is to achieve an outbound email notification when a cron job is run on my Drobo 5N NAS device. But, there does not appear to be any package installed such as mail, sendmail or ssmtp that would allow for outbound email.
I would prefer to send email using a Gmail account and it appears that SSMTP would be a good fit for that. However, neither apt-get, yum or pacman work from the shell and return "not found". I would install the package manually, but I am not even sure what version of Linux this box is running (e.g. Debian Squeeze, Arch, etc.).
When I issue the command:
$cat /proc/version
What is returned is:
Linux version 3.2.58-2 (root@buildtestserver3) (gcc version 4.4.5 20100614
(prerelease) (FSF GNU GCC branch-4.4.5. Marvell GCC 201106-257.a1ba7f96) )
#1 SMP Thu May 26 14:04:32 PDT 2016
And, the command:
$uname -mrs
returns:
Linux 3.2.58-2 armv7l
So,
- Is it possible to install the SSMTP package on this box? And,
- What's the appropriate SSMTP package to manually download? And lastly,
- How do I manually install it?
Thanks in advance for your contribution.
linux debian shell nas drobo
linux debian shell nas drobo
asked Jun 30 '17 at 18:47
Brainflurry
1
1
"but I am not even sure what version of Linux this box is running (e.g. Debian Squeeze, Arch, etc.)." - It's none of the above, it appears to be a custom built version of the 3.2 kernel for ARMv71. Which is to be expected since it's a Drobo
– Ramhound
Jun 30 '17 at 18:49
Hi @Ramhound, thank you for your insight. Does it necessarily follow that I must have a SSMTP package compiled specifically for this "custom built version of the 3.2 kernel for ARMv71"? Will a package from another version such as Debian, but is compatible with the ARMv71 architecture not work?
– Brainflurry
Jun 30 '17 at 19:08
add a comment |
"but I am not even sure what version of Linux this box is running (e.g. Debian Squeeze, Arch, etc.)." - It's none of the above, it appears to be a custom built version of the 3.2 kernel for ARMv71. Which is to be expected since it's a Drobo
– Ramhound
Jun 30 '17 at 18:49
Hi @Ramhound, thank you for your insight. Does it necessarily follow that I must have a SSMTP package compiled specifically for this "custom built version of the 3.2 kernel for ARMv71"? Will a package from another version such as Debian, but is compatible with the ARMv71 architecture not work?
– Brainflurry
Jun 30 '17 at 19:08
"but I am not even sure what version of Linux this box is running (e.g. Debian Squeeze, Arch, etc.)." - It's none of the above, it appears to be a custom built version of the 3.2 kernel for ARMv71. Which is to be expected since it's a Drobo
– Ramhound
Jun 30 '17 at 18:49
"but I am not even sure what version of Linux this box is running (e.g. Debian Squeeze, Arch, etc.)." - It's none of the above, it appears to be a custom built version of the 3.2 kernel for ARMv71. Which is to be expected since it's a Drobo
– Ramhound
Jun 30 '17 at 18:49
Hi @Ramhound, thank you for your insight. Does it necessarily follow that I must have a SSMTP package compiled specifically for this "custom built version of the 3.2 kernel for ARMv71"? Will a package from another version such as Debian, but is compatible with the ARMv71 architecture not work?
– Brainflurry
Jun 30 '17 at 19:08
Hi @Ramhound, thank you for your insight. Does it necessarily follow that I must have a SSMTP package compiled specifically for this "custom built version of the 3.2 kernel for ARMv71"? Will a package from another version such as Debian, but is compatible with the ARMv71 architecture not work?
– Brainflurry
Jun 30 '17 at 19:08
add a comment |
2 Answers
2
active
oldest
votes
1) In principle, yes.
The Drobo is not a Debian system, so you can't use Debian packages. Not even ARM ones, because they will be compiled for different libraries.
Which means you either have to cross-compile, or find someone else who already cross-compiled it. Google turns up the Droboports site.
2) Looking at their app repository, there doesn't seem to be a ready-made MTA application.
Which means you pick whatever you think is simplest, first try to compile it yourself under Debian on your PC to get an idea how it works, and then your cross-compile using the tools provided.
3) Look around on the Drobo site, follow links like this, and see if you can get into contact with the Drobo community if you are stuck and can't figure out how to use the cross-compile tools.
4) Note that in principle you can also contact an MTA on a computer in your local network via cron on your Drobo. SMTP isn't that difficult to do. Though that's of course not as reliable as running an MTA directly on the Drobo.
Thank you @dirkt. This points me in the right direction.
– Brainflurry
Jul 1 '17 at 14:50
add a comment |
I was able to get outbound email working on the Drobo5n and it was a lot simpler than I thought it would be.
- From the Drobo Dashboard, install the Modoboa Mailserver app. This app installs Postfix as a dependency.
Edit the file DroboApps/apache/conf/php.ini to add these 3 lines under the
[PHP]
section:
sendmail_path="/mnt/DroboFS/Shares/DroboApps/mailserver/sbin/sendmail -t -i"
mail.add_x_header = On
mail.log = /mnt/DroboFS/Shares/DroboApps/apache/logs/mail.log
Back in the Drobo Dashboard, stop and restart Apache. You're now good to go.
I created a simple php web page to test it.
<?php
$to = "recipient@somewhere.com";
$subj = "this is the subject";
$message = "This is a test email";
$headers = "From: sender@nowhere.net";
mail($to, $subj, $message, $headers);
?>
And within seconds, I received the email.
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%2f1224542%2fmanually-install-ssmtp-on-drobo-5n-nas-without-apt-get-package%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
1) In principle, yes.
The Drobo is not a Debian system, so you can't use Debian packages. Not even ARM ones, because they will be compiled for different libraries.
Which means you either have to cross-compile, or find someone else who already cross-compiled it. Google turns up the Droboports site.
2) Looking at their app repository, there doesn't seem to be a ready-made MTA application.
Which means you pick whatever you think is simplest, first try to compile it yourself under Debian on your PC to get an idea how it works, and then your cross-compile using the tools provided.
3) Look around on the Drobo site, follow links like this, and see if you can get into contact with the Drobo community if you are stuck and can't figure out how to use the cross-compile tools.
4) Note that in principle you can also contact an MTA on a computer in your local network via cron on your Drobo. SMTP isn't that difficult to do. Though that's of course not as reliable as running an MTA directly on the Drobo.
Thank you @dirkt. This points me in the right direction.
– Brainflurry
Jul 1 '17 at 14:50
add a comment |
1) In principle, yes.
The Drobo is not a Debian system, so you can't use Debian packages. Not even ARM ones, because they will be compiled for different libraries.
Which means you either have to cross-compile, or find someone else who already cross-compiled it. Google turns up the Droboports site.
2) Looking at their app repository, there doesn't seem to be a ready-made MTA application.
Which means you pick whatever you think is simplest, first try to compile it yourself under Debian on your PC to get an idea how it works, and then your cross-compile using the tools provided.
3) Look around on the Drobo site, follow links like this, and see if you can get into contact with the Drobo community if you are stuck and can't figure out how to use the cross-compile tools.
4) Note that in principle you can also contact an MTA on a computer in your local network via cron on your Drobo. SMTP isn't that difficult to do. Though that's of course not as reliable as running an MTA directly on the Drobo.
Thank you @dirkt. This points me in the right direction.
– Brainflurry
Jul 1 '17 at 14:50
add a comment |
1) In principle, yes.
The Drobo is not a Debian system, so you can't use Debian packages. Not even ARM ones, because they will be compiled for different libraries.
Which means you either have to cross-compile, or find someone else who already cross-compiled it. Google turns up the Droboports site.
2) Looking at their app repository, there doesn't seem to be a ready-made MTA application.
Which means you pick whatever you think is simplest, first try to compile it yourself under Debian on your PC to get an idea how it works, and then your cross-compile using the tools provided.
3) Look around on the Drobo site, follow links like this, and see if you can get into contact with the Drobo community if you are stuck and can't figure out how to use the cross-compile tools.
4) Note that in principle you can also contact an MTA on a computer in your local network via cron on your Drobo. SMTP isn't that difficult to do. Though that's of course not as reliable as running an MTA directly on the Drobo.
1) In principle, yes.
The Drobo is not a Debian system, so you can't use Debian packages. Not even ARM ones, because they will be compiled for different libraries.
Which means you either have to cross-compile, or find someone else who already cross-compiled it. Google turns up the Droboports site.
2) Looking at their app repository, there doesn't seem to be a ready-made MTA application.
Which means you pick whatever you think is simplest, first try to compile it yourself under Debian on your PC to get an idea how it works, and then your cross-compile using the tools provided.
3) Look around on the Drobo site, follow links like this, and see if you can get into contact with the Drobo community if you are stuck and can't figure out how to use the cross-compile tools.
4) Note that in principle you can also contact an MTA on a computer in your local network via cron on your Drobo. SMTP isn't that difficult to do. Though that's of course not as reliable as running an MTA directly on the Drobo.
answered Jul 1 '17 at 7:46
dirkt
9,05231121
9,05231121
Thank you @dirkt. This points me in the right direction.
– Brainflurry
Jul 1 '17 at 14:50
add a comment |
Thank you @dirkt. This points me in the right direction.
– Brainflurry
Jul 1 '17 at 14:50
Thank you @dirkt. This points me in the right direction.
– Brainflurry
Jul 1 '17 at 14:50
Thank you @dirkt. This points me in the right direction.
– Brainflurry
Jul 1 '17 at 14:50
add a comment |
I was able to get outbound email working on the Drobo5n and it was a lot simpler than I thought it would be.
- From the Drobo Dashboard, install the Modoboa Mailserver app. This app installs Postfix as a dependency.
Edit the file DroboApps/apache/conf/php.ini to add these 3 lines under the
[PHP]
section:
sendmail_path="/mnt/DroboFS/Shares/DroboApps/mailserver/sbin/sendmail -t -i"
mail.add_x_header = On
mail.log = /mnt/DroboFS/Shares/DroboApps/apache/logs/mail.log
Back in the Drobo Dashboard, stop and restart Apache. You're now good to go.
I created a simple php web page to test it.
<?php
$to = "recipient@somewhere.com";
$subj = "this is the subject";
$message = "This is a test email";
$headers = "From: sender@nowhere.net";
mail($to, $subj, $message, $headers);
?>
And within seconds, I received the email.
add a comment |
I was able to get outbound email working on the Drobo5n and it was a lot simpler than I thought it would be.
- From the Drobo Dashboard, install the Modoboa Mailserver app. This app installs Postfix as a dependency.
Edit the file DroboApps/apache/conf/php.ini to add these 3 lines under the
[PHP]
section:
sendmail_path="/mnt/DroboFS/Shares/DroboApps/mailserver/sbin/sendmail -t -i"
mail.add_x_header = On
mail.log = /mnt/DroboFS/Shares/DroboApps/apache/logs/mail.log
Back in the Drobo Dashboard, stop and restart Apache. You're now good to go.
I created a simple php web page to test it.
<?php
$to = "recipient@somewhere.com";
$subj = "this is the subject";
$message = "This is a test email";
$headers = "From: sender@nowhere.net";
mail($to, $subj, $message, $headers);
?>
And within seconds, I received the email.
add a comment |
I was able to get outbound email working on the Drobo5n and it was a lot simpler than I thought it would be.
- From the Drobo Dashboard, install the Modoboa Mailserver app. This app installs Postfix as a dependency.
Edit the file DroboApps/apache/conf/php.ini to add these 3 lines under the
[PHP]
section:
sendmail_path="/mnt/DroboFS/Shares/DroboApps/mailserver/sbin/sendmail -t -i"
mail.add_x_header = On
mail.log = /mnt/DroboFS/Shares/DroboApps/apache/logs/mail.log
Back in the Drobo Dashboard, stop and restart Apache. You're now good to go.
I created a simple php web page to test it.
<?php
$to = "recipient@somewhere.com";
$subj = "this is the subject";
$message = "This is a test email";
$headers = "From: sender@nowhere.net";
mail($to, $subj, $message, $headers);
?>
And within seconds, I received the email.
I was able to get outbound email working on the Drobo5n and it was a lot simpler than I thought it would be.
- From the Drobo Dashboard, install the Modoboa Mailserver app. This app installs Postfix as a dependency.
Edit the file DroboApps/apache/conf/php.ini to add these 3 lines under the
[PHP]
section:
sendmail_path="/mnt/DroboFS/Shares/DroboApps/mailserver/sbin/sendmail -t -i"
mail.add_x_header = On
mail.log = /mnt/DroboFS/Shares/DroboApps/apache/logs/mail.log
Back in the Drobo Dashboard, stop and restart Apache. You're now good to go.
I created a simple php web page to test it.
<?php
$to = "recipient@somewhere.com";
$subj = "this is the subject";
$message = "This is a test email";
$headers = "From: sender@nowhere.net";
mail($to, $subj, $message, $headers);
?>
And within seconds, I received the email.
edited Dec 8 '18 at 17:10
Nisse Engström
22737
22737
answered Nov 11 '18 at 6:11
tolsen64
186
186
add a comment |
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.
Some of your past answers have not been well-received, and you're in danger of being blocked from answering.
Please pay close attention to the following guidance:
- 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%2f1224542%2fmanually-install-ssmtp-on-drobo-5n-nas-without-apt-get-package%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
"but I am not even sure what version of Linux this box is running (e.g. Debian Squeeze, Arch, etc.)." - It's none of the above, it appears to be a custom built version of the 3.2 kernel for ARMv71. Which is to be expected since it's a Drobo
– Ramhound
Jun 30 '17 at 18:49
Hi @Ramhound, thank you for your insight. Does it necessarily follow that I must have a SSMTP package compiled specifically for this "custom built version of the 3.2 kernel for ARMv71"? Will a package from another version such as Debian, but is compatible with the ARMv71 architecture not work?
– Brainflurry
Jun 30 '17 at 19:08