URGENT! I Can't Get Mail Working

Discussion in 'Installation/Configuration' started by Treaver Hoerig, Oct 20, 2020.

  1. Treaver Hoerig

    Treaver Hoerig New Member

    When I go to webmail and login, I can't send anything: Error 250 (round mail) I went through the entire ISPConfig beta setup probably 7 times the first entirely typing by hand into the terminal... How newb.
    Anyways after many many attempts I finally got https:// configured on the domain itself from official authority; but something is wrong with the mail settings. Could you please help me, I almost entirely configured this server perfectly and that's absolutely exciting considering I've never done anything this advanced. But without mail, I'm at a pretty great loss.
     
  2. Th0m

    Th0m ISPConfig Developer Staff Member ISPConfig Developer

    I have closed your other thread as it is a duplicate. Please don't open 2 threads in different boards for the same issue.

    Did you follow the perfect server tutorial?
     
  3. Treaver Hoerig

    Treaver Hoerig New Member

    I followed the ISPConfig Beta instructions word for word for the most part aside from anything relating to SSL because after two attempts of changing the SSL I couldn't get it to work with SSL from an actual authority. So I followed the instructiosn to the best of my knowledge to setup Postfix and D... with SSL certificate. Managed to get the certificates moved to /etc/ssl/certs and I copied the Key Certificate and created a file called www_msniblets_com.key file and moved that to /etc/ssl/private. Then I merged those into certificate_and_key.crt in /etc/ssl/certs and changed the configs of postfix and D... to /etc/ssl/certs/certificate_and_key.crt.
    But before I did this, mail still wasn't working.
     
  4. Treaver Hoerig

    Treaver Hoerig New Member

    Before getting the SSLs installed on the main site, I actually had mail working using the SSL instructions from the ISPconfig beta
    Also my site isn't accessible without www, what did I do wrong here?
     
  5. Treaver Hoerig

    Treaver Hoerig New Member

    Absolutely everything but Email and FTP is working SFTP is working though.
     
  6. Treaver Hoerig

    Treaver Hoerig New Member

    I really don't want to start over. I got Wordpress all configured and setup, I got the SSL installed on the main site, I'm just missing mail and if I get that, I'm through with configuring this entirely! :D I'm so excited and depressed at the same time.
     
  7. Th0m

    Th0m ISPConfig Developer Staff Member ISPConfig Developer

  8. Treaver Hoerig

    Treaver Hoerig New Member

    I don't want to use the free lets encrypt ssl I want to use the one I bought from a authorized authority
     
  9. Treaver Hoerig

    Treaver Hoerig New Member

    ISPConfig Version: 3.2dev20201019
     
  10. Th0m

    Th0m ISPConfig Developer Staff Member ISPConfig Developer

    Alright, then replace the paths of the Let's Encrypt cert with the paths where your cert is stored.
     
  11. Th0m

    Th0m ISPConfig Developer Staff Member ISPConfig Developer

    Alright, make sure to update to 3.2.1 when it's released. Your current build is stable though, so fine for now.
     
  12. Treaver Hoerig

    Treaver Hoerig New Member

    That's what I thought I did, is there any chance you could look at it? The SSL Authority gave me only Bundle and Crt, I created the key file by just pasting the key into ++ and saving as www_msniblets_com.key
    I went to the confs and changed everything to /etc/ssl/certs/certification_and_key.crt and I even restarted the services.
     
  13. Th0m

    Th0m ISPConfig Developer Staff Member ISPConfig Developer

  14. 30uke

    30uke Member HowtoForge Supporter

    Just a question: why are you running a Beta version whilst looking for a working/stable environment?
     
  15. Th0m

    Th0m ISPConfig Developer Staff Member ISPConfig Developer

    The beta is downloaded in the current tutorials for Ubuntu 20.04 and CentOS 8, because they were stable enough to use and we wanted to release the tutorials asap. They will be changed soon.
     
    30uke likes this.
  16. 30uke

    30uke Member HowtoForge Supporter

    Ah! Gotcha.
     
  17. Treaver Hoerig

    Treaver Hoerig New Member

    If you could TeamViewer my main pc I could ssh into terminal and you could see for yourself what I've done or what I've done wrong, probably wouldn't take 5 minutes. Or I'm even willing to go the Skype route and share screen. I just really want a solution to this.
     
  18. Th0m

    Th0m ISPConfig Developer Staff Member ISPConfig Developer

  19. 30uke

    30uke Member HowtoForge Supporter

    First things first... this is a forum. Fixing stuf goes step by step. Sometimes these are baby steps.
    The problem you are having is sending e-mail at the moment? I did notice "Error 250" when using webmail? Error 250 indicates an authentication failure.
    There is a file called defaults.inc.php in /etc/roundcube. You could enable "smtp_debug" there by changing "false" to "true". Also set "debug_level" to "1". Next you could try to reload roundcube. On my system this works with the command "service reload roundcube". From that point on you should be able to troubleshoot by examining the log file in /var/log/roundcube or by looking into syslog (/var/log/syslog).
    It's a bit odd that you receive an auth error as in config.inc.php the smtp_server should be set to "localhost" and smtp_port to "25". The variables "smtp_user" and "smtp"pass" should be empty as far as I know.
    I am hoping this might be helpful.
     
    Th0m likes this.
  20. Jesse Norell

    Jesse Norell ISPConfig Developer Staff Member ISPConfig Developer

    Try setting
    Code:
    $config['smtp_user'] = '%u';
    $config['smtp_pass'] = '%p';
    
    As for the port, in general mail submission on port 465 with ssl or 587 with tls is preferred over 25, though I'd fix your ssl certificate issue before changing to either of those. You don't need the encryption for a localhost connection, but the delivery path is often different, with more spam controls, etc.
     

Share This Page