I'm having a bit of trouble setting up postfix as a null client and have some questions.
I'll be aiming to use SMTP as this is what most web applications use as a way to connect to the email server.
The goal is to use it for email notifications from web applications and monitoring software on the machine.
- Are things like SASL and TLS needed? It sounds like encrypting the connection between my web application and the email server is uesless when they're on the same box.
- Which user should I connect to the SMTP server as? I originally used the user account I use for daily activities, but this screams bad as my login information is in the wild if my web application is ever cracked. I also tried creating a user with /usr/sbin/nologin as it's shell, but this didn't work either (I'd prefer it the user didn't have shell access).
Any other things to think about while doing this?