Postman 主要是一款接口調試與測試工具,并非專門用于群發郵件的工具,且其并不直接支持在 Debian 系統上通過 Postman 進行郵件群發。不過,我可以為你提供在 Debian 系統上群發郵件的其他方法:
sudo apt-get install exim4
配置 Exim4:
通過 dpkg-reconfigure exim4-config
命令進行配置,選擇使用 SMTP 直接發信。
編輯 /etc/exim4/passwd.client
文件,添加 SMTP 賬號密碼。
編輯 /etc/email-addresses
文件,添加系統郵箱地址。
重新啟動 Exim4 服務:
sudo /etc/init.d/exim4 restart
使用 Exim4 命令行工具發送郵件,例如:
echo "This is a test" | exim4 -t recipient@example.com
sudo apt-get install sendmail
編輯 /etc/mail/sendmail.cf
文件,添加外部郵件服務器的主機名。
sudo /etc/init.d/sendmail restart
使用以下命令測試 sendmail 是否配置正確:
echo "This is a test" | sendmail -v recipient@example.com
請注意,使用這些方法發送郵件時,需要確保遵守相關郵箱服務的使用條款和政策,避免違反規定導致郵件發送失敗或被封禁。如果需要更復雜的郵件群發功能,建議使用專門為此目的設計的工具或服務。