Postfix installation to send out email from localhost
Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Different programs go by the name mailx. I mean this one. With mailx, all you need is the following line in /etc/nail.rc:
Code:
set smtp=smtp.server.com
Thereafter, any mail submitted via mailx would be delivered through smtp.server.com. To call it from a script, you'd do something like
Code:
mailx -r me@src.com you@dst.com < email.txt
Anyway, so, yes, I'd use mailx, since it's installed by default in Slackware. Not sure about Ubuntu. Mutt is popular and should have similar facilities.
however if i'm correct you're actually suggesting to use an external smtp server.
i have a quite powerful server which will need to send out notification emails to quite a big social network. this is why i would have preferred using a localhost smtp server.
however i'm really not familiar with this, so you would suggest just calling an external SMTP?
In order for the mail to be delivered it'll have to be sumitted to an smtp server. You don't need to be running an smtp server to submit mail, which is what you plan to be doing. What I had in mind is that you'd contact some upstream server, such as the one maintained by your ISP. I'm assuming you want to send mail to people having accounts outside your LAN.
Something to consider is that, unless you have a static IP address, many mail servers will not accept your mail (due to the abundance of spam), and so you'll have to relay your mail through your ISP's servers anyway.
i actually have a static IP server, which will be doing quite an intensive mail sending [notifications on activities, such as 'you have received a new private message', etc].
No. It's always good to run a mail server, even if just to get cron notifications. What you want to do can be done without one, but there are benefits to having one: logs, controlled throuput, etc. You say you don't want people to use your server from the outside. Can you explain what you mean by that? In particular, how do you plan to handle bounced messages?
i have not thought about it yet. i am managing the info@mydomain.com box thorugh a service of my dns registrar. all of these will then be incoming in here.
would you suggest i might actually put up a whole smtp & pop mail servers instead?
One possibility is to make sure your outgoing mail has info@mydomain for the envelope sender. That way, if there are any problems it would be returned there, and you wouldn't need to open port 25. Once you have things configured and running to your liking, you could add an MX record for your domain. Running a mail server is good experience. A pop/imap server would be secondary, if you don't mind reading your mail with using mail.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.