Want to subscribe to topics you're interested in?
Become a Member

Install Mail Server on Centminmod

Discussion in 'Add Ons' started by brijendrasial, Aug 16, 2019.

  1. brijendrasial

    brijendrasial Active Member

    139
    110
    43
    Mar 21, 2018
    Ratings:
    +169
    Local Time:
    9:33 AM
    1.13.9
    10.0.22-MariaDB
    Yes you can create a subdomain and point on server and use it as hostname. It will work

     
  2. yunos

    yunos Member

    119
    3
    18
    Aug 8, 2015
    Ratings:
    +14
    Local Time:
    6:03 AM
    1.8.0
    unable to send emails using the smtp details

    i get

    SMTP send error
    Mailbox unavailable. The server response was: 4.4.4 : Recipient address rejected: Unable to look up mail exchanger host gmail-smtp-in.l.google.com: No address associated with hostname

    smtp.domain.com has valid nginx config and letsencrypt btw
     
    Last edited: Jul 22, 2020
  3. brijendrasial

    brijendrasial Active Member

    139
    110
    43
    Mar 21, 2018
    Ratings:
    +169
    Local Time:
    9:33 AM
    1.13.9
    10.0.22-MariaDB
    sorry for late reply can you check with port 465 instead of 587
     
  4. speedway

    speedway Premium Member Premium Member

    48
    13
    8
    Nov 28, 2015
    Sydney, AUSTRALIA
    Ratings:
    +18
    Local Time:
    3:03 PM
    1.19.2
    Dont' Know Right Now
    Just tried to install and nginx failed to start due to some additoins in the script. Had to reinstall the server and Centminmod and am wary of setting this up now. Any ideas why this would happen?

    Cheers
     
  5. speedway

    speedway Premium Member Premium Member

    48
    13
    8
    Nov 28, 2015
    Sydney, AUSTRALIA
    Ratings:
    +18
    Local Time:
    3:03 PM
    1.19.2
    Dont' Know Right Now
    Finally got this installed however have problems.

    Nothing in the vmail directory plus this error when trying to send to an account created with the installer:

    Code:
                   "5.1.1 <test@blacksheepwoodworks.com>: Recipient address rejected: User unknown in virtual mailbox table
    
    Cheers
     
  6. Dnyan

    Dnyan Member

    106
    24
    18
    Sep 16, 2017
    Ratings:
    +36
    Local Time:
    9:33 AM
    1.17.8
    10.3.22
    server is sending email to hotmail.com, mail-tester etc perfectly fine.
    mail-tester shows 10/10 for email delivery.

    But when i send email to gmail id, following error is shown and emails are bounced

    Code:
    host gmail-smtp-in.l.google.com[172.217.194.27] said: 550-5.7.1 [***.***.***.***]
    
    The IP youre using to send mail is not authorized 550-5.7.1 to send email directly to our servers.
    
    Please use the SMTP relay at 550-5.7.1 your service provider instead. Learn more at 550 5.7.1
    
    https://support.google.com/mail/?pNotAuthorizedError
    The server ip was listed on spamhaus blacklist and it was delisted Today (ISP sent request for delisting post raising ticket).

    What could be the reason for not delivering emails to gmail.com emails.
     
  7. Dnyan

    Dnyan Member

    106
    24
    18
    Sep 16, 2017
    Ratings:
    +36
    Local Time:
    9:33 AM
    1.17.8
    10.3.22
    This is happening on newly purchased server with installation of mail server done Today.
     
  8. eva2000

    eva2000 Administrator Staff Member

    47,280
    10,690
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +16,613
    Local Time:
    2:03 PM
    Nginx 1.19.x
    MariaDB 5.5/10.x
    sounds like your server's hosting provider blocked outbound email - cloud hosts like Linode, Vultr etc block outbound email for new customers usually until the customer contacts them to request unblocking and provide ID verification 'The IP you're using to send email is not authorized...' - Gmail Help

    Or your server IP has been blacklisted or on some spam lists. If the IP was recently removed from a spam database, there could be delays between that and Gmail getting the message for such.

    who's your web host?

     
  9. Dnyan

    Dnyan Member

    106
    24
    18
    Sep 16, 2017
    Ratings:
    +36
    Local Time:
    9:33 AM
    1.17.8
    10.3.22
    I did re-setup for mail server on my old server now and its working perfectly fine.
    New server IP was in spamhaus blacklist which was removed from their.

    Look like, Google keeps its own secrete blacklist database which i do not have idea when they sync or update from the spamhaus database.

    The hosting provider also sent request to Google for de-listing of IP. will try to setup mail server on new host Tomorrow ( it will be roughly more than 72 hours after de-listing request to google) and will update, if i get same error, will replace the IP.

    Postmaster shows 100% delivery error from new host IP clicking on the graphs shows mails rejected due to suspected spam, below is the screen shot of same.
    Google postmaster delivery error.jpg


    This mail server script works GOD like and hassle-free easy install. @brijendrasial thanks for the script.

    @eva2000 Thank you for your valuable reply.

    Will update all on Tomorrow about new IP (which was blacklisted, took effort to whitelist it) this might help others to take better decision when stuck in similar kind of situation.
     
  10. Dnyan

    Dnyan Member

    106
    24
    18
    Sep 16, 2017
    Ratings:
    +36
    Local Time:
    9:33 AM
    1.17.8
    10.3.22
    I did reinstallation of server but getting same response from google smtp. it looks like someone did heavy bombing to Gmail which in turns lead to like permanent ban by them.

    Google is like Machine and i think machine do not take action on request sent for de-listing by ISP's or might be they require more time to update there systems in routine.

    My hosting Provider not yet replaced the IP address.
     
  11. Dnyan

    Dnyan Member

    106
    24
    18
    Sep 16, 2017
    Ratings:
    +36
    Local Time:
    9:33 AM
    1.17.8
    10.3.22
    Just to update you all, host changed the server IP
    The new IP was from same range, blacklisted and i was again back to square.

    https://whatismyipaddress.com/ this website help me to understand the ISP type, it revealed the IP Type as Broadband instead of Corporate or atleast nondetected.

    As the assign IP address is from Broadband, Gmail was stating IP is not authorized.

    I requested host to change the IP type to Corporate, it took 1 day with no resulting updates on IP type change.
    Finally got new server from different location of INDIA and the corporate IP.

    Emails are working perfectly fine, mail-tester.com gives result as 10/10 for both @mydomain.com and for @mainhost.com

    Thank You!
     
  12. speedway

    speedway Premium Member Premium Member

    48
    13
    8
    Nov 28, 2015
    Sydney, AUSTRALIA
    Ratings:
    +18
    Local Time:
    3:03 PM
    1.19.2
    Dont' Know Right Now
    I downloaded the CMM_mail from github and it worked right out of the box, meaning it accepted emails I sent it. However there is nothing in the /home/vmail/ directory, is this normal?

    Also I tried to connect with the mail server from my email client but it won't connect to the server, IMAP fails with Server not responding and SMTP fails with Failed.

    Can someone help me get this thing going as I have 2 servers running iRedmail that I want to get rid of and consolidate all email address on my main server. It would be much appreciated.

    Cheers
    Bruce
     
  13. brijendrasial

    brijendrasial Active Member

    139
    110
    43
    Mar 21, 2018
    Ratings:
    +169
    Local Time:
    9:33 AM
    1.13.9
    10.0.22-MariaDB
    If its a newly installed server can you provide root access?

    I have been running the script of many centminmod VPS and there is no reported issue till yet.
     
  14. speedway

    speedway Premium Member Premium Member

    48
    13
    8
    Nov 28, 2015
    Sydney, AUSTRALIA
    Ratings:
    +18
    Local Time:
    3:03 PM
    1.19.2
    Dont' Know Right Now
    Yes, I can give you root access.

    I first installed it in a VPS and it did the same thing

    Cheers
    Bruce
     
  15. speedway

    speedway Premium Member Premium Member

    48
    13
    8
    Nov 28, 2015
    Sydney, AUSTRALIA
    Ratings:
    +18
    Local Time:
    3:03 PM
    1.19.2
    Dont' Know Right Now
    I sent you a conversation with the details inside
     
  16. brijendrasial

    brijendrasial Active Member

    139
    110
    43
    Mar 21, 2018
    Ratings:
    +169
    Local Time:
    9:33 AM
    1.13.9
    10.0.22-MariaDB
    It was A name record to the hostname was not found. Secondly when we install phpmyadmin ssl generation fails. I have added a different way approach for ssl installation and update the script.
     
  17. speedway

    speedway Premium Member Premium Member

    48
    13
    8
    Nov 28, 2015
    Sydney, AUSTRALIA
    Ratings:
    +18
    Local Time:
    3:03 PM
    1.19.2
    Dont' Know Right Now
    I have to thank brijendrasial for his help, you are a legend my friend. I would have never got it working with you
     
  18. brijendrasial

    brijendrasial Active Member

    139
    110
    43
    Mar 21, 2018
    Ratings:
    +169
    Local Time:
    9:33 AM
    1.13.9
    10.0.22-MariaDB
    Thanks. Dont forget to add spf and dkim key.