Problem sending email.

Discussion in 'Server Operation' started by thioky, Tuesday at 5:17 PM.

  1. thioky

    thioky New Member

    Hello everyone,
    for a few weeks now, I haven't been able to send emails, but I can receive them. I have a VPS with Apache and Ispconfig 3 configuration. I tried to determine the problem by running a test on https://www.mail-tester.com, but I get this message:
    Your email client, plugin, or extension indicates that the message was "sent," and it was. But your email was blocked immediately afterward and didn't reach us.
    I don't see any errors and I don't know the cause. No address is able to send emails. Only the reception.
    Thank you in advance for your help.
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    Most likely, the hoster of your VPS blocks mail sending; that's quite common today. Contact their support and ask them if they block it and, if yes, what you have to do to make them unblock port 25 outgoing.
     
    Turgut Kalfaoglu and thioky like this.
  3. thioky

    thioky New Member

    Hello, yes you are right. Port 25 is blocked by my host due to repeated abuse and hacking. No action is possible. How can I use port 587 for SMTP ? Here is my config.inc.php file.
    $config = array()
    include_once("/etc/roundcube/debian-db-roundcube.php");
    $config['default_host'] = 'localhost';
    $config['smtp_server'] = 'localhost';
    $config['smtp_port'] = 25;
    $config['smtp_user'] = '%u';
    $config['smtp_pass'] = '%p';

    Roundcube Webmail IMAP Client : Version 1.4.15
     
  4. till

    till Super Moderator Staff Member ISPConfig Developer

    Other ports can not work for mail sending as you would have to change the recipient server and not your server, which means potentially all other mail servers on the internet need to change their ports for you, which will not happen. Either get a VPS from another provider or you must use a email relay service for sending emails and configure that in ISPConfig to relay all outgoing emails.

    This is not a config in RoundCube.
     
    thioky likes this.
  5. thioky

    thioky New Member

    I'm back with the news, port 25 has been blocked by the host because of mass SPAM sending from my debian VPS + ISPCONFIG 3. How can I limit the sending of mail per user per day via ISPCONFIG 3 or postfix ?
     
  6. till

    till Super Moderator Staff Member ISPConfig Developer

    This won't help you prevent getting blocked, as a single reported email might get you blocked already. Ensure your server does not send spam, use secure passwords and ensure your website CMS systems are up to date.

    If you want to limit the number of emails nonetheless, you can do that e.g. in Rspamd config files.
     
  7. thioky

    thioky New Member

    Thanks for your feedback. I checked the mail queue and it seems that an address is responsible for spam via a script. I'm posting it here, how I can prevent the server from sending SPAM please.
    -Queue ID- --Size-- ----Arrival Time---- -Sender/Recipient-------
    13C30442DA3 1073 Thu Mar 27 14:15:03 ousmane.drame@cedda-group.com
    (connect to redlake.pw[37.187.123.92]:25: Connection timed out)
    no3@redlake.pw
    I have disabled the cedda-groupe domain for the moment while waiting to do the necessary.
     
  8. till

    till Super Moderator Staff Member ISPConfig Developer

  9. thioky

    thioky New Member

    Thank you for these resources. Your help has been very helpful to me.
     
    till likes this.
  10. thioky

    thioky New Member

    How can I set a specific version of php-fpm for Roundcube only? My Roundcube uses php8.2 and I want it to run on php7.4
     

Share This Page