Automated bash script to configure Postfix for any SMTP server (Gmail, Mailtrap, custom) on Linux.
Sets up the relay, authentication, TLS, and sends a test email.
sudo ./mail_server.sh <domain> <local_user> <relay_host:port> <relay_user> <relay_pass>sudo ./mail_server.sh example.com <username> smtp.gmail.com:587 <username>@example.com "app_password_here"- Works with any SMTP server
- Configures SASL authentication automatically
- Sends a test email
- Compatible with Debian and RHEL
Mail_Server_Setup_Automation/
β
ββ README.md # Project documentation
ββ mail_server.sh # Main installation & configuration script
- Linux server administration
- Mail server setup & configuration
- Postfix relay & authentication
- Bash scripting for automation
- Testing SMTP connectivity