nullmailer | Relay-only sendmail/qmail/etc replacement MTA | Email library
kandi X-RAY | nullmailer Summary
kandi X-RAY | nullmailer Summary
nullmailer Simple relay-only mail transport agent Bruce Guenter bruce@untroubled.org Version 2.2 2018-10-12. This is nullmailer, a sendmail/qmail/etc replacement MTA for hosts which relay to a fixed set of smart relays. It is designed to be simple to configure, secure, and easily extendable. A mailing list has been set up to discuss this package. To subscribe, send an email to: nullmailer-subscribe@lists.untroubled.org A mailing list archive is available at: Development versions of nullmailer are available at GitHub: This package is Copyright (C) 2018 Bruce Guenter, and may be copied according to the GNU GENERAL PUBLIC LICENSE (GPL) Version 2 or a later version. A copy of this license is included with this package. This package comes with no warranty of any kind.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of nullmailer
nullmailer Key Features
nullmailer Examples and Code Snippets
Community Discussions
Trending Discussions on nullmailer
QUESTION
I have a Ubuntu server with nullmailer installed on it to relay send emails to an actual SMTP server. Everything is working as intended when I execute the following command at the CLI.
...ANSWER
Answered 2020-Sep-13 at 12:39Since nullmailer is such a simple daemon it doesn't provide a local smtp server so you'll have to use the sendmail transport.
The MAILER_DSN
should be something like sendmail://localhost
or sendmail://your-host-name
.
QUESTION
I have domain.com
on GSuite. Then I have aliasdomain.com
(which is set as an alias domain for that in GSuite.) And I have a GSuite User admin
(which is both admin@domain.com
and admin@aliasdomain.com
just like I want them to be. Emails sent to either are received via gmail's admin@domain.com
account, all good.
Now I have an Ubuntu 18.04 Server from which I would like to send mail as admin@aliasdomain.com
. I have learned that I need to use Google SMTP to accomplish that.
I've also learned that nullmailer is light and since I only wish to send a mail very occasionally, it is perfect, so I'd like to use that preferably, but Postfix or sendmail can also be an option, if that doesn't work.
Unfortunately I have very limited understanding of anything related to mail transfer agents, etc. But I've tried my best to search for a resource or a guide for this particular scenario, but most of them are quite advanced to me, and they assume the reader to be very well-versed.
What I needHow do I set up sending mail using the above scenario? I am hoping someone kind enough to guide me in this regard.
Thank you very much.
...ANSWER
Answered 2020-Feb-10 at 21:02OK, after some trial and error, I finally got it all working. Here's a step-by-step tutorial (sort of) if anyone is interested:
- G SUITE:
- Log in to
admin@domain.com
's gmail and enable Send mail as (refer to its section of Step 3 here, under Send messages from your alias address - Log in to
domain.com
's Google Admin Console > Apps > GSuite > GMail > End user access > Enable Allow per-user outbound gateways
- Log in to
- UBUNTU 18.04 SERVER:
- Install nullmailer
sudo apt-get install nullmailer
(then accept all default values for now, we're changing them below) cd /etc/nullmailer
sudo nano defaultdomain
and replace all text withaliasdomain.com
sudo nano adminaddr
and replace all text withadmin@aliasdomain.com
sudo nano remotes
and replace all text withsmtp.gmail.com smtp --port=465 --auth-login --user=admin@domain.com --pass=YOURPASSWORDFORadmin@domain.comGMAILACCOUNT --ssl
(Read important security note below before doing this step!)sudo systemctl enable nullmailer
sudo systemctl start nullmailer
- Install nullmailer
- NULLMAILER:
- Nullmailer should now be ready
- Test it:
printf "Subject: Nullmailer test\nFrom:admin@aliasdomain.com\nTo:example@hotmail.com\n\nTest from Nullmailer" | sendmail -v example@hotmail.com
- Check example@hotmail.com Inbox for email from admin@aliasdomain.com (you might have to look in Spam folder and mark it as Safe for future.)
Before attempting Step 2.5, You must either enable two-factor authorization for admin@domain.com
and use App Passwords OR enable Less secure apps. It's your decision ultimately.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install nullmailer
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page