Connect Mail to external roundcube site

Discussion in 'Technical' started by Sarhan, Dec 4, 2019.

  1. Sarhan

    Sarhan New Member

    Hello everyone,
    I'am trying to connact mail from external to intern roundcube site , i have installed postfix and mailman , what should i do to connect to roundcube and using the external database.
     
  2. Steini86

    Steini86 Active Member

  3. Sarhan

    Sarhan New Member

    Which server client should i install to config it with roundcube ?
     
  4. Sarhan

    Sarhan New Member

    After installing Postfix in ubuntu 18 iam trying to make system user and login to it from external roundcube site but it doesn't work, but i i use echo in ubuntu terminal with mailutils it arrive to the gmail inbox.
     
  5. Taleman

    Taleman Well-Known Member HowtoForge Supporter

    What is an external roundcube site?
    What kind of setup do you have? It seems to consist of multiple servers.
     
  6. Sarhan

    Sarhan New Member

    For example i have the roundcube website it
    111.111.111.1111
    And the mail service in
    222.222.222.222

    I want to conect 222......
    To 111......

    But smtp doesnt work and iam trying to make account in system and add it to mail group but it doesnt work.
    Do you have a guide to make what i want ?
    I want the guide from howtoforge if available.

    I have tried ispconfig and its perfect but i dont want to make websites at this moment.
     
  7. Taleman

    Taleman Well-Known Member HowtoForge Supporter

    Are you running ISPConfig now on those servers?
    Have you installed Roundcube on 111 and dovecot/postfix on 222?
    Why not install Roundcube on the same server where dovecot is running?
    What have you in Roundcube settings about the mail host?
    Code:
    grep \$config /etc/roundcube/config.inc.php | grep smtp_
     
  8. Sarhan

    Sarhan New Member

    I want to to make mail service with postfix and dovecot in the 222.... ip

    And connect with roundcube on 111...
    But i don't know how to make user account with email and password in 222... to login in 111...
     
  9. Sarhan

    Sarhan New Member

    The smtp_server is mail.mydomain.com
    _port 25

    And mail.mydomain.com connected with dns to 222..... that contain postfix and dovecot
     
  10. Steini86

    Steini86 Active Member

    Roundcube is a mail _Client_, which connects to an smtp _server_ to send mails and an imap _server_ to read mails.

    If I got you right, you want to install an smtp server (postfix) and an imap server (dovecot) on 222, and the client (roundcube) on 111.
    Per definition, the client connects to the server. So you have to configure roundcube to connect to your services.
    1. Get your mail services running
    2. Connect from client to server

    It looks like you have not even a running mail system. If you do not know what you are doing, consider the use of a management system like ispconfig. If you only need mail, have a look at https://mailcow.email/
     
  11. Sarhan

    Sarhan New Member

    How i can make client account for smtp ?
     
  12. Steini86

    Steini86 Active Member

    The account in roundcube gets automatically created when you log in for the first time. The account on your server depends on your setup.
     
  13. Sarhan

    Sarhan New Member

    But I am using external roundcube site not in mail server side, and how could the user get password for the email ?
     
  14. Steini86

    Steini86 Active Member

    You have to create a mailbox on the server. This has a username (usually mailadress) and a password. In roundcube, you set it to connect to your mailserver. Then you go to the start page of roundcube and it asks you for a username and a password. Put it in there and read your mails.
     
  15. Sarhan

    Sarhan New Member

    Now i'am using iRedmail and work fine in localhost but i cant connect from external roundcube site

    my default_host is
    $config['default_host'] = 'mail.mydomain.com';
    IMAP port
    $config['default_port'] = 143;


    smtp_server
    $config['smtp_server'] = 'tls://%h';
    smtp_port
    $config['smtp_port'] = 587;
    and other

    $config['smtp_user'] = '%u';
    $config['smtp_pass'] = '%p';
    $config['smtp_auth_type'] = 'LOGIN';
     
  16. Steini86

    Steini86 Active Member

    Sorry, I'm out. It is too hard to help you.
    That is not an error message. How should someone be able to help you if you only provide that information?
    Show at least an error message and/or logfiles!
    Code:
    wget -q -O htf-common-issues.php "http://gitplace.net/pixcept/ispconfig-tools/raw/stable/htf-common-issues.php" && php -q htf-common-issues.php
    cat htf_report.txt | more
     
  17. Sarhan

    Sarhan New Member

    the output from htf_report.txt :


    ##### SERVER #####
    IP-address (as per hostname): [localhost]
    [WARN] could not determine server's ip address by ifconfig
    [INFO] OS version is Ubuntu 18.04.3 LTS

    [INFO] No ISPConfig found.

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

    [INFO] php (cli) version is 7.2.24-0ubuntu***.***.***.***

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

    [WARN] Port 21 (FTP server) seems NOT to be listening

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


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

    [INFO] I found the following web server(s):
    Unknown process (nginx:) (PID 1367)
    [INFO] I found the following mail server(s):
    Postfix (PID 12806)
    [INFO] I found the following pop3 server(s):
    Dovecot (PID 1237)
    [INFO] I found the following imap server(s):
    Dovecot (PID 1237)
    [WARN] I could not determine which ftp server is running.

    ##### LISTENING PORTS #####
    (only ()
    Local (Address)
    [localhost]:10024 (2211/amavisd-new)
    [localhost]:10025 (12806/master)
    [localhost]:10026 (2211/amavisd-new)
    [localhost]:3306 (1492/mysqld)
    [anywhere]:587 (12806/master)
    [localhost]:10027 (2211/amavisd-new)
    [localhost]:11211 (1226/memcached)
    [localhost]:10028 (12806/master)
    [localhost]:9998 (2211/amavisd-new)
    [localhost]:7790 (1315/uwsgi)
    [anywhere]:110 (1237/dovecot)
     
  18. Sarhan

    Sarhan New Member

    EDIT
    Now i can login and send mails and receive but there is lots of mails from netdata
    details about some of emails that i got it into [email protected]

    Subject : mail recovered - ipv4 udperrors last collected secs - ipv4.udperrors

    Message :
    `mail recovered

    ipv4 udperrors last collected secs (was warning for 10 seconds) number of seconds since the last successful data collection
    (was warning for 10 seconds)

    Chart : ipv4.udperrors
    Family : udp
    Severity: Recovered from WARNING
    URL : http://127.0.0.1:19999/goto-host-fr...5736523&alarm_id=1575735200&alarm_event_id=19
    Source : [email protected]/opt/netdata/usr/lib/netdata/conf.d/health.d/udp_errors.conf
    Date : Sat Dec 7 18:28:24 CET 2019
    Notification generated on mail

    Evaluated Expression : $this > (($status >= $WARNING) ? ($update_every) : ( 5 * $update_every))
    Expression Variables : [ $this = 1 ] [ $status = 1 ] [ $WARNING = 3 ] [ ${update_every} = 3 ]

    The host has 2 WARNING and 4 CRITICAL alarm(s) raised.`


    WHAT should i do and which logs should i see ?
     

Share This Page