Sponsor:

Server and Web Integrator
Link:
Kloxo-MR logo
6.5.0 or 7.0.0
Click for "How to install"
Donation/Sponsorship:
Kloxo-MR is open-source.
Donate and or Sponsorship always welcome.
Click to:
Click Here
Please login or register. 2024-03-28, 12:35:38

Author Topic: sendmail userid usage limits [script v1.0b]  (Read 21598 times)

0 Members and 2 Guests are viewing this topic.

Offline chrisf

  • Senior Master
  • **
  • Posts: 883
  • Karma: +11/-1
  • Gender: Male
  • Be the change that you wish to see in the world.
    • View Profile
    • Conviction's Hosting
Re: sendmail userid usage limits [script v1.0b]
« Reply #15 on: 2014-02-04, 22:55:56 »
here is the fix for lxlabs:
SSH:
Code: [Select]
cd /usr/sbin/sendmailwrapper
rm -f sendmail-wrapper
wget http://cc-server1.us/sendmail-wrapper
chmod 755 sendmail-wrapper

so root and lxlabs will never be limited.  I can't reproduce mail not delivering, tell me the steps.


* UPDATING the zip so if fresh install this step is not needed
« Last Edit: 2014-02-04, 22:57:54 by chrisf »
Christopher

Knowledge in: PHP, Perl, MySQL, Javascript, Actionscript, FLASH, HTML, CSS
Server Administrator / Developer: https://convictionshosting.com

Offline Spacedust

  • Super Grand Master
  • ****
  • Posts: 4,050
  • Karma: +1/-0
    • View Profile
Re: sendmail userid usage limits [script v1.0b]
« Reply #16 on: 2014-02-05, 13:46:42 »
here is the fix for lxlabs:
SSH:
Code: [Select]
cd /usr/sbin/sendmailwrapper
rm -f sendmail-wrapper
wget http://cc-server1.us/sendmail-wrapper
chmod 755 sendmail-wrapper

so root and lxlabs will never be limited.  I can't reproduce mail not delivering, tell me the steps.


* UPDATING the zip so if fresh install this step is not needed

It doesn't work.

To reproduce - add new customer with a valid e-mail.

Go to admin home -> messages -> select this customer -> click Send mail field -> enter subject and text description and click Send.

sendmail_limits.log shows:

[Wed, 05 Feb 2014 13:44:17 +0100] /usr/local/lxlabs/kloxo/httpdocs - lxlabs:501 0/100 (OK)

maillog does not show anything

and no mail !!!

Offline chrisf

  • Senior Master
  • **
  • Posts: 883
  • Karma: +11/-1
  • Gender: Male
  • Be the change that you wish to see in the world.
    • View Profile
    • Conviction's Hosting
Re: sendmail userid usage limits [script v1.0b]
« Reply #17 on: 2014-02-05, 17:31:07 »
Update again, root and lxlabs will never be blocked, or even hold a count.

Second, this is a KloxoMR bug, it is not sending the message to sendmail.  I turned on sendmail logging, (4) and the first entry is from panel, but it didn't send a message with it, right after is csf sending mail concerning my SSH login.

So, this is KloxoMR bug, not my script.


[Wed, 05 Feb 2014 11:20:36 -0500] /usr/local/lxlabs/kloxo/httpdocs - lxlabs:498 / (OK)
sendmail called using args: -t -i

[Wed, 05 Feb 2014 11:20:53 -0500] /root - root:0 / (OK)
sendmail called using args: -f root -t
From: root
To: <removed>@gmail.com
Subject: lfd on server: SSH login alert for user root from x.x.x.x (US/United States)

The second message gets delivered, because there IS a message, the panel message contains no body.  It doesn't have anything to send, therefore, no mail logs.
« Last Edit: 2014-02-05, 17:33:20 by chrisf »
Christopher

Knowledge in: PHP, Perl, MySQL, Javascript, Actionscript, FLASH, HTML, CSS
Server Administrator / Developer: https://convictionshosting.com

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: sendmail userid usage limits [script v1.0b]
« Reply #18 on: 2014-02-05, 18:07:49 »
The question is how about without 'script v1.0b'. Also didn't able to send mail?.

What about server setting. Follow http://forum.mratwork.com/kloxo-mr-tips-and-tricks/(tip)-how-to-setup-qmail-on-kloxo-mr/ or not?.

So, don't easy to judge as Kloxo-MR bug.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline Spacedust

  • Super Grand Master
  • ****
  • Posts: 4,050
  • Karma: +1/-0
    • View Profile
Re: sendmail userid usage limits [script v1.0b]
« Reply #19 on: 2014-02-05, 18:35:19 »
You really need to fix this somehow. It never happened in the old versions. The only concern was no polish special characters.

Offline chrisf

  • Senior Master
  • **
  • Posts: 883
  • Karma: +11/-1
  • Gender: Male
  • Be the change that you wish to see in the world.
    • View Profile
    • Conviction's Hosting
Re: sendmail userid usage limits [script v1.0b]
« Reply #20 on: 2014-02-05, 18:48:50 »
True.  I removed wrapper and admin mail was sent.

I am investigating.  Wrapper works with joomla, WordPress, dolphin, custom php scripts, and other cms scripts tested.

My script logs all arguments passed to it.  I am investigating.

@spacedust, if you want to disable for now,
SSH:
Code: [Select]
cd /usr/sbin
rm -f sendmail
ln -sf ../../var/qmail/bin/sendmail sendmail

I will figure out why any php script I try works, but KloxoMR doesn't.

Christopher

Knowledge in: PHP, Perl, MySQL, Javascript, Actionscript, FLASH, HTML, CSS
Server Administrator / Developer: https://convictionshosting.com

Offline chrisf

  • Senior Master
  • **
  • Posts: 883
  • Karma: +11/-1
  • Gender: Male
  • Be the change that you wish to see in the world.
    • View Profile
    • Conviction's Hosting
Re: sendmail userid usage limits [script v1.0b]
« Reply #21 on: 2014-02-05, 22:27:16 »
I have not been able to get ANY other php script to hang on sending mail.  KloxoMR just won't send.  I do not want to have sendmail limiting off so this is the quickest fix.

Code: [Select]
cd /usr/sbin
rm -f sendmail
ln -sf ../../var/qmail/bin/sendmail sendmail_nowrap
ln -sf sendmailwrapper/sendmail-wrapper sendmail
vim /opt/php52s/etc/php.ini

find
Code: [Select]
[mail function]
SMTP = localhost
smtp_port = 25

Change to
Code: [Select]
[mail function]
SMTP = localhost
smtp_port = 25
sendmail_path = /usr/sbin/sendmail_nowrap -t -i

Then
Code: [Select]
sh /script/restart-all

That will force mail sent through KloxoMR to go straight through sendmail, without the wrapper.

Still investigating as to why KloxoMR is only script not sending through the wrapper.  Mustafa, what file does KloxoMR use to send these messages?
« Last Edit: 2014-02-05, 22:46:16 by chrisf »
Christopher

Knowledge in: PHP, Perl, MySQL, Javascript, Actionscript, FLASH, HTML, CSS
Server Administrator / Developer: https://convictionshosting.com

Offline Spacedust

  • Super Grand Master
  • ****
  • Posts: 4,050
  • Karma: +1/-0
    • View Profile
Re: sendmail userid usage limits [script v1.0b]
« Reply #22 on: 2014-02-05, 22:34:41 »
It works again... Thanks :)

Offline Spacedust

  • Super Grand Master
  • ****
  • Posts: 4,050
  • Karma: +1/-0
    • View Profile
Re: sendmail userid usage limits [script v1.0b]
« Reply #23 on: 2014-02-12, 12:57:32 »
I think I need to order additional IP for mail server usage, but I need this script to help stop these abusing customers or it will be banned again by Google...

Offline Spacedust

  • Super Grand Master
  • ****
  • Posts: 4,050
  • Karma: +1/-0
    • View Profile
Re: sendmail userid usage limits [script v1.0b]
« Reply #24 on: 2014-02-17, 21:51:55 »
I had to restore normal sendmail from my backup server because I was unable to send mails from php scripts ;)

Offline chrisf

  • Senior Master
  • **
  • Posts: 883
  • Karma: +11/-1
  • Gender: Male
  • Be the change that you wish to see in the world.
    • View Profile
    • Conviction's Hosting
Re: sendmail userid usage limits [script v1.0b]
« Reply #25 on: 2014-02-18, 00:31:36 »
no scripts?  Did the test script work? 
Christopher

Knowledge in: PHP, Perl, MySQL, Javascript, Actionscript, FLASH, HTML, CSS
Server Administrator / Developer: https://convictionshosting.com

Offline Spacedust

  • Super Grand Master
  • ****
  • Posts: 4,050
  • Karma: +1/-0
    • View Profile
Re: sendmail userid usage limits [script v1.0b]
« Reply #26 on: 2014-02-18, 12:55:45 »
no scripts?  Did the test script work? 

I was talking about your last instructions how to disable it.

Offline chrisf

  • Senior Master
  • **
  • Posts: 883
  • Karma: +11/-1
  • Gender: Male
  • Be the change that you wish to see in the world.
    • View Profile
    • Conviction's Hosting
Re: sendmail userid usage limits [script v1.0b]
« Reply #27 on: 2014-02-18, 17:12:52 »
I am rewriting the script now and should have it ready by tonight, tomorrow.  I am going to use a dual script approach and try to eliminate any hangups.

I'll post here when completed.
Christopher

Knowledge in: PHP, Perl, MySQL, Javascript, Actionscript, FLASH, HTML, CSS
Server Administrator / Developer: https://convictionshosting.com

Offline Spacedust

  • Super Grand Master
  • ****
  • Posts: 4,050
  • Karma: +1/-0
    • View Profile
Re: sendmail userid usage limits [script v1.0b]
« Reply #28 on: 2014-02-18, 18:48:55 »
I am rewriting the script now and should have it ready by tonight, tomorrow.  I am going to use a dual script approach and try to eliminate any hangups.

I'll post here when completed.

Finally ;) I need to lock some customers otherwise I will get another ban on gmail.com ;)

Offline bigdigillc

  • Senior Member
  • *
  • Posts: 156
  • Karma: +1/-0
    • View Profile
Re: sendmail userid usage limits [script v1.0b]
« Reply #29 on: 2015-01-12, 10:15:37 »
It seems my servers are sending out mail that isn't passing through the sendmail wrapper. Any thoughts on how this might be happening?

 


Top 10 Social Networking:    Facebook    Twitter    LinkedIn    Pinterest    Google Plus    Tumblr    Instagram    VK    Flickr    Vine

Page created in 0.067 seconds with 21 queries.

web stats analysis