Quantcast
Channel: Debian User Forums
Viewing all articles
Browse latest Browse all 2849

System and Network configuration • Re: Configuring service e-mail from unattended appliance

$
0
0
Not enough information. For a start, are we talking about running a full mail stack on your own domain, or just fowarding to somebody else's SMTP server?

Exim will only handle local delivery by default, so if your mail seems to be disappearing and there are no errors in the relevant logs it might just be landing in the local mail spool, probably root's if you haven't set up an appropriate alias.

IMO, if all you need is basic sendmail functionality to punt mail from cron jobs and the like to an external SMTP server, exim is serious overkill anyway.
Various minimal MTAs exist specifically for this purpose, such as nullmailer, msmtp, or dma.

Any of the above can provide sendmail emulation and fowarding to an external smarthost (e.g. gmail or other free mail service). Personally I use dma, largely because it's very simple to set up, the configuration files are self-documenting, and it doesn't run as a daemon or listen on any ports. i.e. minimum required functionality for the task.
The Arch wiki has easy dma examples, as usual.

Note that if you want to send automated outgoing mail via google's SMTP servers, you'll need to jump through their ridiculous "security" hoops. Off the top of my head that means enabling 2fa, allowing "less secure apps", and creating an "app password" for the MTA to use. IIRC gmail has started rejecting connections using primary authentication methods unless they come from google products... Because "Muh securitee" of course. :roll:
Note that using gmail this way is quite likely to be against some TOS or other nobody bothers to read and may break without warning. Then again, gmail being a pain in the arse is pretty normal, and there's plenty of info on how to make it work on the 'net.

Statistics: Posted by steve_v — 2024-05-31 05:26



Viewing all articles
Browse latest Browse all 2849

Trending Articles