You are not logged in.

#1 2024-08-17 00:43:59

aetherh4cker
Member
Registered: 2015-05-12
Posts: 11

How to enable basic emailing?

I want to be able to have simple scripts email my gmail.

An example would be a script running out of cron every hour to warn me if space is getting full.

Looking at the postfix wiki, it has an example for local only mail.  But quickly gets more complicated for anything external and starts talking about virtual mailboxes and stuff.

I don't need to receive incoming mail.

Searching on google, it seems the common answer is to use something like a gmail address with an api key to sent the emails.

Is that really the best answer?

I feel like there should be an easy way to just sent an email to my gmail, but not have any fancy configuration for other stuff.

Offline

#2 2024-08-17 07:18:26

cryptearth
Member
Registered: 2024-02-03
Posts: 2,167

Re: How to enable basic emailing?

well - for e-mail you always need to differ between the sender and the receiver: do you want to use a gmail account to send mails from to other receivers - or do you want to receive mails from others to your gmail account? for the latter you need a proper set up domain and mail server as google recently increased thier security policies for receiving mails
you can't just send an e-mail from you computer to google - as this how mail spam is done and often blocked by many isp
so unless you have your own domain and proper mail server to send mails from you need to use existing services - actually sending the is like using any other mail client: you need the credentials to establish a connection to the mail server and then just send a text mail

Offline

#3 2024-08-17 07:33:35

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 75,828

Re: How to enable basic emailing?

You can script mutt, but assuming you're using some GUI mail client or your browser, have a look at https://wiki.archlinux.org/title/Msmtp

Offline

Board footer

Powered by FluxBB