Navigation

    • Register
    • Login
    • Search
    • Recent
    • Users
    • Groups

    Problem with sending emails with the hostname

    CWP - Panel
    2
    5
    73
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • JosePP
      JosePP last edited by

      Hello @Sandeep!

      I don't know if you have, but I have different servers with CWP, from where I think they send SPAM from the server with emails of the type:

      *@hostname.com

      Do you know how you can prevent them from using emails that do not exist on the CWP server to send emails?

      Greetings!

      sandeep 1 Reply Last reply Reply Quote 0
      • sandeep
        sandeep @JosePP last edited by sandeep

        @josepp did you checked the origin/source of the mail ?

        JosePP 1 Reply Last reply Reply Quote 0
        • JosePP
          JosePP @sandeep last edited by JosePP

          @sandeep said in Problem with sending emails with the hostname:

          @josepp did you checked the origin/source of the mail ?

          Hello!

          The truth is that it happens in all servers CWP, so I was rather asking if you knew any general solution for the servers not to be able to send emails of this type:

          root@hostname.com
          users@hostname.com

          Or similar.

          I add: I have the php mail function disabled, we use SMTP.

          JosePP sandeep 2 Replies Last reply Reply Quote 0
          • JosePP
            JosePP @JosePP last edited by

            I add: I have the php mail function disabled, we use SMTP.

            1 Reply Last reply Reply Quote 0
            • sandeep
              sandeep @JosePP last edited by sandeep

              @josepp hi you can add server hostname to postfix reject list in order to stop receiving from them.

              Like in :

              /etc/postfix/sender_access
              

              Add one of below which fits you i.e. you don't want mail from those sans or from particular user matches the name.

              domain.com                       REJECT
              sub.domain.com                   REJECT
              user@                            REJECT
              

              now run postmap:

              postmap /etc/postfix/sender_access
              

              Ensure you added the reject config or present in /etc/postfix/main.cf

              smtpd_recipient_restrictions = check_sender_access hash:/etc/postfix/sender_access
              

              At last restart postfix service.

              1 Reply Last reply Reply Quote 0
              • 1 / 1
              • First post
                Last post

              Recent Topics

              • Centos 8 Stream CWP - Delayed Update and CWP repositories are added

              • Update NGINX Stable v1.16.1 to latest NGINX Stable v1.18.0 for CWP & CWP PRO!

              • Phpmyadmin New Verison with autologin - CWP

              • PHP 8.0.0 testing - CWP

              • M

                Install php 7.4 on cwp

              • How to update phpMyAdmin v4.7.9 outdated version to the latest phpMyAdmin v4.9.2 for CWP and CWP PRO for Centos 7 !

              • How to Get A+ Score Rating with SSLLabs Qualys in CWP – Control web panel

              • Error cronjobs

              URLs HOME | Blog | Support Portal