Miscellaneous ⇒ Server Chat ⇒ Need help with sever mail ⇒ Community Forums ⇒ CPG Dragonfly™ CMS
Forum IndexServer Chat

Need help with sever mail Reply to topic


I'm having a problem since changing to a new server.

Certain emails are sending fine such as DF Registration emails, DF lost password emails.

But others such as ContactPro, Zen Cart arent sending.

I'm runing Centos 5.

Am I right in thinking that DF Registration emails will use PHP mailer? I'm not sure where to start looking to sort this........

Any help would be appreciated.

Mike

Forwards Ever, Backwards Never!

Server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS):
Linux-CentOS 5. Apache 2.2.3. SQL 5.0.87. PHP 5.2.11. DF9.2.1


im sure Df core uses public_html\includes\classes\phpmailer.php


I have no idea what ContactPro or zencart uses

Server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS):
Multiple Setups


If I use the standard "Contact Us" module, it says the email sent fine, but I never receive it.

Looking in the phpmailer.php file it seems there are 3 methods used:

Mail
Sendmail
SMTP

How do I know which method the core DF is using?
I've turned SMTP off in the DF settings so I presume its using either Mail or Sendmail.

I think core is using one, which works.
And other modules are trying to use the other, which doesnt work.



I notice in PHPMAILER there is the following:

/** * Sets the path of the sendmail program. * @var string */ var $Sendmail = '/usr/sbin/sendmail';

and also

/** * Sets Mailer to send message using the qmail MTA. * @return void */ function IsQmail() { $this->Sendmail = '/var/qmail/bin/sendmail'; $this->Mailer = 'sendmail'; }

So how do I know which version of sendmail will be used?

Mike

Forwards Ever, Backwards Never!

Server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS):
Linux-CentOS 5. Apache 2.2.3. SQL 5.0.87. PHP 5.2.11. DF9.2.1


it might help if you server was not black listed for spam Smile

saxosportsclub.com (87.106.102.148) Blacklisted by 3 servers
Spambag.org Received 1 reason http://www.spambag.org/usage.html
209.85.51.180 Undefined return code of 209.85.51.180 v=spf1 -all



I did not run your server through all the spam black lists. Just started the search to see if you were listed at all.
There could be other problems to But i would start with getting removed from spam lists.

Server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS):
Multiple Setups


This is true, although I'm not sure why it would have been blacklisted so soon.

We dont send out any Spam obviously.

I dont think that is the reason why the emails aren't working though!

Forwards Ever, Backwards Never!

Server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS):
Linux-CentOS 5. Apache 2.2.3. SQL 5.0.87. PHP 5.2.11. DF9.2.1


If you are on shared hosting. It may not have been your site but someone elses who has there sites hosted on same server. The server is banned by ip not sites by domain. so everyone who has a hosting account on that box is affected.

I had the same problem with 3 different shared hosts. Now i host on my own server that sits behind me.

All your ports are open for email.

try sending an email from one account to another on the same domain. if it works your mail server is working. Make sure your host has rdns setup properly. If its not set some isp will block email as spam.

Server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS):
Multiple Setups


php mail, sendmail and SMTP are basically the same things. They all store an e-mail in the mailqueue but, the approach is different.

PHP mail() uses smtp or sendmail depending on the php.ini configuration.

To see if an e-mail is send just check the mail queue.

[root@server]# mailq /var/spool/mqueue is empty Total requests: 0

Server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS):
Fedora 25 / Apache 2.4.27 / MariaDB 10.1.26 / PHP 7.1.10 / Mercurial


DJ, I've got 280 requests in my mail queue!

So this means they are queuing there but not sending?

Forwards Ever, Backwards Never!

Server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS):
Linux-CentOS 5. Apache 2.2.3. SQL 5.0.87. PHP 5.2.11. DF9.2.1


Check the log files of your mail server

Server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS):
Fedora 25 / Apache 2.4.27 / MariaDB 10.1.26 / PHP 7.1.10 / Mercurial

All times are UTC


Jump to: