Skip to main content

turn off the mail service

Comments

8 comments

  • cPanelMichael
    Hello :) It's likely the default address for this account was configured to "catch" any mail that was sent to an invalid email address for your domain. Browse to the "Default Address" option in cPanel and update the default behavior to: "Discard with error to sender (at SMTP time)" This will ensure emails sent to non-existing email accounts for these domain names will bounce to the sender. Thank you.
    0
  • vanessa
    Is this the mail folder inside /home/$user/mail/new, or /home/$user/mail/$domain/$account/net? If it's the second of the two, technically all you would have to do is remove the domain from /etc/localdomains and the server will not deliver mail to it. If it's the first one, there isn't currently a reliable way of disabling it because it's actually yourcpaneluser@yourserverhostname, however, you may want to review the contents of some of the emails to see what's causing the mail to end up there. It's usually bounces from PHP/Perl scripts that are not properly configured to use SMTP. You can deter mail from going here by 1) making sure the default address for the domain is set to :fail: 2) going to whm -> exim configuration manager and checking this box: Reject remote mail sent to the server's hostname [?]
    3) make sure php/perl scripts sending email from this account are sending from a valid email address
    0
  • OooLong
    Thanks. I'm not sure about the inner working of DNS but isn't it possible to edit zone records and redirect any mail to some un-existing ip and point it there?
    0
  • vanessa
    You can change the MX records for the domains on the server to point to a hostname that doesn't resolve, but that would depend on the answer to the question I asked you in my previous comment.
    0
  • OooLong
    It is this: /home/$user/mail/new 1) making sure the default address for the domain is set to :fail: how do I do this? 2) going to whm -> exim configuration manager and checking this box: done The mail I'm getting all look like this: This message was created automatically by mail delivery software. A message that you sent could not be delivered to one or more of its recipients. This is a permanent error. The following address(es) failed: All mail was send by some randomgeneratename@domain.com I did what you told and hope it's sufficient. [COLOR="silver">- - - Updated - - - [quote="vanessa, post: 1631881">You can change the MX records for the domains on the server to point to a hostname that doesn't resolve, but that would depend on the answer to the question I asked you in my previous comment.
    Do you mean that I go to edit MX entry and change The lowest numbered MX to some un existing domain? My hostname for the current server is some gibberish that already resolve to nothing.
    0
  • OooLong
    I just tried to shut off exim completely with /etc/init.d/exim stop and exim disable in service manager and I'm still getting these mail, how is that possible?
    0
  • OooLong
    I am still getting these spam after doing all these steps. I even edit the mx entry and change the MX Destination to some not existing domain and that don't work, shutting off exim still didn't work. So this leave me to two things I haven't tried yet: 1) You can change the MX records for the domains on the server to point to a hostname that doesn't resolve, but that would depend on the answer to the question I asked you in my previous comment. Can you provide a walkthrough on how to do this? 2) Tracking down what script that is causing all this email send. What's the best way to track what script is causing all this spam? Thank you.
    0
  • cPanelMichael
    [quote="OooLong, post: 1631922">making sure the default address for the domain is set to :fail: how do I do this?
    Browse to the "Default Address" option within cPanel and set it to: "Discard with error to sender (at SMTP time)" Then, assuming you do not want to save any email that already exists for this email account, delete the email account and re-create it. You may want to create it with a new password if you are concerned this email account has been used to send out SPAM. Thank you.
    0

Please sign in to leave a comment.