postfix-mta

Getting SSL error while sending email, can't connect to Postfix

青春壹個敷衍的年華 提交于 2021-02-08 11:29:17
问题 var nodemailer = require('nodemailer'); var smtpTransport = require('nodemailer-smtp-transport'); var transport = nodemailer.createTransport(smtpTransport({ host: 'mail.mydomain.com', port: 587, secure: true, auth: { user: 'hello', pass: 'thepassword' } })); var mailOptions = { from: 'Tester <test@mydomain.com>', // sender address to: 'someemail@gmail.com', // list of receivers subject: 'Hello', // Subject line text: 'hey', // plaintext body html: 'hey' // html body }; transport.sendMail

How to disable postfix address verification

烂漫一生 提交于 2020-08-09 07:09:52
问题 I'm doing some spam/botnet research and need to accept all email that my mail server receives. I've set postfix up, but I can't seem to figure out how to disable the sender address verification function. During my initial tests (spoofing mail source as test@test.com), I discovered postfix checks with the sender's mail server to verify the user exists (which it doesn't in my test case). As a result, the test message fails. Any ideas? 回答1: Got it... Paste this in /etc/postfix/main.cf smtpd