View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0019511 | mantisbt | public | 2015-03-17 11:11 | 2015-04-13 15:03 | |
Reporter | fgmind | Assigned To | atrol | ||
Priority | normal | Severity | minor | Reproducibility | always |
Status | closed | Resolution | no change required | ||
Platform | Linux | OS | Debian | OS Version | 7.8 |
Product Version | 1.2.19 | ||||
Summary | 0019511: your envelope sender is in my badmailfrom list | ||||
Description | Hello First i had "SMTP Error: Could not connect to SMTP host.", then i made some changes and it became: SMTP server error: sorry, your envelope sender is in my badmailfrom list (0000005.7.1)" My mail server is on OVH, and there is no blacklist. | ||||
Steps To Reproduce | $g_phpMailer_method = PHPMAILER_METHOD_SMTP; Tried with connection_mode SSL or TLS, ports 465 and 587, PHPMAILER_METHOD_SMTP, MAIL and SENDMAIL. Test_mail give me "Testing Mail - PROBLEMS SENDING MAIL TO: fgmind@gmail.com. Please check your php/mail server settings." | ||||
Tags | No tags attached. | ||||
Working if a configure it to send from a gmail adress with smtp.gmail.com:587 with TLS. |
|
|
|
The thing is, when i create a .php which send an email (contains this), it works fine. <?php ini_set("include_path",".:/var/www/mantis/library/phpmailer/"); require("class.phpmailer.php"); $mail = new PHPMailer(); $mail->IsSMTP(); Still have the badmailfrom error |
|
Does your test script still work if you add the following lines? $mail->AddCustomHeader('Auto-Submitted:auto-generated'); |
|
Yes, works if i add this (even if i don't really understood what it is for). But i found a solution for this badmailform envelope thing. I guess mantis or ovh needed a valid mail adress to send all "Delivery failure" messages and stuff like that. So i added: $g_return_path_email = 'mantis@noreply.com'; And now it work like a charm. |
|
fgmind, Does your posted script contain your real connection data for ssl0.ovh.net? The difference between your script and MantisBT is, that you did not set return path. In MantisBT we set the return path to setting $g_return_path_email It seems that return path admin@example.com is a reason for ns0.ovh.net to deny sending the e-mail but not for smtp.gmail.com. |
|
Reminder sent to: dregad, vboctor Something that should be documented and/or checked in admin/check.php? |
|
For the moment it's just a test server, when i'll put it online i'll change password from azerty for sure! :) I think it could be usefull to document this point, i had to do some researches before finding out the solution. It's not so obvious when you are not very familiar to email protocols and settings. |
|
I don't mind updating the documentation, but considering that this is specific to the SMTP server's settings, I don't think we can/should do something in admin checks. |
|
We did already in master |
|