[SOLVED] Unable to send email from Round cube

Discussion in 'Installation/Configuration' started by Bharath Raj, Apr 30, 2020.

  1. Bharath Raj

    Bharath Raj New Member

    Hi,
    I am receiving mails from external servers, But if I send to external mail its not receiving.
    If I send to the internal mail, I am receiving mails.
    I have given smtp port 25 open in AWS EC2 firewall settings for inbound and outbound rules. Until do this I didn't receive incoming mail also. Now I am receiving mail but mails are not sent.
    All sent mails are showed in my sent item.
     

    Attached Files:

  2. Jesse Norell

    Jesse Norell Well-Known Member Staff Member Howtoforge Staff

    Do you have amavis or rspamd as a content filter, and is it running?

    Find the 'read before posting' post for how to get
    htf-common-issues.php and post that output here.
     
  3. Bharath Raj

    Bharath Raj New Member

    Thanks for your reply
    PFB the details.
    Service is running.
    amavis.service - LSB: Starts amavisd-new mailfilter
    Loaded: loaded (/etc/init.d/amavis; generated)
    Active: active (running) since Mon 2020-04-27 21:32:51 UTC; 2 days ago
    Docs: man:systemd-sysv-generator(8)
    Process: 21510 ExecStart=/etc/init.d/amavis start (code=exited, status=0/SUCCESS)
    Tasks: 3 (limit: 4647)
    Memory: 200.8M
    CGroup: /system.slice/amavis.service
    ├─21525 /usr/sbin/amavisd-new (master)
    ├─21526 /usr/sbin/amavisd-new (ch18-avail)
    └─21527 /usr/sbin/amavisd-new (ch17-avail)


    ##### SERVER #####
    IP-address (as per hostname): ***.***.***.***
    [WARN] could not determine server's ip address by ifconfig
    [INFO] OS version is Debian GNU/Linux 10 (buster)

    [INFO] ISPConfig is installed.
    [WARN] /usr/local/ispconfig/server/lib/config.inc.php is missing.

    ##### VERSION CHECK #####

    [INFO] php (cli) version is 7.3.14-1~deb10u1

    ##### PORT CHECK #####


    ##### MAIL SERVER CHECK #####


    ##### RUNNING SERVER PROCESSES #####

    [WARN] I could not determine which web server is running.
    [WARN] I could not determine which mail server is running.
    [WARN] I could not determine which pop3 server is running.
    [WARN] I could not determine which imap server is running.
    [WARN] I could not determine which ftp server is running.

    ##### LISTENING PORTS #####
    (only ()
    Local (Address)
    [anywhere]:110 (-)
    [anywhere]:143 (-)
    [anywhere]:465 (-)
    [anywhere]:21 (-)
    ***.***.***.***:53 (-)
    [localhost]:53 (-)
    [anywhere]:22 (-)
    [anywhere]:25 (-)
    [localhost]:953 (-)
    [anywhere]:993 (-)
    [anywhere]:995 (-)
    [localhost]:10023 (-)
    [localhost]:10024 (-)
    [localhost]:10025 (-)
    [localhost]:10026 (-)
    [localhost]:3306 (-)
    [localhost]:10027 (-)
    [anywhere]:587 (-)
    [localhost]:11211 (-)
    [localhost]10 (-)
    [localhost]43 (-)
    *:*:*:*::*:8080 (-)
    *:*:*:*::*:80 (-)
    *:*:*:*::*:465 (-)
    *:*:*:*::*:8081 (-)
    *:*:*:*::*:21 (-)
    *:*:*:*::*:53 (-)
    *:*:*:*::*:22 (-)
    *:*:*:*::*:25 (-)
    *:*:*:*::*:953 (-)
    *:*:*:*::*:443 (-)
    *:*:*:*::*:993 (-)
    *:*:*:*::*:995 (-)
    *:*:*:*::*:10024 (-)
    *:*:*:*::*:10026 (-)
    *:*:*:*::*:587 (-)
     
  4. nhybgtvfr

    nhybgtvfr Well-Known Member HowtoForge Supporter

  5. Taleman

    Taleman Well-Known Member HowtoForge Supporter

  6. Jesse Norell

    Jesse Norell Well-Known Member Staff Member Howtoforge Staff

    Your installation is not complete or it has been corrupted. If you have data you need to keep, make a good backup then download the ISPConfig installer and run update.php. If you don't have any data worth salvaging, or if the update fails, you might try a fresh install.
     
  7. till

    till Super Moderator Staff Member ISPConfig Developer

    I fear the update will not work as it uses this file to get the details of the ispconfig database user. Does the file /usr/local/ispconfig/interface/lib/config.inc.php exists on your server and does it contain valid login details for the ispconfig database user? If yes, copy it to /usr/local/ispconfig/server/lib/config.inc.php and then run the update.
     
  8. Bharath Raj

    Bharath Raj New Member

    Thank you I have raised ticket to AWS. I will update you once it is done.
     
  9. Bharath Raj

    Bharath Raj New Member

    Thank you Jesse, After 20 days hard work few applications and websites are migrated from cPanel. If there is any downtime in the server I cant face the client. I need Plan something for that.
    May I wait till the AWS to reply because I found the following errors from mxtoolbox.com

    dmarc clientDomain.in DNS Record not found
    spf clientDomain.in DNS Record not found
    mx clientDomain.in No DMARC Record found
    blacklist server1.Mydomain.com Blacklisted by UCEPROTECTL34
    mx clientDomain.in DMARC Quarantine/Reject policy not enabled
    dns clientDomain.in SOA Serial Number Format is Invalid
    smtp server1.Mydomain.com Reverse DNS does not match SMTP Banner.
     
  10. Bharath Raj

    Bharath Raj New Member

    I have raised the ticket using the link given by nhybgtvfr.
    I received an email as follows:

    "Thank you for submitting your request to have the email sending limit removed from your account and/or for an rDNS update.

    We will require the following before this request can be processed.

    * A clear/detailed use-case for sending mail from EC2.
    * What type of configuration or setup have you implemented to prevent spam from originating from your Ec2 resource? (Please Elaborate)"

    For the first one I mentioned what I am going to do and I confirmed them that I wont this for promotion or marketing.

    Amazon Email policy https://aws.amazon.com/aup/
    For second one:
    Reject Email if SMTP Client
    Enable HELO/EHLO Hostname Restrictions in Postfix
    Enable Greylisting in Postfix
    Reject Email If MAIL FROM Domain Has Neither MX Record Nor A Record
    Reject Email if SMTP Client Hostname doesn’t have valid A Record
    Public Realtime Blacklists

    Postfix few lines:

    smtpd_sender_restrictions
    smtpd_recipient_restrictions
    smtpd_helo_restrictions
    smtpd_client_restrictions

    Finally they approved it with in an hr. Now I can send mail from my server.
    Thanks to everyone who help me.
     
  11. Taleman

    Taleman Well-Known Member HowtoForge Supporter

    The configurations you list as answer prevent spam from arriving at your e-mail server. They do not prevent sending of spam, which was the concern at
     
  12. Bharath Raj

    Bharath Raj New Member

    I don't know Taleman. Just I have shared what I did, But my got issue resolved.
     

Share This Page