Postfix and mail problems in multiserver setup

Discussion in 'Installation/Configuration' started by xrhstos, Dec 28, 2014.

  1. xrhstos

    xrhstos New Member

    Greetings,

    We bought a nice server and I decided to follow the tutorial here. Awesome everything worked until I decided to sent an email. Everything worked , reseller creation, client creation, website, shell accounts, ftp accounts, email accounts. But I had a huge problem which now got bigger .

    When I create an email domain and an email account the job is not done and that I can see it through
    Code:
    ls /var/vmail mailfilters
    . I have checked the connectivity everything is ok . Master server monitors all the other servers, but no job is done when comes to account creation.
    OS Debian 7
    ISPConfig latest stable 3.0.5
    Code:
    root@mail:~#cat htf_report.txt 
    
    ##### SERVER #####
    IP-address (as per hostname): ***.***.***.***
    [WARN] could not determine server's ip address by ifconfig
    [INFO] ISPConfig is installed.
    
    ##### ISPCONFIG #####
    ISPConfig version is 3.0.5.4p5
    
    
    ##### VERSION CHECK #####
    
    [INFO] php (cli) version is 5.4.35-0+deb7u2
    
    ##### PORT CHECK #####
    
    [WARN] Port 8080 (ISPConfig) seems NOT to be listening
    [WARN] Port 8081 (ISPConfig Apps) seems NOT to be listening
    [WARN] Port 80 (Webserver) seems NOT to be listening
    [WARN] Port 443 (Webserver SSL) seems NOT to be listening
    [WARN] Port 21 (FTP server) seems NOT to be listening
    
    ##### MAIL SERVER CHECK #####
    
    
    ##### RUNNING SERVER PROCESSES #####
    
    [WARN] I could not determine which web server is running.
    [INFO] I found the following mail server(s):
    	Postfix (PID 32558)
    [INFO] I found the following pop3 server(s):
    	Dovecot (PID 1148)
    [INFO] I found the following imap server(s):
    	Dovecot (PID 1148)
    [WARN] I could not determine which ftp server is running.
    
    ##### LISTENING PORTS #####
    (only		()
    Local		(Address)
    [anywhere]:143		(1148/dovecot)
    [anywhere]:10000		(30537/perl)
    [anywhere]:465		(32558/master)
    [anywhere]:22		(1561/sshd)
    [anywhere]:25		(32558/master)
    [anywhere]:993		(1148/dovecot)
    [anywhere]:995		(1148/dovecot)
    [localhost]:10024		(1129/amavisd-new)
    [localhost]:10025		(32558/master)
    [localhost]:3306		(31777/mysqld)
    [anywhere]:587		(32558/master)
    [anywhere]:110		(1148/dovecot)
    [localhost]43		(1148/dovecot)
    *:*:*:*::*:465		(32558/master)
    *:*:*:*::*:22		(1561/sshd)
    *:*:*:*::*:25		(32558/master)
    *:*:*:*::*:993		(1148/dovecot)
    *:*:*:*::*:995		(1148/dovecot)
    *:*:*:*::*:587		(32558/master)
    [localhost]10		(1148/dovecot)
    
    
    
    
    ##### IPTABLES #####
    Chain INPUT (policy ACCEPT)
    target     prot opt source               destination         
    fail2ban-dovecot-pop3imap  tcp  --  [anywhere]/0            [anywhere]/0            multiport dports 110,995,143,993
    fail2ban-ssh-ddos  tcp  --  [anywhere]/0            [anywhere]/0            multiport dports 22
    fail2ban-ssh  tcp  --  [anywhere]/0            [anywhere]/0            multiport dports 22
    
    Chain FORWARD (policy ACCEPT)
    target     prot opt source               destination         
    
    Chain OUTPUT (policy ACCEPT)
    target     prot opt source               destination         
    
    Chain fail2ban-dovecot-pop3imap (1 references)
    target     prot opt source               destination         
    RETURN     all  --  [anywhere]/0            [anywhere]/0           
    
    Chain fail2ban-ssh (1 references)
    target     prot opt source               destination         
    RETURN     all  --  [anywhere]/0            [anywhere]/0           
    
    Chain fail2ban-ssh-ddos (1 references)
    target     prot opt source               destination         
    RETURN     all  --  [anywhere]/0            [anywhere]/0     
    Code:
    root@web:~# cat htf_report.txt 
    
    ##### SERVER #####
    IP-address (as per hostname): ***.***.***.***
    [WARN] could not determine server's ip address by ifconfig
    [INFO] ISPConfig is installed.
    
    ##### ISPCONFIG #####
    ISPConfig version is 3.0.5.4p5
    
    
    ##### VERSION CHECK #####
    
    [INFO] php (cli) version is 5.4.35-0+deb7u2
    [INFO] php-cgi (used for cgi php in default vhost!) is version 5.4.35-0+deb7u2
    
    ##### PORT CHECK #####
    
    [WARN] Port 8080 (ISPConfig) seems NOT to be listening
    [WARN] Port 143 (IMAP server) seems NOT to be listening
    [WARN] Port 993 (IMAP server SSL) seems NOT to be listening
    [WARN] Port 110 (POP3 server) seems NOT to be listening
    [WARN] Port 995 (POP3 server SSL) seems NOT to be listening
    [WARN] Port 465 (SMTP server SSL) seems NOT to be listening
    
    ##### MAIL SERVER CHECK #####
    
    [WARN] I found no "smtp" entry in your postfix master.cf
    [WARN] I found no "submission" entry in your postfix master.cf
    [INFO] this is not critical, but if you want to offer port 587 for smtp connections you have to enable this.
    [WARN] I found no "smtps" entry in your postfix master.cf
    [INFO] this is not critical, but if you want to offer SSL for smtp (not TLS) connections you have to enable this.
    
    ##### RUNNING SERVER PROCESSES #####
    
    [INFO] I found the following web server(s):
    	Apache 2 (PID 29532)
    [INFO] I found the following mail server(s):
    	Exim (PID 6468)
    [WARN] I could not determine which pop3 server is running.
    [WARN] I could not determine which imap server is running.
    [INFO] I found the following ftp server(s):
    	PureFTP (PID 32391)
    
    ##### LISTENING PORTS #####
    (only		()
    Local		(Address)
    [localhost]:25		(6468/exim4)
    [anywhere]:443		(29532/apache2)
    [anywhere]:48550		(29532/apache2)
    [anywhere]:3306		(32112/mysqld)
    [localhost]:11211		(10159/memcached)
    [anywhere]:80		(29532/apache2)
    [anywhere]:10000		(22466/perl)
    [anywhere]:8081		(29532/apache2)
    [anywhere]:21		(32391/pure-ftpd)
    [anywhere]:22		(22860/sshd)
    *:*:*:*::*:25		(6468/exim4)
    *:*:*:*::*:21		(32391/pure-ftpd)
    *:*:*:*::*:22		(22860/sshd)
    ##### IPTABLES #####
    Chain INPUT (policy ACCEPT)
    target     prot opt source               destination         
    
    Chain FORWARD (policy ACCEPT)
    target     prot opt source               destination         
    
    Chain OUTPUT (policy ACCEPT)
    target     prot opt source               destination         
    I noticed that the files dovecot-sql.conf and
    Code:
    root@mail:/etc/postfix# cat mysql-*.cf
    have the same password . So I am wandering for starters how I can solve this problem.

    I have tried.
    1)Reinstall ispconfig *3 times
    2)Running the /usr/local/ispconfig/....server.sh
    3)Resync through the master server
    4)Reinstalling the software in vm (Real pain)

    Can anyone plz help me? I wish the problem with mail sending is resolved and I wont ask more help :(. Thank you very much in advance , Chris
     
    Last edited: Dec 28, 2014
  2. xrhstos

    xrhstos New Member

    Since I couldn't find a solution , I found several hours to make the setup again. Everything works perfectly , but I can send emails using as smtp the ptr for the domain and not the virtual domain .
    Code:
    [email protected]:~# cat htf_report.txt | more
    ##### SERVER #####
    IP-address (as per hostname): ***.***.***.***
    [WARN] could not determine server's ip address by ifconfig
    [INFO] ISPConfig is installed.
    ##### ISPCONFIG #####
    ISPConfig version is 3.0.5.4p5
    ##### VERSION CHECK #####
    [INFO] php (cli) version is 5.4.35-0+deb7u2
    ##### PORT CHECK #####
    [WARN] Port 8080 (ISPConfig) seems NOT to be listening
    [WARN] Port 8081 (ISPConfig Apps) seems NOT to be listening
    [WARN] Port 80 (Webserver) seems NOT to be listening
    [WARN] Port 443 (Webserver SSL) seems NOT to be listening
    [WARN] Port 21 (FTP server) seems NOT to be listening
    ##### MAIL SERVER CHECK #####
    ##### RUNNING SERVER PROCESSES #####
    [WARN] I could not determine which web server is running.
    [INFO] I found the following mail server(s):
        Postfix (PID 28890)
    [INFO] I found the following pop3 server(s):
        Dovecot (PID 30045)
    [INFO] I found the following imap server(s):
        Dovecot (PID 15922)
    [WARN] I could not determine which ftp server is running.
    ##### LISTENING PORTS #####
    (only        ()
    Local        (Address)
    [anywhere]:25        (28890/master)
    [anywhere]:993        (15922/imap-login)
    [anywhere]:995        (30045/dovecot)
    [localhost]:10024        (28990/amavisd-new)
    [localhost]:10025        (28890/master)
    [localhost]:3306        (28531/mysqld)
    [anywhere]:587        (28890/master)
    [anywhere]:110        (30045/dovecot)
    [anywhere]:143        (15922/imap-login)
    [anywhere]:10000        (31010/perl)
    [anywhere]:465        (28890/master)
    [anywhere]:22        (1561/sshd)
    *:*:*:*::*:25        (28890/master)
    *:*:*:*::*:993        (15922/imap-login)
    *:*:*:*::*:995        (30045/dovecot)
    *:*:*:*::*:587        (28890/master)
    [localhost]10        (30045/dovecot)
    [localhost]43        (15922/imap-login)
    *:*:*:*::*:465        (28890/master)
    *:*:*:*::*:22        (1561/sshd)
    ##### IPTABLES #####
    Chain INPUT (policy ACCEPT)
    target     prot opt source               destination        
    fail2ban-dovecot-pop3imap  tcp  --  [anywhere]/0            [anywhere]/0            multiport dports 110,995,143,993
    fail2ban-ssh-ddos  tcp  --  [anywhere]/0            [anywhere]/0            multiport dports 22
    fail2ban-ssh  tcp  --  [anywhere]/0            [anywhere]/0            multiport dports 22
    Chain FORWARD (policy ACCEPT)
    target     prot opt source               destination        
    Chain OUTPUT (policy ACCEPT)
    target     prot opt source               destination        
    Chain fail2ban-dovecot-pop3imap (1 references)
    target     prot opt source               destination        
    RETURN     all  --  [anywhere]/0            [anywhere]/0          
    Chain fail2ban-ssh (1 references)
    target     prot opt source               destination        
    RETURN     all  --  [anywhere]/0            [anywhere]/0          
    Chain fail2ban-ssh-ddos (1 references)
    target     prot opt source               destination        
    RETURN     all  --  [anywhere]/0            [anywhere]/0    
    
    Code:
    master.cf
    smtp      inet  n       -       -       -       -       smtpd
    #smtp      inet  n       -       -       -       1       postscreen
    #smtpd     pass  -       -       -       -       -       smtpd
    #dnsblog   unix  -       -       -       -       0       dnsblog
    #tlsproxy  unix  -       -       -       -       0       tlsproxy
    submission inet n       -       -       -       -       smtpd
      -o syslog_name=postfix/submission
      -o smtpd_tls_security_level=encrypt
      -o smtpd_sasl_auth_enable=yes
      -o smtpd_client_restrictions=permit_sasl_authenticated,reject
    #  -o milter_macro_daemon_name=ORIGINATING
    smtps     inet  n       -       -       -       -       smtpd
      -o syslog_name=postfix/smtps
      -o smtpd_tls_wrappermode=yes
      -o smtpd_sasl_auth_enable=yes
      -o smtpd_client_restrictions=permit_sasl_authenticated,reject
    #  -o milter_macro_daemon_name=ORIGINATING
    #628       inet  n       -       -       -       -       qmqpd
    pickup    fifo  n       -       -       60      1       pickup
    cleanup   unix  n       -       -       -       0       cleanup
    qmgr      fifo  n       -       n       300     1       qmgr
    #qmgr     fifo  n       -       n       300     1       oqmgr
    tlsmgr    unix  -       -       -       1000?   1       tlsmgr
    rewrite   unix  -       -       -       -       -       trivial-rewrite
    bounce    unix  -       -       -       -       0       bounce
    defer     unix  -       -       -       -       0       bounce
    trace     unix  -       -       -       -       0       bounce
    verify    unix  -       -       -       -       1       verify
    flush     unix  n       -       -       1000?   0       flush
    proxymap  unix  -       -       n       -       -       proxymap
    proxywrite unix -       -       n       -       1       proxymap
    smtp      unix  -       -       -       -       -       smtp
    relay     unix  -       -       -       -       -       smtp
    #       -o smtp_helo_timeout=5 -o smtp_connect_timeout=5
    showq     unix  n       -       -       -       -       showq
    error     unix  -       -       -       -       -       error
    retry     unix  -       -       -       -       -       error
    discard   unix  -       -       -       -       -       discard
    local     unix  -       n       n       -       -       local
    virtual   unix  -       n       n       -       -       virtual
    lmtp      unix  -       -       -       -       -       lmtp
    anvil     unix  -       -       -       -       1       anvil
    scache    unix  -       -       -       -       1       scache
    maildrop  unix  -       n       n       -       -       pipe
      flags=DRhu user=vmail argv=/usr/bin/maildrop -d vmail ${extension} ${recipient} ${user} ${nexthop} ${sender}
    #
    uucp      unix  -       n       n       -       -       pipe
      flags=Fqhu user=uucp argv=uux -r -n -z -a$sender - $nexthop!rmail ($recipient)
    #
    # Other external delivery methods.
    #
    ifmail    unix  -       n       n       -       -       pipe
      flags=F user=ftn argv=/usr/lib/ifmail/ifmail -r $nexthop ($recipient)
    bsmtp     unix  -       n       n       -       -       pipe
      flags=Fq. user=bsmtp argv=/usr/lib/bsmtp/bsmtp -t$nexthop -f$sender $recipient
    scalemail-backend unix    -    n    n    -    2    pipe
      flags=R user=scalemail argv=/usr/lib/scalemail/bin/scalemail-store ${nexthop} ${user} ${extension}
    mailman   unix  -       n       n       -       -       pipe
      flags=FR user=list argv=/usr/lib/mailman/bin/postfix-to-mailman.py
      ${nexthop} ${user}
    dovecot   unix  -       n       n       -       -       pipe
      flags=DRhu user=vmail:vmail argv=/usr/lib/dovecot/deliver -f ${sender} -d ${user}@${nexthop}
    amavis unix - - - - 2 smtp
            -o smtp_data_done_timeout=1200
            -o smtp_send_xforward_command=yes
    127.0.0.1:10025 inet n - - - - smtpd
            -o content_filter=
            -o local_recipient_maps=
            -o relay_recipient_maps=
            -o smtpd_restriction_classes=
            -o smtpd_client_restrictions=
            -o smtpd_helo_restrictions=
            -o smtpd_sender_restrictions=
            -o smtpd_recipient_restrictions=permit_mynetworks,reject
            -o mynetworks=127.0.0.0/8
            -o strict_rfc821_envelopes=yes
            -o receive_override_options=no_unknown_recipient_checks,no_header_body_checks
     
  3. xrhstos

    xrhstos New Member

    Code:
    /etc/postfix/main.cf
    #myorigin = /etc/mailname
    smtpd_banner = $myhostname ESMTP $mail_name (Debian/GNU)
    biff = no
    # appending .domain is the MUA's job.
    append_dot_mydomain = no
    # Uncomment the next line to generate "delayed mail" warnings
    #delay_warning_time = 4h
    readme_directory = /usr/share/doc/postfix
    # TLS parameters
    smtpd_tls_cert_file = /etc/postfix/smtpd.cert
    smtpd_tls_key_file = /etc/postfix/smtpd.key
    smtpd_use_tls = yes
    smtpd_tls_session_cache_database = btree:${data_directory}/smtpd_scache
    smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache
    # See /usr/share/doc/postfix/TLS_README.gz in the postfix-doc package for
    # information on enabling SSL in the smtp client.
    myhostname = mail.example.eu
    alias_maps = hash:/etc/aliases, hash:/var/lib/mailman/data/aliases
    alias_database = hash:/etc/aliases, hash:/var/lib/mailman/data/aliases
    myorigin = /etc/mailname
    mydestination = mail.example.eu, localhost, localhost.localdomain
    relayhost = 
    mynetworks = 127.0.0.0/8 [::1]/128
    mailbox_size_limit = 0
    recipient_delimiter = +
    inet_interfaces = all
    html_directory = /usr/share/doc/postfix/html
    virtual_alias_domains = 
    virtual_alias_maps = hash:/var/lib/mailman/data/virtual-mailman, proxy:mysql:/etc/postfix/mysql-virtual_forwardings.cf, proxy:mysql:/etc/postfix/mysql-virtual_email2email.cf
    virtual_mailbox_domains = proxy:mysql:/etc/postfix/mysql-virtual_domains.cf
    virtual_mailbox_maps = proxy:mysql:/etc/postfix/mysql-virtual_mailboxes.cf
    virtual_mailbox_base = /var/vmail
    virtual_uid_maps = static:5000
    virtual_gid_maps = static:5000
    inet_protocols = all
    smtpd_sasl_auth_enable = yes
    broken_sasl_auth_clients = yes
    smtpd_sasl_authenticated_header = yes
    smtpd_recipient_restrictions = permit_mynetworks, permit_sasl_authenticated, reject_unauth_destination, check_recipient_access mysql:/etc/postfix/mysql-virtual_recipient.cf
    smtpd_tls_security_level = may
    transport_maps = hash:/var/lib/mailman/data/transport-mailman, proxy:mysql:/etc/postfix/mysql-virtual_transports.cf
    relay_domains = mysql:/etc/postfix/mysql-virtual_relaydomains.cf
    relay_recipient_maps = mysql:/etc/postfix/mysql-virtual_relayrecipientmaps.cf
    proxy_read_maps = $local_recipient_maps $mydestination $virtual_alias_maps $virtual_alias_domains $virtual_mailbox_maps $virtual_mailbox_domains $relay_recipient_maps $relay_domains $canonical_maps $sender_canonical_maps $recipient_canonical_maps $relocated_maps $transport_maps $mynetworks
    smtpd_sender_restrictions = check_sender_access mysql:/etc/postfix/mysql-virtual_sender.cf
    smtpd_client_restrictions = check_client_access mysql:/etc/postfix/mysql-virtual_client.cf
    smtpd_client_message_rate_limit = 100
    maildrop_destination_concurrency_limit = 1
    maildrop_destination_recipient_limit = 1
    virtual_transport = dovecot
    header_checks = regexp:/etc/postfix/header_checks
    mime_header_checks = regexp:/etc/postfix/mime_header_checks
    nested_header_checks = regexp:/etc/postfix/nested_header_checks
    body_checks = regexp:/etc/postfix/body_checks
    owner_request_special = no
    smtp_tls_security_level = may
    smtpd_tls_mandatory_protocols = !SSLv2, !SSLv3
    smtpd_tls_protocols = !SSLv2,!SSLv3
    smtp_tls_protocols = !SSLv2,!SSLv3
    dovecot_destination_recipient_limit = 1
    smtpd_sasl_type = dovecot
    smtpd_sasl_path = private/auth
    content_filter = amavis:[127.0.0.1]:10024
    receive_override_options = no_address_mappings
    message_size_limit = 0
     
  4. xrhstos

    xrhstos New Member

    Code:
    [email protected]:~$ cat htf_report.txt | more
    ##### SERVER #####
    IP-address (as per hostname): ***.***.***.***
    [WARN] could not determine server's ip address by ifconfig
    [INFO] ISPConfig is installed.
    [WARN] /usr/local/ispconfig/server/lib/config.inc.php is missing.
    ##### VERSION CHECK #####
    [INFO] php (cli) version is 5.4.35-0+deb7u2
    [INFO] php-cgi (used for cgi php in default vhost!) is version 5.4.35-0+deb7u2
    ##### PORT CHECK #####
    [WARN] Port 8080 (ISPConfig) seems NOT to be listening
    [WARN] Port 143 (IMAP server) seems NOT to be listening
    [WARN] Port 993 (IMAP server SSL) seems NOT to be listening
    [WARN] Port 110 (POP3 server) seems NOT to be listening
    [WARN] Port 995 (POP3 server SSL) seems NOT to be listening
    [WARN] Port 465 (SMTP server SSL) seems NOT to be listening
    ##### MAIL SERVER CHECK #####
    [WARN] I found no "smtp" entry in your postfix master.cf
    [WARN] I found no "submission" entry in your postfix master.cf
    [INFO] this is not critical, but if you want to offer port 587 for smtp connections you have to enable this.
    [WARN] I found no "smtps" entry in your postfix master.cf
    [INFO] this is not critical, but if you want to offer SSL for smtp (not TLS) connections you have to enable this.
    ##### 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]:80        (-)
    [anywhere]:10000        (-)
    [anywhere]:8081        (-)
    [anywhere]:21        (-)
    [anywhere]:22        (-)
    [localhost]:25        (-)
    [anywhere]:443        (-)
    [anywhere]:48550        (-)
    [anywhere]:3306        (-)
    [localhost]:11211        (-)
    *:*:*:*::*:21        (-)
    *:*:*:*::*:22        (-)
    *:*:*:*::*:25        (-)
    ##### IPTABLES #####
    
    Mail server is at mail.example.eu and web(server) master server is at web.example.eu
    DNS of master domain which I have the PTR (Hetzner)
    Code:
    $TTL 86400
    @   IN SOA ns1.first-ns.de. postmaster.robot.first-ns.de. (
        2014122801   ; serial
        14400        ; refresh
        1800         ; retry
        604800       ; expire
        86400 )      ; minimum
    @                        IN NS      robotns3.second-ns.com.
    @                        IN NS      robotns2.second-ns.de.
    @                        IN NS      ns1.first-ns.de.
    
    @                        IN A       2.2.2.19
    localhost                IN A       127.0.0.1
    mail                     IN A       1.1.1.253
    ns1                      IN A       1.1.1.251
    ns2                      IN A       1.1.1.252
    web                      IN A       1.1.128.250
    www                      IN A       2.2.2.19
    ftp                      IN CNAME   www
    imap                     IN CNAME   mail
    loopback                 IN CNAME   localhost
    pop                      IN CNAME   mail
    relay                    IN CNAME   mail
    smtp                     IN CNAME   mail
    @                        IN MX 10   mail
    
    DNS Zone of virtual Domain
    Code:
     
    $TTL 86400
    @   IN SOA ns1.first-ns.de. postmaster.robot.first-ns.de. (
        2014122802   ; serial
        14400        ; refresh
        1800         ; retry
        604800       ; expire
        86400 )      ; minimum
    @                        IN NS      ns1.first-ns.de.
    @                        IN NS      robotns2.second-ns.de.
    @                        IN NS      robotns3.second-ns.com.
    @                        IN A       1.1.1.250
    localhost                IN A       127.0.0.1
    mail                     IN A       1.1.1.253
    www                      IN A       1.1.1.250
    ftp                      IN CNAME   www
    imap                     IN CNAME   mail
    loopback                 IN CNAME   localhost
    pop                      IN CNAME   mail
    relay                    IN CNAME   mail
    smtp                     IN CNAME   mail
    @                        IN MX 10   mail
    
    Here is the output of a virtual domain user
    Code:
    doveadm user [email protected]
    userdb: [email protected]
      home      : /var/vmail/virtualdomain.com/info
      mail      : maildir:/var/vmail/virtualdomain.com/info/Maildir
      uid       : 5000
      gid       : 5000
      quota_rule: *:storage=209715200B
      sieve     : /var/vmail/virtualdomain.com/.sieve
    
    Code:
    ls /var/vmail/
    virtualdomain.com  mailfilters
    
    Please help me , i am really exhausted with this thing i cannot think anything else :(
     
  5. till

    till Super Moderator Staff Member ISPConfig Developer

    Please see debug instructions at the end of this post:

    https://www.howtoforge.com/community/threads/please-read-before-posting.58408/

    1) Enable loglevel debug for the salve mail server in ispconfig master controlpanel.
    2) Disable the server.sh cronjob on the mail server slave.
    3) Create a new mailbox in ispconfig.
    4) run the server.sh script on the slave server and post the output.

    And one question: Is /var/vmail a symlink?
     
  6. xrhstos

    xrhstos New Member

    Hello , thank you for the reply i managed to minimize the problem I just did the following change at main.cf
    from
    Code:
    mydestination = mail.example.eu, localhost, localhost.localdomain
    to
    Code:
    mydestination = $myhostname, localhost.$mydomain, localhost
    I can send now mails from the virtual domains to any email!!!
    My problem is now at roundcube i tried
    Code:
    //$rcmail_config['default_host'] = 'mail.example.eu';
    
    $rcmail_config['default_host'] = 'mail.%s';
    but it does not work any suggestions?
    I dont care for the users to change their mail passwords via roundcube the only thing I want is to compose and read emails. Thank you very much in advance!
     
  7. till

    till Super Moderator Staff Member ISPConfig Developer

    Did you install roundcube on the mail or webserver?
     
  8. xrhstos

    xrhstos New Member

    On the webserver
     
  9. till

    till Super Moderator Staff Member ISPConfig Developer

    Then the defaut host should be set to:

    $rcmail_config['default_host'] = 'mail.example.eu';

    when mail.example.eu is the hostame of the mailserver. You should add the IP of the webserver under mynetworks in postfix main.cf file in the mailserver and restart postfix.
     
  10. xrhstos

    xrhstos New Member

    That did not work, roundcube says message send ok but I didnt receive it
    Code:
    root@mail:/etc# cat postfix/main.cf | grep mynet
    mynetworks = 127.0.0.0/8 [::1]/128, 1.1.1.250[code]
    [code]$rcmail_config['default_host'] = 'mail.example.eu';
    I restarted postfix and apache two times !!
    /var/log/mail.log does not even show that it sends the email!
     
  11. till

    till Super Moderator Staff Member ISPConfig Developer

    Neither in the mail.log of the web server nor of the mail server? When you run:

    ping -c 3 mail.example.eu

    on the web server, does it show the correct ip of the slave?
     
  12. xrhstos

    xrhstos New Member

    Yes it does ... on both ways

    Update : I tried leaving the host blank on the roundcube config so the user can feel in the mail server but it does not work . It seems as a roundcube issue since I can send emails through a mail client .
     
  13. florian030

    florian030 ISPConfig Developer ISPConfig Developer

    AFAIK default_host is the imap-server for login and smtp_server is used for sending mails.
     

Share This Page