Simplest, cheapest way to set up SMTP server on Linux? [closed] - linux

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 10 years ago.
Improve this question
In the past I have tried following this guide for setting up a mail server on Ubuntu (going with Postfix, Dovecot, and Squirrelmail) and have been unsuccessful. I seemed to have been doing everything right, but the mail was not going through.
Anyway, it's been a while, and I would like to start over from scratch. What is the simplest, cheapest (preferably free if I already have a domain name + server) way I can set up an SMTP server on Linux?
My end goal is to be able to send simple, short emails to my cell phone (from the command line) as reminders. That's all I really need.

sudo apt-get install mailutils
Then set up a gmail account and use that to send email with it. Works really easily. I've done this for seeing who's logged in to my minecraft server so my son can jump in when his friend goes on line: http://dymitruk.com/blog/2012/07/20/scripting-for-fun/

If you had errors like "relay access denied", then this indicates, that your e-mail provider needs some sort of authentication. That's nothing you can fix by using a different mailer.
You must configure the credentials for your mailer properly. My e-mail provider expects a user/password authentication. For my configuration (exim), this is configured on one line in a file /etc/exim4/passwd.client separated by colons:
mail-relay-host:user-name:password
You might also look over at https://serverfault.com/, https://unix.stackexchange.com/ or https://superuser.com/, see e.g. https://unix.stackexchange.com/q/1449/26493

Related

How to create an email account/address in Linux terminal? [closed]

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 9 years ago.
Improve this question
Is it possible to create an email account under Linux* in the terminal? I've been looking to see if it is possible to generate email account dynamically for user registration purposes with my website.
I've found lots of valuable resources on stack overflow and elsewhere regarding sending and receiving email, but none in regard to actually creating an account.
To answer your question, it is possible to create an email account/address via the command line on a Linux/Unix system.
The first step is to create a user account on that system for the user in question. There are different ways to do this. I found this guide, The Ultimate Guide to Create Users in Linux/Unix, to be one of the better overviews.
The next step requires understanding that email on Linux systems is often handled by two different systems/commands.
First is sending email. This is done quite often via sendmail. If a user can execute sendmail, then they can send mail via smtp to the world. This overly simplifies things, but it provides enough to get you started.
Receiving mail on the system and its delivery to users depends on the mail system and protocols being used. If you are using postfix, then the following article shows how to setup an email account.
My answer assumes you are not using LDAP or another directory service to maintain users.
This question probably belongs over in serverfault. I couldn't find an exact match to it over there, so I answered it here and flagged it to be moved.

Cannot send chat invites anymore from Openfire user to GMAIL account [closed]

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 9 years ago.
Improve this question
I have an Openfire server with some custom users that act as bots and send chat invites to GMAIL accounts.
After 6 month of working perfectly well, suddenly, since yesterday, my users cant send anymore chat invites to GMAIL, since today. They just don't receive invites anymore. I didn't change anything nor install the new Openfire version. Just happened.
If I do it the opposite way, from a Gmail account I invite a Openfire user, it still doesn't work, but I check the server and there are subscription sent as "none". I have to change to subscription type to "both" and then it works. But I need it to be from my Openfire TO Gmail accounts.
Everything works good if the GMAIL account is a Google Hosted Domain with DNS configured correctly. Also, any other XMPP server like JABBER works fine also.
It seems that something suddenly changed on Gmail side. I'm quiet lost, I don't know what to check, what to change to make it work again. My Live Chat service relies on this and I had to stop accepting new users...
Any help will be appreciated.
Thanks,
Here is possible explanation to this problem http://mail.jabber.org/pipermail/operators/2013-March/001610.html.
GoogleTalk now has whitelist of servers to connect with to avoid invite spam.

Can we Install a plugin or software from browser? [closed]

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 9 years ago.
Improve this question
We are developing a website which is required some software to install for first time like flash player for youtube...
but the question is without asking the user can we install it?
i found this some where but link ., but i dont want to ask the permission from user/OS. By calling the website only software should install if it is not installed on the perticular machine....
Is it possible?
This is not a good question, i know but we want to develop an inhouse website, the website will not go to live for remote users. if any security settings we need to change in our systems we are ready to do.......
No. It's not possible. Browsers are meant to run in sandboxes to prevent remote execution of arbitrary code. So you will need to ask the user for permissions.
If you are on java world you can use JavaWebStart. Otherwise, you could run a FLASH SCRIPT to provide the extra functionality you need for your WebSite. But since you didn't provide extra information on your issue, it's difficult to give you proper recommendations.
Do you mean installing it as in launching the install without the user having to click a "INSTALL" button or do you mean install the software without the user noticing you've done anything at all.
The second is not possible for security reasons.

how do I get past an smtp limit? [closed]

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 11 years ago.
Improve this question
We have a website hosted on a shared hosting plan. It works for now but we are running over our limit for smtp emails. Our host charges us for anything over 250 emails sent. We send out daily alerts, password reminders, etc to our users (on an opt-in basis w/ the ability for them to easily opt-out).
Can we use our localhost server for email but still host the site on the remotehost? If not, are there any other (free) options?
Can you already send mail from your local server? If so, have the code in your web site pack up the information that needs to be sent that day into one email. You'll have to figure out the format to use so that you can separate them on the other end. Send it to a mailbox on your local host that is monitored by a process that unpacks the email, splits it up into separate emails, and sends those out directly. If your web host has a size limit on emails, you'll need to figure out how to break your daily output into chunks to avoid going over the size limit as well.
Or, pay a little extra to be able to send out more emails per month from your web host, which would be less complex, less prone to errors, and easier to implement.

In UNIX, how do I send a message to another UNIX box on the same network by IP address? [closed]

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 12 years ago.
Improve this question
Just like a "net send" on Windows, if I remember what net send does correctly. I just want to say something like:
<command> <IP address> "Hey what's up?"
and the message "Hey what's up?" should show up on the other guy's machine. Ideally this shouldn't require installation of any packages not already present in typical UNIX/Linux distributions.
Any ideas?
Thanks!
Look up "talk," "ntalk" and "ytalk." Those are the closest. Fortunately, most Unix machines have no such daemon running by default, and even Windows had the sensibility to disable this service by default after they realized how annoying it is.
smbclient -M destination-host -U my-host -n my-host
more info here: http://www.yolinux.com/TUTORIALS/unix_for_dos_users.html
hope it helps
also, try the "talk" command. (talkd is worth looking into too)
given your strict requirements (default install etc) this comes closest:
DISPLAY=otherip:0.0 xterm -e "/bin/echo \"Hey what's up?\"; /bin/sleep 9999"
Unix was multiuser from the start, so you'd have to specify which user on the target machine you want to message. Then the command would once have been rwrite, but it's all but disappeared. talk (or ytalk, ntalk, etalk) would let the other person reply, but these days instant messaging goes via a centrally managed identity (AIM, Jabber, Skype, etc.) rather than on a machine-to-machine basis.

Resources