Skip to content

Instantly share code, notes, and snippets.

@stefanpejcic
Created April 14, 2025 13:16
Show Gist options
  • Save stefanpejcic/b6dd750c5c47316443dac10150ae1462 to your computer and use it in GitHub Desktop.
Save stefanpejcic/b6dd750c5c47316443dac10150ae1462 to your computer and use it in GitHub Desktop.
openpanel /etc/msmtp specific email address
account openpanel
host 1IP_HERE
port 465
from [email protected]
user [email protected]
password XXXXXXXXXXXXXXXXXXXX
auth login
tls off
tls_starttls off
tls_trust_file /etc/ssl/certs/ca-certificates.crt
logfile /var/log/msmtp.log
account default : openpanel
@stefanpejcic
Copy link
Author

allow in openmail:

  • edit postfix file for all users: docker exec -it openadmin_mailserver nano /etc/postfix/main.cf
  • in line mynetworks = append public IPv4
  • restart mailserver: docker restart openadmin_mailserver

testing:

echo -e "Subject: msmtp example message\n\nSome bdy here" | msmtp -f [email protected]  [email protected]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment