Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 7 of 7
  1. #1
    Member SuperBaby's Avatar
    Join Date
    Nov 2003
    Location
    Malaysia
    Posts
    306

    Default Quantity of emails sent shoot up once a week.

    I use dyndns.com's smtp to send out all emails to Yahoo email addresses. From the statistic report under dyndns.com, I can see that the emails sent to Yahoo email addresses are usually less than 50 emails per day. But once a week, the emails sent will shoot up to more than 300.

    I have many accounts in my server. I cannot possibly look into the crontab of all accounts. Is there a way for me to find out who is sending out bulk mails? Is there a way to check from /var/log/exim_mainlog?

    How can I stop this?
    SuperBaby

  2. #2
    cPanel Partner NOC cPanel Partner NOC Badge
    Join Date
    Apr 2008
    Location
    PK
    Posts
    443

    Default

    Quote Originally Posted by SuperBaby View Post
    I use dyndns.com's smtp to send out all emails to Yahoo email addresses. From the statistic report under dyndns.com, I can see that the emails sent to Yahoo email addresses are usually less than 50 emails per day. But once a week, the emails sent will shoot up to more than 300.

    I have many accounts in my server. I cannot possibly look into the crontab of all accounts. Is there a way for me to find out who is sending out bulk mails? Is there a way to check from /var/log/exim_mainlog?

    How can I stop this?
    tail the exim log using 'tail -f /var/log/exim_mainlog' for sometime and notice any scripts usually with the format "cwd=/home/username/public_html" or alternately, you can try this.

    grep "cwd=/home/" /var/log/exim_mainlog

    This will give you the usernames that are generating mails through scripts.
    1 solution works for all problems. Trying harder!
    HostMasterTips - Understanding Tech Support

  3. #3
    Member SuperBaby's Avatar
    Join Date
    Nov 2003
    Location
    Malaysia
    Posts
    306

    Default

    Thank you for your advice. I tried grep "cwd=/home/" /var/log/exim_mainlog but I don't think the emails were sent by scripts. This is because I only get a few lines of result running this command. Any other thing I can try. Thanks again.
    SuperBaby

  4. #4
    Member brianoz's Avatar
    Join Date
    Mar 2004
    Location
    Melbourne, Australia
    Posts
    1,117
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    The only way for something to send messages and not have them appear in exim_mainlog is for them to be sent direct via port 25. Either cpanel or CSF have the ability to block direct port 25 outgoing email and your should ensure that it is ALWAYS blocked (as you can't log it, and spammers love to use this bypass).

    You should be grepping exim_mainlog for something like:

    Code:
    grep '=>.*@yahoo.com' exim_mainlog
    which will tell you what emails are being sent to yahoo. Replace "grep" with "exigrep" to see the entire log message for each message.

  5. #5
    Member SuperBaby's Avatar
    Join Date
    Nov 2003
    Location
    Malaysia
    Posts
    306

    Default

    To BRIANOZ,

    My CFS currently has this setting. Is that correct?

    # Block outgoing SMTP except for root, exim and mailman (forces scripts/users
    # to use the exim/sendmail binary instead of sockets access). This replaces the
    # protection as WHM > Tweak Settings > SMTP Tweaks
    SMTP_BLOCK = 1

    # If SMTP_BLOCK is enabled but you want to allow local connections to port 25
    # on the server (e.g. for webmail or web scripts) then enable this option too
    SMTP_ALLOWLOCAL = 1

    # This is a comma separated list of the ports to block. You should list all
    # ports that exim is configured to listen on
    SMTP_PORTS = 25
    SuperBaby

  6. #6
    Registered User
    Join Date
    Jan 2009
    Posts
    2

    Default

    tail the exim log using 'tail -f /var/log/exim_mainlog' for sometime and notice any scripts usually with the format "cwd=/home/username/public_html

  7. #7
    Member brianoz's Avatar
    Join Date
    Mar 2004
    Location
    Melbourne, Australia
    Posts
    1,117
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    Quote Originally Posted by SuperBaby View Post
    My CFS currently has this setting. Is that correct?
    Looks correct to me; I'm not a CSF guru though (it's CSF not CFS!).

Similar Threads & Tags
Similar threads

  1. AirSpaceHosting Special Promo 50% Off LIMITED QUANTITY!
    By AirSpaceHosting in forum VPS Servers
    Replies: 0
    Last Post: 07-16-2009, 09:31 AM
  2. I need so much help someone should just shoot me...[moved]
    By tiyoo in forum New User Questions
    Replies: 1
    Last Post: 09-13-2006, 09:58 AM
  3. Replies: 11
    Last Post: 04-03-2003, 07:58 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube