Squirrelmail not sending - Ispconfig 3

Discussion in 'Installation/Configuration' started by Gilera, Nov 7, 2013.

  1. Gilera

    Gilera New Member

    Squirrelmail not receiving from external - Ispconfig 3

    Greetings,

    First of all, Im not the brightest crayon when it comes to linux and everything is still a learning curve for me.

    Ive been Looking through the forums for solutions to this and cant seem to get my squirrelmail working correctly.

    Ive set up VPS WEbserver using ISPCONFIG 3, NGinx, Dovecot and Squirrelmail.

    I have Created the Email mailbox "[email protected]" and can login in to the webmail.

    I am able to send a message from the "[email protected]" to any external mail account (Gmail, Yahoo etc) and this works fine, I can also send and Recieve mails internally on this server, But if i try send a email to this address "[email protected]" from an external address, Say Gmail, Yahoo etc.. I dont not recieve anything and no bounce back errors.

    Any advice would be greatly appreciated.

    Thank you
     
    Last edited: Nov 7, 2013
  2. Croydon

    Croydon ISPConfig Developer ISPConfig Developer

    Please have a look in the mail.lo (/var/log/mail.log) what happens at the time the mail should arrive at the server. Maybe the sending server is blocked or there is a DNS error.
    Have you checked the MX - Record for your domain.tld is correct and points to your server?
     
  3. Gilera

    Gilera New Member

    Hi..Below is the last few minutes of the mail.log when i try to send to the email address.

    Code:
    Nov  7 19:40:07 vps postfix/smtpd[24112]: connect from localhost.localdomain[127.0.0.1]
    Nov  7 19:40:07 vps postfix/smtpd[24112]: 2673F1C22AE7: client=localhost.localdomain[127.0.0.1]
    Nov  7 19:40:07 vps postfix/cleanup[24106]: 2673F1C22AE7: message-id=<[email protected]>
    Nov  7 19:40:07 vps postfix/qmgr[7655]: 2673F1C22AE7: from=<[email protected]>, size=1161, nrcpt=1 (queue active)
    Nov  7 19:40:07 vps postfix/smtpd[24112]: disconnect from localhost.localdomain[127.0.0.1]
    Nov  7 19:40:07 vps postfix/local[24116]: 2673F1C22AE7: to=<[email protected]>, relay=local, delay=0, delays=0/0/0/0, dsn=2.0.0, status=sent (delivered to command: procmail -a "$EXTENSION")
    Nov  7 19:40:07 vps postfix/qmgr[7655]: 2673F1C22AE7: removed
    Nov  7 19:40:07 vps amavis[19630]: (19630-09) Passed CLEAN, <[email protected]> -> <[email protected]>, Message-ID: <[email protected]>, mail_id: u7Pcj2zl-RXP, Hits: 1.178, size: 691, queued_as: 2673F1C22AE7, 5367 ms
    Nov  7 19:40:07 vps postfix/smtp[24109]: C038B1C23DB7: to=<[email protected]>, orig_to=<root>, relay=127.0.0.1[127.0.0.1]:10024, delay=5.4, delays=0.01/0/0/5.4, dsn=2.0.0, status=sent (250 2.0.0 from MTA([127.0.0.1]:10025): 250 2.0.0 Ok: queued as 2673F1C22AE7)
    Nov  7 19:40:07 vps postfix/qmgr[7655]: C038B1C23DB7: removed
    Nov  7 19:41:54 vps postfix/smtps/smtpd[24207]: warning: database /var/lib/mailman/data/virtual-mailman.db is older than source file /var/lib/mailman/data/virtual-mailman
    Nov  7 19:41:54 vps postfix/smtps/smtpd[24207]: connect from bl2.moneybookers.com[91.208.28.6]
    Nov  7 19:45:01 vps postfix/smtps/smtpd[24268]: warning: database /var/lib/mailman/data/virtual-mailman.db is older than source file /var/lib/mailman/data/virtual-mailman
    Nov  7 19:45:01 vps dovecot: imap-login: Disconnected (no auth attempts): rip=::1, lip=::1, secured
    Nov  7 19:45:01 vps postfix/smtps/smtpd[24268]: warning: hostname localhost does not resolve to address ::1: No address associated with hostname
    Nov  7 19:45:01 vps postfix/smtps/smtpd[24268]: connect from unknown[::1]
    Nov  7 19:45:01 vps postfix/smtps/smtpd[24268]: SSL_accept error from unknown[::1]: lost connection
    Nov  7 19:45:01 vps postfix/smtps/smtpd[24268]: lost connection after CONNECT from unknown[::1]
    Nov  7 19:45:01 vps postfix/smtps/smtpd[24268]: disconnect from unknown[::1]
    Nov  7 19:45:01 vps dovecot: pop3-login: Disconnected (no auth attempts): rip=::1, lip=::1, secured
    Nov  7 19:45:36 vps dovecot: auth-worker: mysql(localhost): Connected to database dbispconfig
    Nov  7 19:45:36 vps dovecot: imap-login: Login: user=<[email protected]>, method=PLAIN, rip=::1, lip=::1, mpid=24298, secured
    Nov  7 19:45:36 vps dovecot: imap([email protected]): Disconnected: Logged out bytes=85/687
    Nov  7 19:46:54 vps postfix/smtps/smtpd[24207]: SSL_accept error from bl2.moneybookers.com[91.208.28.6]: lost connection
    Nov  7 19:46:54 vps postfix/smtps/smtpd[24207]: lost connection after CONNECT from bl2.moneybookers.com[91.208.28.6]
    Nov  7 19:46:54 vps postfix/smtps/smtpd[24207]: disconnect from bl2.moneybookers.com[91.208.28.6]
    Nov  7 19:47:15 vps postfix/smtps/smtpd[24207]: connect from mail-wg0-f53.google.com[74.125.82.53]
    Nov  7 19:47:25 vps postfix/smtps/smtpd[24316]: warning: database /var/lib/mailman/data/virtual-mailman.db is older than source file /var/lib/mailman/data/virtual-mailman
    Nov  7 19:47:25 vps postfix/smtps/smtpd[24316]: connect from mail-we0-f170.google.com[74.125.82.170]
    Nov  7 19:47:28 vps dovecot: auth-worker: mysql(localhost): Connected to database dbispconfig
    Nov  7 19:47:28 vps dovecot: imap-login: Login: user=<[email protected]>, method=PLAIN, rip=::1, lip=::1, mpid=24323, secured
    Nov  7 19:47:28 vps dovecot: imap([email protected]): Disconnected: Logged out bytes=85/687
    Nov  7 19:47:38 vps postfix/smtps/smtpd[24326]: warning: database /var/lib/mailman/data/virtual-mailman.db is older than source file /var/lib/mailman/data/virtual-mailman
    Nov  7 19:47:38 vps postfix/smtps/smtpd[24326]: connect from mail-wg0-f51.google.com[74.125.82.51]
    Nov  7 19:50:01 vps postfix/smtps/smtpd[24376]: warning: database /var/lib/mailman/data/virtual-mailman.db is older than source file /var/lib/mailman/data/virtual-mailman
    Nov  7 19:50:01 vps postfix/smtps/smtpd[24376]: warning: hostname localhost does not resolve to address ::1: No address associated with hostname
    Nov  7 19:50:01 vps dovecot: imap-login: Disconnected (no auth attempts): rip=::1, lip=::1, secured
    Nov  7 19:50:01 vps dovecot: pop3-login: Disconnected (no auth attempts): rip=::1, lip=::1, secured
    Nov  7 19:50:01 vps postfix/smtps/smtpd[24376]: connect from unknown[::1]
    
    Below is also the MX records that show, but not sure if they setup correctly, Think i may bee getting confused when to use the VPS name or domain name, or the mail server name i want..

    Code:
    ; <<>> DiG 9.8.1-P1 <<>> -t mx domain.tld
    ;; global options: +cmd
    ;; Got answer:
    ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 47893
    ;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 0
    
    ;; QUESTION SECTION:
    ;domain.tld.                 IN      MX
    
    ;; ANSWER SECTION:
    domain.tld.          300     IN      MX      10 pop3.domain.tld.
    
    ;; Query time: 52 msec
    ;; SERVER: 8.8.8.8#53(8.8.8.8)
    ;; WHEN: Thu Nov  7 19:54:19 2013
    ;; MSG SIZE  rcvd: 52
    I have changed the domain name in the logs to domain.tld here.

    Thanks again.

    Any help would be great
     
  4. Croydon

    Croydon ISPConfig Developer ISPConfig Developer

    Does pop3.domain.tld point to your server's ip?
     
  5. Gilera

    Gilera New Member

    If I ping Pop3.domain.tld it points to my VPS IP address, But also, If i enter it in the browser address bar it takes me to my domains landing page.

    On my ISPconfig DNS records. I have the DNS records as follows:

    MX Record -

    hostname as "domain.tld"
    Mailserver hostname as "pop3.domain.tld"
    Priority 10
    TTL 86400
    Active is checked

    A Record -

    hostname as "pop3"
    IP Address as VPS IP address
    TTL 86400
    Active is checked

    Hope this helps
     
  6. Croydon

    Croydon ISPConfig Developer ISPConfig Developer

    Can you send OUT mails both via smtp and smtps (ssl enabled)?
    It seems to me the external servers connect to ssl port and can't do the handshake correctly.
    Maybe your SSL configuration of the mailserver is broken...?
     
  7. Gilera

    Gilera New Member

    Ok Well things may get complicated here now for me, lol..

    Well im using the squirrelmail webmail, If i try use thunderbird to connect to the servers pop3.domain.tld and smtp.domain.tld i dont get any connection to the servers to set up the account thats also with trying different authentications and secure method.

    I can access the webmail, but only using http://x.x.x.x:8081/squirrelmail

    If i use
    https://x.x.x.x:8081/squirrelmail or http(or s)://domain.tld:8081/squirrelmail
    I dont get any page to load.

    I am also using Cloudflare for the NS records for the domain, So that may also complicate things a bit. Think maybe i should take off cloudflare and see if thats causing issues.?
     
  8. Croydon

    Croydon ISPConfig Developer ISPConfig Developer

    Hm... Could you please post the output of "lsof -i" and "iptables -L -n" ?

    This url is normally not ssl enabled, so that's "ok".
     
  9. Gilera

    Gilera New Member

    Ok, Well i Have removed Cloudflare completely and using my own Nameservers for the domain. which it resolves to now

    This has not helped with anything, but may make it easier.

    I notice if i disable imap option it wont let me log into the squirrelmail webmail.

    If anyone can think of anything to try, Unfortunately the site has been running a while and its quite busy, so dont want to have to reinstall the server and have downtime.

    Thanks
     
  10. Gilera

    Gilera New Member

    lsof -i

    Code:
    [email protected]:~# lsof -i
    COMMAND     PID     USER   FD   TYPE    DEVICE SIZE/OFF NODE NAME
    sshd        335     root    3u  IPv4 898859401      0t0  TCP *:ssh (LISTEN)
    sshd        335     root    4u  IPv6 898859403      0t0  TCP *:ssh (LISTEN)
    mysqld      485    mysql   10u  IPv4 898861170      0t0  TCP *:mysql (LISTEN)
    mysqld      485    mysql   32u  IPv4 919213825      0t0  TCP localhost.localdomain:mysql->localhost.localdomain:41393 (ESTABLISHED)
    mysqld      485    mysql  208u  IPv4 919242044      0t0  TCP localhost.localdomain:mysql->localhost.localdomain:43035 (ESTABLISHED)
    named       534     bind   20u  IPv6 898860322      0t0  TCP *:domain (LISTEN)
    named       534     bind   21u  IPv4 898860327      0t0  TCP localhost.localdomain:domain (LISTEN)
    named       534     bind   22u  IPv4 898860329      0t0  TCP 127.0.0.2:domain (LISTEN)
    named       534     bind   23u  IPv4 898860333      0t0  TCP vps.domain.tld:domain (LISTEN)
    named       534     bind   24u  IPv4 898860354      0t0  TCP localhost.localdomain:953 (LISTEN)
    named       534     bind   25u  IPv6 898860355      0t0  TCP localhost:953 (LISTEN)
    named       534     bind  512u  IPv6 898860315      0t0  UDP *:domain
    named       534     bind  513u  IPv4 898860325      0t0  UDP localhost.localdomain:domain
    named       534     bind  514u  IPv4 898860328      0t0  UDP 127.0.0.2:domain
    named       534     bind  515u  IPv4 898860330      0t0  UDP vps.domain.tld:domain
    php5-fpm   1261     root    8u  IPv4 898863670      0t0  TCP localhost.localdomain:9010 (LISTEN)
    php5-fpm   1261     root   11u  IPv4 898863675      0t0  TCP localhost.localdomain:9000 (LISTEN)
    php5-fpm   1262     web1    0u  IPv4 898863670      0t0  TCP localhost.localdomain:9010 (LISTEN)
    php5-fpm   1263     web1    0u  IPv4 898863670      0t0  TCP localhost.localdomain:9010 (LISTEN)
    php5-fpm   1268 www-data    0u  IPv4 898863675      0t0  TCP localhost.localdomain:9000 (LISTEN)
    php5-fpm   1269 www-data    0u  IPv4 898863675      0t0  TCP localhost.localdomain:9000 (LISTEN)
    php5-fpm   1271 www-data    0u  IPv4 898863675      0t0  TCP localhost.localdomain:9000 (LISTEN)
    php5-fpm   1272 www-data    0u  IPv4 898863675      0t0  TCP localhost.localdomain:9000 (LISTEN)
    pure-ftpd  1392     root    4u  IPv4 898864284      0t0  TCP *:ftp (LISTEN)
    pure-ftpd  1392     root    5u  IPv6 898864285      0t0  TCP *:ftp (LISTEN)
    ntpd       1737     root   16u  IPv4 898893410      0t0  UDP *:ntp
    ntpd       1737     root   17u  IPv6 898893411      0t0  UDP *:ntp
    ntpd       1737     root   18u  IPv4 898893417      0t0  UDP localhost.localdomain:ntp
    ntpd       1737     root   19u  IPv4 898893418      0t0  UDP 127.0.0.2:ntp
    ntpd       1737     root   20u  IPv4 898893419      0t0  UDP vps.domain.tld:ntp
    ntpd       1737     root   21u  IPv6 898893422      0t0  UDP localhost:ntp
    nginx      7506     root    8u  IPv4 904048622      0t0  TCP *:http (LISTEN)
    nginx      7506     root    9u  IPv4 904048623      0t0  TCP *:tproxy (LISTEN)
    nginx      7506     root   10u  IPv4 904048624      0t0  TCP *:http-alt (LISTEN)
    nginx      7507 www-data    8u  IPv4 904048622      0t0  TCP *:http (LISTEN)
    nginx      7507 www-data    9u  IPv4 904048623      0t0  TCP *:tproxy (LISTEN)
    nginx      7507 www-data   10u  IPv4 904048624      0t0  TCP *:http-alt (LISTEN)
    nginx      7508 www-data    8u  IPv4 904048622      0t0  TCP *:http (LISTEN)
    nginx      7508 www-data    9u  IPv4 904048623      0t0  TCP *:tproxy (LISTEN)
    nginx      7508 www-data   10u  IPv4 904048624      0t0  TCP *:http-alt (LISTEN)
    nginx      7509 www-data    8u  IPv4 904048622      0t0  TCP *:http (LISTEN)
    nginx      7509 www-data    9u  IPv4 904048623      0t0  TCP *:tproxy (LISTEN)
    nginx      7509 www-data   10u  IPv4 904048624      0t0  TCP *:http-alt (LISTEN)
    nginx      7510 www-data    8u  IPv4 904048622      0t0  TCP *:http (LISTEN)
    nginx      7510 www-data    9u  IPv4 904048623      0t0  TCP *:tproxy (LISTEN)
    nginx      7510 www-data   10u  IPv4 904048624      0t0  TCP *:http-alt (LISTEN)
    nginx      7510 www-data   11u  IPv4 927585210      0t0  TCP vps.domain.tld:http->141.101.99.203:52936 (ESTABLISHED)
    nginx      7510 www-data   13u  IPv4 927585540      0t0  TCP vps.domain.tld:http->141.101.98.198:36275 (ESTABLISHED)
    nginx      7510 www-data   15u  IPv4 927585645      0t0  TCP vps.domain.tld:http->141.101.98.206:16679 (ESTABLISHED)
    nginx      7510 www-data   16u  IPv4 927585646      0t0  TCP vps.domain.tld:http->141.101.98.198:30510 (ESTABLISHED)
    nginx      7510 www-data   19u  IPv4 927585651      0t0  TCP vps.domain.tld:http->141.101.98.200:44112 (ESTABLISHED)
    dovecot    7519     root   17u  IPv4 904051644      0t0  TCP *:pop3 (LISTEN)
    dovecot    7519     root   18u  IPv6 904051645      0t0  TCP *:pop3 (LISTEN)
    dovecot    7519     root   19u  IPv4 904051646      0t0  TCP *:pop3s (LISTEN)
    dovecot    7519     root   20u  IPv6 904051647      0t0  TCP *:pop3s (LISTEN)
    dovecot    7519     root   24u  IPv4 904051656      0t0  TCP *:imap2 (LISTEN)
    dovecot    7519     root   25u  IPv6 904051657      0t0  TCP *:imap2 (LISTEN)
    dovecot    7519     root   26u  IPv4 904051658      0t0  TCP *:imaps (LISTEN)
    dovecot    7519     root   27u  IPv6 904051659      0t0  TCP *:imaps (LISTEN)
    master     7651     root   12u  IPv4 904053887      0t0  TCP *:smtp (LISTEN)
    master     7651     root   13u  IPv6 904053888      0t0  TCP *:smtp (LISTEN)
    master     7651     root  110u  IPv4 904054014      0t0  TCP localhost.localdomain:10025 (LISTEN)
    amavisd    9559   amavis    5u  IPv4 905436552      0t0  TCP localhost.localdomain:10024 (LISTEN)
    amavisd   19630   amavis    5u  IPv4 905436552      0t0  TCP localhost.localdomain:10024 (LISTEN)
    amavisd   19630   amavis   13u  IPv4 919213824      0t0  TCP localhost.localdomain:41393->localhost.localdomain:mysql (ESTABLISHED)
    amavisd   19903   amavis    5u  IPv4 905436552      0t0  TCP localhost.localdomain:10024 (LISTEN)
    amavisd   19903   amavis   13u  IPv4 919242042      0t0  TCP localhost.localdomain:43035->localhost.localdomain:mysql (ESTABLISHED)
    sshd      23977     root    3r  IPv4 924463012      0t0  TCP vps.domain.tld:ssh->41.177.41.148:60330 (ESTABLISHED)
    sshd      26440     root    3r  IPv4 927355456      0t0  TCP vps.domain.tld:ssh->196-215-43-35.dynamic.isadsl.co.za:65406 (ESTABLISHED)
    
    iptables -L -n

    Code:
    [email protected]:~# iptables -L -n
    Chain INPUT (policy ACCEPT)
    target     prot opt source               destination
    fail2ban-dovecot-pop3imap  tcp  --  0.0.0.0/0            0.0.0.0/0            multiport dports 110,995,143,993
    fail2ban-pureftpd  tcp  --  0.0.0.0/0            0.0.0.0/0            multiport dports 21
    fail2ban-ssh  tcp  --  0.0.0.0/0            0.0.0.0/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  --  0.0.0.0/0            0.0.0.0/0
    
    Chain fail2ban-pureftpd (1 references)
    target     prot opt source               destination
    RETURN     all  --  0.0.0.0/0            0.0.0.0/0
    
    Chain fail2ban-ssh (1 references)
    target     prot opt source               destination
    RETURN     all  --  0.0.0.0/0            0.0.0.0/0
    [email protected]:~#
    
     
  11. Gilera

    Gilera New Member

    Since i've removed Cloudflare from the nameservers im getting bounceback messages when sengding.

    But that, could be that its still rediercting to cloudflare which i have removed all mail records from. so may just be till DNS records propergate

    Code:
    Delivery to the following recipient failed permanently:
    
         [email protected]
    
    Technical details of permanent failure:
    DNS Error: DNS server returned answer with no data
    
    ----- Original message -----
    
    DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
            d=gmail.com; s=20120113;
            h=mime-version:date:message-id:subject:from:to:content-type;
            bh=RHI91NDg1Go8f6isolS2HCe2tXiflhd+gsgHAECfFTU=;
            b=L3GpXUKBKYy4f8b4uyHcrCbHtCOWRa5tZFBhLBSDimgKGNRcgVXE/j1/pmQj2XROt7
             2xo+7E9cgSoDbg7uo0lGFXSr5j3W7veBl53/r0fD7Fo7G0LC5FeueBxTH+eiWa9k4om9
             lzMAzflWX2z1PqclehaMtbytVI5PWoXl0NVaSc9h6PWgA1G678Nmgn8po16aOZ5OUAAL
             XCLVQJi//sgTVycY14SdE9gOyzdGheSx24nUekbWnQwpNSUfY2ykvcSAVP3ZunbZ203g
             +dwiB1j+NGd+bkz99n8Y0U4lG229hLp4m3XfShTVkOXnUthrypGt/0tSp8Xa3QNSeR8f
             vKHg==
    MIME-Version: 1.0
    X-Received: by 10.180.79.227 with SMTP id m3mr3708561wix.2.1383844784503; Thu,
     07 Nov 2013 09:19:44 -0800 (PST)
    Received: by 10.217.120.74 with HTTP; Thu, 7 Nov 2013 09:19:44 -0800 (PST)
    Date: Thu, 7 Nov 2013 19:19:44 +0200
    Message-ID: <[email protected]m>
    Subject: hi
    From: Me <[email protected]>
    To: admin <[email protected]>
    Content-Type: text/plain; charset=ISO-8859-1
     
  12. till

    till Super Moderator Staff Member ISPConfig Developer

    Please post your postfix master.cf file.
     
  13. Gilera

    Gilera New Member

    here to you go /etc/postfix/master.cf

    Code:
    [email protected]:~# vi /etc/postfix/master.cf
    #
    # Postfix master process configuration file.  For details on the format
    # of the file, see the master(5) manual page (command: "man 5 master").
    #
    # Do not forget to execute "postfix reload" after editing this file.
    #
    # ==========================================================================
    # service type  private unpriv  chroot  wakeup  maxproc command + args
    #               (yes)   (yes)   (yes)   (never) (100)
    # ==========================================================================
    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
    #
    # ====================================================================
    # Interfaces to non-Postfix software. Be sure to examine the manual
    # pages of the non-Postfix software to find out what options it wants.
    #
    # Many of the following services use the Postfix pipe(8) delivery
    # agent.  See the pipe(8) man page for information about ${recipient}
    # and other message envelope options.
    # ====================================================================
    "/etc/postfix/master.cf" 132L, 6347C   
     
  14. Croydon

    Croydon ISPConfig Developer ISPConfig Developer

    Shoul use cat instead of vi (bottom of file was missing).

    Seems you forgot to uncomment the "submission" and "smtps" entries.
    Remove the # in those two lines and restart postfix please.
     
    Last edited: Nov 7, 2013
  15. Gilera

    Gilera New Member

    Haha, Sorry about that.. and there i learn something new, Im a total n00b. lol

    Her you go, thanks :)

    Code:
    [email protected]:~# cat /etc/postfix/master.cf
    #
    # Postfix master process configuration file.  For details on the format
    # of the file, see the master(5) manual page (command: "man 5 master").
    #
    # Do not forget to execute "postfix reload" after editing this file.
    #
    # ==========================================================================
    # service type  private unpriv  chroot  wakeup  maxproc command + args
    #               (yes)   (yes)   (yes)   (never) (100)
    # ==========================================================================
    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
    #
    # ====================================================================
    # Interfaces to non-Postfix software. Be sure to examine the manual
    # pages of the non-Postfix software to find out what options it wants.
    #
    # Many of the following services use the Postfix pipe(8) delivery
    # agent.  See the pipe(8) man page for information about ${recipient}
    # and other message envelope options.
    # ====================================================================
    #
    # maildrop. See the Postfix MAILDROP_README file for details.
    # Also specify in main.cf: maildrop_destination_recipient_limit=1
    #
    maildrop  unix  -       n       n       -       -       pipe
      flags=DRhu user=vmail argv=/usr/bin/maildrop -d vmail ${extension} ${recipient} ${user} ${nexthop} ${sender}
    #
    # ====================================================================
    #
    # Recent Cyrus versions can use the existing "lmtp" master.cf entry.
    #
    # Specify in cyrus.conf:
    #   lmtp    cmd="lmtpd -a" listen="localhost:lmtp" proto=tcp4
    #
    # Specify in main.cf one or more of the following:
    #  mailbox_transport = lmtp:inet:localhost
    #  virtual_transport = lmtp:inet:localhost
    #
    # ====================================================================
    #
    # Cyrus 2.1.5 (Amos Gouaux)
    # Also specify in main.cf: cyrus_destination_recipient_limit=1
    #
    #cyrus     unix  -       n       n       -       -       pipe
    #  user=cyrus argv=/cyrus/bin/deliver -e -r ${sender} -m ${extension} ${user}
    #
    # ====================================================================
    # Old example of delivery via Cyrus.
    #
    #old-cyrus unix  -       n       n       -       -       pipe
    #  flags=R user=cyrus argv=/cyrus/bin/deliver -e -m ${extension} ${user}
    #
    # ====================================================================
    #
    # See the Postfix UUCP_README file for configuration details.
    #
    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=DROhu 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
    
    [email protected]:~#
    
     
  16. Gilera

    Gilera New Member

    Ok Ive Uncommented those lines here is the resalt after restarting postfix


    Code:
    [email protected]:~# cat /etc/postfix/master.cf
    #
    # Postfix master process configuration file.  For details on the format
    # of the file, see the master(5) manual page (command: "man 5 master").
    #
    # Do not forget to execute "postfix reload" after editing this file.
    #
    # ==========================================================================
    # service type  private unpriv  chroot  wakeup  maxproc command + args
    #               (yes)   (yes)   (yes)   (never) (100)
    # ==========================================================================
    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
    #
    # ====================================================================
    # Interfaces to non-Postfix software. Be sure to examine the manual
    # pages of the non-Postfix software to find out what options it wants.
    #
    # Many of the following services use the Postfix pipe(8) delivery
    # agent.  See the pipe(8) man page for information about ${recipient}
    # and other message envelope options.
    # ====================================================================
    #
    # maildrop. See the Postfix MAILDROP_README file for details.
    # Also specify in main.cf: maildrop_destination_recipient_limit=1
    #
    maildrop  unix  -       n       n       -       -       pipe
      flags=DRhu user=vmail argv=/usr/bin/maildrop -d vmail ${extension} ${recipient} ${user} ${nexthop} ${sender}
    #
    # ====================================================================
    #
    # Recent Cyrus versions can use the existing "lmtp" master.cf entry.
    #
    # Specify in cyrus.conf:
    #   lmtp    cmd="lmtpd -a" listen="localhost:lmtp" proto=tcp4
    #
    # Specify in main.cf one or more of the following:
    #  mailbox_transport = lmtp:inet:localhost
    #  virtual_transport = lmtp:inet:localhost
    #
    # ====================================================================
    #
    # Cyrus 2.1.5 (Amos Gouaux)
    # Also specify in main.cf: cyrus_destination_recipient_limit=1
    #
    #cyrus     unix  -       n       n       -       -       pipe
    #  user=cyrus argv=/cyrus/bin/deliver -e -r ${sender} -m ${extension} ${user}
    #
    # ====================================================================
    # Old example of delivery via Cyrus.
    #
    #old-cyrus unix  -       n       n       -       -       pipe
    #  flags=R user=cyrus argv=/cyrus/bin/deliver -e -m ${extension} ${user}
    #
    # ====================================================================
    #
    # See the Postfix UUCP_README file for configuration details.
    #
    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=DROhu 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
    
    [email protected]:~#
     
  17. Croydon

    Croydon ISPConfig Developer ISPConfig Developer

    Looks good at first sight.
    Now try sending and receiving again ;)
     
  18. Gilera

    Gilera New Member

    Still getting the same bounceback message in gmail when trying to send to [email protected]..

    But wasnt not getting these when using cloudflare, only been getting the bouncebacks, since i removed the MX and A record from cloudflare and changed Domain Nameservers back to my server, A quick Dns checker and ping from my pc is showing my nameservers now and should be using the shame MX and A records as earlier.

    Could it be a issue with Google propagating to the new DNS or should i maybe change the nameservers now back to cloudflare, and ad the MX and A records in cloudflare?

    Code:
    Delivery to the following recipient failed permanently:
    
         [email protected]
    
    Technical details of permanent failure:
    DNS Error: DNS server returned answer with no data
    
    ----- Original message -----
    
    DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
            d=gmail.com; s=20120113;
            h=mime-version:date:message-id:subject:from:to:content-type;
            bh=z6tios1ZwLRr2vQLNJlk/HQGzh5zwzpyTd/78SBLmUc=;
            b=K7H8RByTEKPrcPU+wQsU7gDZidbSvCkhPVn40oysirliVXUZTIL3kdBs4VWsVLdg8r
             YbzSXQwdJMlJAc2XhKn3G4T9WZJFFBM2lHO+orjKIYiRAZ+ekU9+EcnJ0E14WP1zQ8iw
             VE+ruEeIbtnu+qCC4wOOUwcM7MdmK9RHTwFxmGpITynoa6cOYWDZt47ng3Kio2RbpVBD
             LvidWSqELe1sJgCFAESJz5zGUx7GwWUmYk2DOLQ/mbs0LS9Q3In/rb3UkbvXestsiNdt
             5fXoZtBOaKZv02Hm6npf1F9tLzS9vmJEd9ZpYutYZUyZBW21gdXDggIzsC5DepNsXtcd
             MBjQ==
    MIME-Version: 1.0
    X-Received: by 10.180.79.227 with SMTP id m3mr3959723wix.2.1383848999567; Thu,
     07 Nov 2013 10:29:59 -0800 (PST)
    Received: by 10.217.120.74 with HTTP; Thu, 7 Nov 2013 10:29:59 -0800 (PST)
    Date: Thu, 7 Nov 2013 20:29:59 +0200
    Message-ID: <[email protected]m>
    Subject: please work
    From: Me<[email protected]>
    To: admin <[email protected]>
    Content-Type: text/plain; charset=ISO-8859-1
    

    EDie - I Can Still send from the [email protected] to its self which receives, or out to the gmail account, but cant send or reply from gmail back to the [email protected].
     
    Last edited: Nov 7, 2013
  19. Croydon

    Croydon ISPConfig Developer ISPConfig Developer

    At least to check if all is ok now, you might want to change those dns things back. DNS is often cached for up to 24 hours.
     
  20. Gilera

    Gilera New Member

    Thank you, Ill give that a try and let you know what happens
     

Share This Page