Do I need squirrelmail for Outlook to work?

Discussion in 'Installation/Configuration' started by IrishDoc, Nov 12, 2012.

  1. IrishDoc

    IrishDoc New Member

    I had to disable squirrelmail in-order to get access to isp3 in browser. Do I need it to be enabled for Outlook to work? If so can you give me some ideas where to look for the problem? If not, then I am having another issue as Outlook will not setup to receive or send emails.

    This is what I have without running squirrelmail
    [​IMG]
     
    Last edited: Nov 12, 2012
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    squirrelmail is not required to use email accounts with external mail clients like outlook or thudnerbird.

    Btw, you dont have to disable squirrelmail to use ispconfig mail. I guess you just used a wrong alias for squirrelmail, the correct alias is /webmail while the wriong alias would be /mail. Edit the squirremail configuration file and set the alis to /webmail as described in the perfect setup guides.
     
  3. IrishDoc

    IrishDoc New Member

    This is what I had setup before and I have now reinstated squirrelmail and it is working without problems with isp3. But I am still unable to ping smtp.kustomhosting.net, I am not sure what is wrong and I am also unable to access webmail.kustomhosting.net And now my domains are going directly back to squirrelmail again, I disabled it again.

    Code:
    Alias /squirrelmail /usr/share/squirrelmail
    Alias /webmail /usr/share/squirrelmail
    
    <Directory /usr/share/squirrelmail>
      Options FollowSymLinks
      <IfModule mod_php5.c>
        AddType application/x-httpd-php .php
        php_flag magic_quotes_gpc Off
        php_flag track_vars On
        php_admin_flag allow_url_fopen Off
        php_value include_path .
        php_admin_value upload_tmp_dir /var/lib/squirrelmail/tmp
        php_admin_value open_basedir /usr/share/squirrelmail:/etc/squirrelmail:/var/lib/squirrelmail:/etc/hostname:/etc/mailname:/var/spool/squirrelmail
        php_flag register_globals off
      </IfModule>
      <IfModule mod_dir.c>
        DirectoryIndex index.php
      </IfModule>
    
      # access to configtest is limited by default to prevent information leak
      <Files configtest.php>
        order deny,allow
        deny from all
        allow from 127.0.0.1
      </Files>
    </Directory>
    
    # users will prefer a simple URL like http://webmail.example.com
    <VirtualHost 91.121.156.14:80>
      DocumentRoot /usr/share/squirrelmail
      ServerName webmail.kustomhosting.net
    </VirtualHost>
    
    # redirect to https when available (thanks [email protected])
    #
    #  Note: There are multiple ways to do this, and which one is suitable for
    #  your site's configuration depends. Consult the apache documentation if
    #  you're unsure, as this example might not work everywhere.
    #
    #<IfModule mod_rewrite.c>
    #  <IfModule mod_ssl.c>
    #    <Location /squirrelmail>
    #      RewriteEngine on
    #      RewriteCond %{HTTPS} !^on$ [NC]
    #      RewriteRule . https://%{HTTP_HOST}%{REQUEST_URI}  [L]
    #    </Location>
    #  </IfModule>
    #</IfModule>
    
     
    Last edited: Nov 13, 2012
  4. till

    till Super Moderator Staff Member ISPConfig Developer

    This is most likely adns problem and not related to email at all. Have you created dns A-Records for smtp.kustomhosting.net and webmail.kustomhosting.net that point to the IP address of your web server in the dns server that is authoritive for the zone kustomhosting.net

    The reason for that is that you mixed IP address based vhosts with wildcard vhosts in apache. If you create a IP based vhostlke the one that you created in the squirrelmail configuration file, then all other vhsost on your server have to be ip based to. So you have to select the IP address and not * in all sites that you create in ispconfig.
     
  5. IrishDoc

    IrishDoc New Member

    Is this correct

    [​IMG]
     
    Last edited: Nov 13, 2012
  6. till

    till Super Moderator Staff Member ISPConfig Developer

    This is correct for the smtp subdomain, but you dont have a webmail subdomain.
     
  7. IrishDoc

    IrishDoc New Member

    I am able to ping both the webmail and smtp addresses but cannot seem to get outlook send the test email. It is not able to login to the smtp outgoing mail server. Any ideas.
     
  8. till

    till Super Moderator Staff Member ISPConfig Developer

    Did you enable smtp-auth in outlook and do you use the smae username and password then for imap?

    Post the errors that you get in the mail.log.
     
  9. IrishDoc

    IrishDoc New Member

    This is the error and the setup
    Code:
    Send test e-mail message: Outlook cannot connect to your outgoing (SMTP) e-mail server. If you continue to receive this message, contact your server administrator or Internet service provider (ISP).
    [​IMG]
     
  10. falko

    falko Super Moderator Howtoforge Staff

    Make sure that Postfix is running and that no firewall is blocking port 25.
     
  11. IrishDoc

    IrishDoc New Member

    seems I am getting an error on postfix

    Code:
    root@ks359171:~# postfix status
    /usr/sbin/postconf: warning: /etc/postfix/master.cf: unused parameter: smtpd_bind_address=127.0.0.1
    postfix/postfix-script: the Postfix mail system is running: PID: 31900
    
    Not sure where to go from here.
     
  12. falko

    falko Super Moderator Howtoforge Staff

    That's just a warninig which you can ignore.

    Please also check if maybe your ISP is blocking port 25.
     
  13. IrishDoc

    IrishDoc New Member

    ISP isn't blocking 25 and namp shows it open

    Code:
    root@ks359171:~# nmap 91.121.156.14
    
    Starting Nmap 5.21 ( http://nmap.org ) at 2012-11-16 15:27 EST
    Nmap scan report for ks359171.kimsufi.com (91.121.156.14)
    Host is up (0.000027s latency).
    Not shown: 987 closed ports
    PORT     STATE SERVICE
    21/tcp   open  ftp
    22/tcp   open  ssh
    25/tcp   open  smtp
    53/tcp   open  domain
    80/tcp   open  http
    110/tcp  open  pop3
    143/tcp  open  imap
    443/tcp  open  https
    993/tcp  open  imaps
    995/tcp  open  pop3s
    3306/tcp open  mysql
    8080/tcp open  http-proxy
    8081/tcp open  blackice-icecap
    
    Nmap done: 1 IP address (1 host up) scanned in 0.15 seconds
    
    Just noticed port 25 isn't open in the isp3 firewall, does it need to be? If so which side, tcp or udp?
     
    Last edited: Nov 16, 2012
  14. falko

    falko Super Moderator Howtoforge Staff

    Yes. TCP.

    What's the output of
    Code:
    iptables -L
    ?
     
  15. IrishDoc

    IrishDoc New Member

    Code:
    # iptables -L
    Chain INPUT (policy DROP)
    target     prot opt source               destination
    DROP       tcp  --  anywhere             loopback/8
    ACCEPT     all  --  anywhere             anywhere             state RELATED,ESTABLISHED
    ACCEPT     all  --  anywhere             anywhere
    DROP       all  --  base-address.mcast.net/4  anywhere
    PUB_IN     all  --  anywhere             anywhere
    PUB_IN     all  --  anywhere             anywhere
    PUB_IN     all  --  anywhere             anywhere
    PUB_IN     all  --  anywhere             anywhere
    PUB_IN     all  --  anywhere             anywhere
    DROP       all  --  anywhere             anywhere
    
    Chain FORWARD (policy DROP)
    target     prot opt source               destination
    ACCEPT     all  --  anywhere             anywhere             state RELATED,ESTABLISHED
    DROP       all  --  anywhere             anywhere
    
    Chain OUTPUT (policy ACCEPT)
    target     prot opt source               destination
    PUB_OUT    all  --  anywhere             anywhere
    PUB_OUT    all  --  anywhere             anywhere
    PUB_OUT    all  --  anywhere             anywhere
    PUB_OUT    all  --  anywhere             anywhere
    PUB_OUT    all  --  anywhere             anywhere
    
    Chain INT_IN (0 references)
    target     prot opt source               destination
    ACCEPT     icmp --  anywhere             anywhere
    DROP       all  --  anywhere             anywhere
    
    Chain INT_OUT (0 references)
    target     prot opt source               destination
    ACCEPT     icmp --  anywhere             anywhere
    ACCEPT     all  --  anywhere             anywhere
    
    Chain PAROLE (12 references)
    target     prot opt source               destination
    ACCEPT     all  --  anywhere             anywhere
    
    Chain PUB_IN (5 references)
    target     prot opt source               destination
    ACCEPT     icmp --  anywhere             anywhere             icmp destination-unreachable
    ACCEPT     icmp --  anywhere             anywhere             icmp echo-reply
    ACCEPT     icmp --  anywhere             anywhere             icmp time-exceeded
    ACCEPT     icmp --  anywhere             anywhere             icmp echo-request
    PAROLE     tcp  --  anywhere             anywhere             tcp dpt:ftp
    PAROLE     tcp  --  anywhere             anywhere             tcp dpt:ssh
    PAROLE     tcp  --  anywhere             anywhere             tcp dpt:domain
    PAROLE     tcp  --  anywhere             anywhere             tcp dpt:http
    PAROLE     tcp  --  anywhere             anywhere             tcp dpt:pop3
    PAROLE     tcp  --  anywhere             anywhere             tcp dpt:imap2
    PAROLE     tcp  --  anywhere             anywhere             tcp dpt:https
    PAROLE     tcp  --  anywhere             anywhere             tcp dpt:imaps
    PAROLE     tcp  --  anywhere             anywhere             tcp dpt:pop3s
    PAROLE     tcp  --  anywhere             anywhere             tcp dpt:mysql
    PAROLE     tcp  --  anywhere             anywhere             tcp dpt:http-alt
    PAROLE     tcp  --  anywhere             anywhere             tcp dpt:tproxy
    ACCEPT     udp  --  anywhere             anywhere             udp dpt:domain
    ACCEPT     udp  --  anywhere             anywhere             udp dpt:mysql
    DROP       icmp --  anywhere             anywhere
    DROP       all  --  anywhere             anywhere
    
    Chain PUB_OUT (5 references)
    target     prot opt source               destination
    ACCEPT     all  --  anywhere             anywhere
    
    Chain fail2ban-dovecot-pop3imap (0 references)
    target     prot opt source               destination
    RETURN     all  --  anywhere             anywhere
    
    Chain fail2ban-pureftpd (0 references)
    target     prot opt source               destination
    RETURN     all  --  anywhere             anywhere
    
    Chain fail2ban-ssh (0 references)
    target     prot opt source               destination
    RETURN     all  --  anywhere             anywhere
    
    opened port 25 and got this error
    Code:
    Send test e-mail message: None of the authentication methods supported by this client are supported by your server.
    so I removed the authentication options and then recieved this one
    Code:
    Send test e-mail message: Cannot send the message. Verify the e-mail address in your account properties.  The server responded: 530 5.7.0 Must issue a STARTTLS command first
    I just set the authentication in the advanced tab to auto and the current error is this
    Code:
    Send test e-mail message:   The server responded: 554 5.7.1 <75-136-5-59.st
     
    Last edited: Nov 17, 2012
  16. falko

    falko Super Moderator Howtoforge Staff

    Are there any errors in your mail log (in the /var/log/ directory)?
     
  17. IrishDoc

    IrishDoc New Member

    Ok. I made some changes to postfix and finally got Outlook to setup without any errors buts when I send an email from another address to the one I setup in outlook and isp3 I get this error.

    Code:
    Delivery to the following recipient failed permanently:
    
         [email protected]
    
    Technical details of permanent failure: 
    Google tried to deliver your message, but it was rejected by the recipient domain. We recommend contacting the other email provider for further information about the cause of this error. The error that the other server returned was: 554 554 5.7.1 <mail-gg0-f170.google.com[209.85.161.170]>: Client host rejected: Access denied (state 13).
    
    
     
    Last edited: Nov 18, 2012
  18. falko

    falko Super Moderator Howtoforge Staff

    Does the MX record of kustomhosting.net point to the correct server?
     
  19. IrishDoc

    IrishDoc New Member

    I believe so. This is what I have
    [​IMG]
     
  20. falko

    falko Super Moderator Howtoforge Staff

    Technically this is correct, but why do you have three MX records that all point to the same server? One is enough.

    Does [email protected] exist on your server?
     

Share This Page