Getting spam emails and set mails per hour

Get help from other users here.

Moderators: Developer, Contributor

Post Reply
gobi004
Posts: 3
Joined: 18 Dec 2017, 06:36

Getting spam emails and set mails per hour

Post by gobi004 »

am using mantis bug tracker , in this mails are sending via script it is in bigrock.

and they are sending "you are trying to send bulk emails via bug_report.php applying codes for mail scripts for limiting the number of times the script executes."and they have limitation also like they sent below. how to solve .

mail from bigrock team
" I see that the outgoing mail functionality for the account "cmsonlive.com" is suspended due to a lot of emails are originating which is considered as spam by our spam filters.

Please note that email accounts were blocked since we say continuous emails being sent even after exceeding the rate limit of 75 emails from hours from authenticated email accounts. The email service will be blocked for the email account if the rate-limits gets exceeded 3 times in a day at distinct hours.

So, please integrate the SMTP authentication in PHP mail script, that is by adding a host, port, username[emailID], Password [ email password] in the mail script."

help me out in this
rkarmann
Posts: 66
Joined: 24 Nov 2017, 10:00
Location: Lille, France

Re: Getting spam emails and set mails per hour

Post by rkarmann »

Hi,

To enable SMTP you have to override your config_inc.php (if you're using MantisBT 2.X or higher, in the /config directory).

Please check the admin guide for further informations:http://www.mantisbt.org/docs/master/en- ... nfig.email

Should be something like that :

Code: Select all

# --- Configuration des emails ---
$g_phpMailer_method		= PHPMAILER_METHOD_SMTP; # or PHPMAILER_METHOD_SMTP, PHPMAILER_METHOD_SENDMAIL
$g_smtp_host			= '192.168.X.XXX';			# used with PHPMAILER_METHOD_SMTP
$g_stmp_port			=	'25';
$g_smtp_username		= 'XXXXX';					# used with PHPMAILER_METHOD_SMTP
$g_smtp_password		= 'XXXXX';					# used with PHPMAILER_METHOD_SMTP
$g_webmaster_email      = 'noreply@yourdomain.com';
$g_from_email           = 'noreply@yourdomain.com';	# the "From: " field in emails
$g_return_path_email    = 'administrator@yourdomain.com';	# the return address for bounced mail
$g_administrator_email = 'noreply@yourdomain.com';
$g_from_name			= 'Your domain';
$g_email_receive_own	= ON;
$g_send_reset_password = OFF;
Most of the field will depend on wich SMTP Server you're using (like Gmail, Exchange, etc...). If the lines below does not exist yet, add them. :)
Currently working on a wiki-based plugin for MantisBT 2.X. If you'd like to test it, contact me or see the plugin section.
gobi004
Posts: 3
Joined: 18 Dec 2017, 06:36

Re: Getting spam emails and set mails per hour

Post by gobi004 »

i've added the smtp . but still problem is there . getting mails regarding that.
bigrock team saying same .

using version is
MantisBT Version 1.2.17
Schema Version 183
gobi004
Posts: 3
Joined: 18 Dec 2017, 06:36

Re: Getting spam emails and set mails per hour

Post by gobi004 »

about the solution they(bigrock) are saying .

" to add a code to limit the number of times the mail script executes every hour."

where(which file) need to add?

how and what is the code need to add?
Post Reply