Empty mail box.

Discussion in 'Server Operation' started by hbtousa, Aug 28, 2012.

  1. hbtousa

    hbtousa New Member

    Hello.I posted a similar thread few days ago, but after I found Perfect Server( Apache2, BIND, Dovecot, ISPConfig 3) I started from scratch.I am new to linux and after following the tutorial as of today no luck receiving/sending emails.
    I am running the server with a dynamic ip address (home user DSL account) with a no-ip service to help me with the redirection for my domain;also, I was lucky enough to try out for one week their email reflector because I am assuming that as a home user I am not supposed to run email servers and my port 25 has been blocked.

    I run the tool at http://www.intodns.com/safeipvoice.com and showed everything checked green.But, MXtools said the opposite

    Honestly, I have reinstalled the system three times and went over every step just to make sure not to miss anything. I have done my work through testing, reading, but my mailbox is empty. The only email I received so far was the one welcome email by squairrelmail.
    Please have the time to take a look to the different command outputs and give your expert opinion. I seen this question over and over,but every case is unique based on case by case basis.


    The name of the domain is real.
    By the way,in few opportunities I had the chance of sending out few emails out to xxx@yahoo.com but ino anymore.

    I saw on one post on this site to try to force postfix to use port 587, i tried couple thing and it did not work.

    Thanks to all of you




    Code:
    /main.cf
    # Debian specific:  Specifying a file name will cause the first
    # line of that file to be used as the name.  The Debian default
    # is /etc/mailname.
    myorigin = mail.safeipvoice.com
    
    smtpd_banner = $myhostname ESMTP $mail_name (Ubuntu)
    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.safeipvoice.com
    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.safeipvoice.com, localhost, localhost.localdomain
    relayhost = smtp.gmail.com:579
    mynetworks = 127.0.0.0/8 [::1]/128
    mailbox_command = procmail -a "$EXTENSION"
    mailbox_size_limit = 0
    recipient_delimiter = +
    inet_interfaces = all
    html_directory = /usr/share/doc/postfix/html
    virtual_alias_domains =
    virtual_alias_maps = proxy:mysql:/etc/postfix/mysql-virtual_forwardings.cf, 
    
    proxy:mysql:/etc/postfix/mysql-virtual_email2email.cf, 
    
    hash:/var/lib/mailman/dat$
    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
    smtpd_sasl_auth_enable = yes
    broken_sasl_auth_clients = yes
    smtpd_sasl_authenticated_header = yes
    smtpd_recipient_restrictions = permit_mynetworks, permit_sasl_authenticated, 
    
    check_recipient_access mysql:/etc/postfix/mysql-virtual_recipient.cf, 
    
    reject_un$
    smtpd_tls_security_level = may
    transport_maps = 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_reci$
    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
    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
    
    
    smtp_sasl_security_options      = noanonymous
    smtp_use_tls                    = yes
    smtp_use_tls                    = yes
    #smtp_tls_CAfile                        = /etc/postfix/cacert.pem
    smtp_sasl_auth_enable           = yes
    smtp_sasl_password_maps         = hash:/etc/postfix/sasl/passwd
    
    
    my master conf
    Code:
     
    # 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
    #
      GNU nano 2.2.6                                   File: 
    
    /etc/postfix/master.cf                                                    
    
                    Modified
    
    #   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=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_check
    
    s
            -o smtpd_bind_address=127.0.0.1
    
     
    my dig command
    Code:
    root@mail:~# dig safeipvoice.com
    
    ; <<>> DiG 9.8.1-P1 <<>> safeipvoice.com
    ;; global options: +cmd
    ;; Got answer:
    ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 9494
    ;; flags: qr aa rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 2, 
    
    ADDITIONAL: 2
    
    ;; QUESTION SECTION:
    ;safeipvoice.com.               IN      A
    
    ;; ANSWER SECTION:
    safeipvoice.com.        3600    IN      A       192.168.13.50
    
    ;; AUTHORITY SECTION:
    safeipvoice.com.        3600    IN      NS      ns2.safeipvoice.com.
    safeipvoice.com.        3600    IN      NS      ns1.safeipvoice.com.
    
    ;; ADDITIONAL SECTION:
    ns1.safeipvoice.com.    86400   IN      A       65.9.131.28
    ns2.safeipvoice.com.    86400   IN      A       192.168.13.50
    
    ;; Query time: 0 msec
    ;; SERVER: 127.0.0.1#53(127.0.0.1)
    ;; WHEN: Tue Aug 28 12:13:14 2012
    ;; MSG SIZE  rcvd: 117
    
    
    my mx records
    Code:
    root@mail:~# dig mx mail.safeipvoice.com
    
    ; <<>> DiG 9.8.1-P1 <<>> mx mail.safeipvoice.com
    ;; global options: +cmd
    ;; Got answer:
    ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 1892
    ;; flags: qr aa rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 0
    
    ;; QUESTION SECTION:
    ;mail.safeipvoice.com.          IN      MX
    
    ;; AUTHORITY SECTION:
    safeipvoice.com.        3600    IN      SOA     ns1.safeipvoice.com.  2012082816 7200 540 604800 86400
    
    ;; Query time: 0 msec
    ;; SERVER: 127.0.0.1#53(127.0.0.1)
    ;; WHEN: Tue Aug 28 12:15:20 2012
    ;; MSG SIZE  rcvd: 92
    
    
    my netsat
    Code:
    root@mail:~# netstat -tap
    Active Internet connections (servers and established)
    Proto Recv-Q Send-Q Local Address           Foreign Address         
    
    State       PID/Program name
    tcp        0      0 localhost.localdo:10025 *:*                     
    
    LISTEN      8750/master
    tcp        0      0 *:mysql                 *:*                     
    
    LISTEN      1329/mysqld
    tcp        0      0 *:submission            *:*                     
    
    LISTEN      8750/master
    tcp        0      0 *:netbios-ssn           *:*                     
    
    LISTEN      867/smbd
    tcp        0      0 *:pop3                  *:*                     
    
    LISTEN      1291/dovecot
    tcp        0      0 *:imap2                 *:*                     
    
    LISTEN      1291/dovecot
    tcp        0      0 localhost.localdo:spamd *:*                     
    
    LISTEN      1733/spamd.pid
    tcp        0      0 *:http-alt              *:*                     
    
    LISTEN      2489/apache2
    tcp        0      0 *:http                  *:*                     
    
    LISTEN      2489/apache2
    tcp        0      0 *:tproxy                *:*                     
    
    LISTEN      2489/apache2
    tcp        0      0 *:ftp                   *:*                     
    
    LISTEN      2402/pure-ftpd (SER
    tcp        0      0 192.168.122.1:domain    *:*                     
    
    LISTEN      1429/dnsmasq
    tcp        0      0 mail.safeipvoice:domain *:*                     
    
    LISTEN      1304/named
    tcp        0      0 localhost.locald:domain *:*                     
    
    LISTEN      1304/named
    tcp        0      0 *:ssh                   *:*                     
    
    LISTEN      1125/sshd
    tcp        0      0 localhost.localdoma:ipp *:*                     
    
    LISTEN      918/cupsd
    tcp        0      0 localhost.lo:postgresql *:*                     
    
    LISTEN      1479/postgres
    tcp        0      0 *:smtp                  *:*                     
    
    LISTEN      8750/master
    tcp        0      0 localhost.localdoma:953 *:*                     
    
    LISTEN      1304/named
    tcp        0      0 *:https                 *:*                     
    
    LISTEN      2489/apache2
    tcp        0      0 *:microsoft-ds          *:*                     
    
    LISTEN      867/smbd
    tcp        0      0 *:imaps                 *:*                     
    
    LISTEN      1291/dovecot
    tcp        0      0 *:pop3s                 *:*                     
    
    LISTEN      1291/dovecot
    tcp        0      0 localhost.localdom:9000 *:*                     
    
    LISTEN      2279/php-fpm.conf)
    tcp        0      0 localhost.localdo:10024 *:*                     
    
    LISTEN      1457/amavisd (maste
    tcp        0      0 localhost.localdo:58118 localhost.localdo:mysql 
    
    ESTABLISHED 1607/amavisd (ch10-
    tcp        0   2072 mail.safeipvoice.co:ssh 192.168.13.101:2578     
    
    ESTABLISHED 7566/sshd: administ
    tcp        0      0 localhost.localdo:mysql localhost.localdo:58118 
    
    ESTABLISHED 1329/mysqld
    tcp        0      0 localhost.localdo:58036 localhost.localdo:mysql 
    
    ESTABLISHED 1603/amavisd (ch11-
    tcp        0      0 localhost.localdo:mysql localhost.localdo:58036 
    
    ESTABLISHED 1329/mysqld
    tcp6       0      0 [::]:submission         [::]:*                  
    
    LISTEN      8750/master
    tcp6       0      0 [::]:netbios-ssn        [::]:*                  
    
    LISTEN      867/smbd
    tcp6       0      0 [::]:pop3               [::]:*                  
    
    LISTEN      1291/dovecot
    tcp6       0      0 [::]:imap2              [::]:*                  
    
    LISTEN      1291/dovecot
    tcp6       0      0 [::]:ftp                [::]:*                  
    
    LISTEN      2402/pure-ftpd (SER
    tcp6       0      0 [::]:domain             [::]:*                  
    
    LISTEN      1304/named
    tcp6       0      0 [::]:ssh                [::]:*                  
    
    LISTEN      1125/sshd
    tcp6       0      0 ip6-localhost:ipp       [::]:*                  
    
    LISTEN      918/cupsd
    tcp6       0      0 [::]:smtp               [::]:*                  
    
    LISTEN      8750/master
    tcp6       0      0 ip6-localhost:953       [::]:*                  
    
    LISTEN      1304/named
    tcp6       0      0 [::]:microsoft-ds       [::]:*                  
    
    LISTEN      867/smbd
    tcp6       0      0 [::]:imaps              [::]:*                  
    
    LISTEN      1291/dovecot
    tcp6       0      0 [::]:pop3s              [::]:*                  
    
    LISTEN      1291/dovecot
    tcp6       0      0 localhost.localdom:8005 [::]:*                  
    
    LISTEN      2543/java
    
    
    My mail.log

    Code:
     
    Aug 28 12:37:58 mail postfix/qmgr[8754]: CB0FA800EAF: from=<sebastian@safeipvoice.com>, size=1226, nrcpt=1 (queue active)
    Aug 28 12:37:58 mail postfix/qmgr[8754]: 3D4AC800E67: from=<sebastian@safeipvoice.com>, size=1223, nrcpt=1 (queue active)
    Aug 28 12:37:58 mail postfix/qmgr[8754]: 155A3800EDC: from=<hbtousa@yahoo.com>, size=4607, nrcpt=1 (queue active)
    Aug 28 12:37:58 mail postfix/trivial-rewrite[9127]: warning: do not list domain safeipvoice.com in BOTH virtual_mailbox_domains and relay_domains
    Aug 28 12:37:58 mail postfix/smtp[9131]: connect to mail1.no-ip.com[8.23.224.50]:25: No route to host
    Aug 28 12:37:58 mail postfix/smtp[9135]: connect to mail1.no-ip.com[8.23.224.50]:25: No route to host
    Aug 28 12:37:58 mail postfix/smtp[9131]: 84856800ED7: to=<sebastian@safeipvoice.com>, relay=none, delay=4067, delays=4067/0.03/0.01/0, dsn=4.4.1, status=def$
    Aug 28 12:37:58 mail postfix/smtp[9135]: 155A3800EDC: to=<sebastian@safeipvoice.com>, relay=none, delay=2319, delays=2318/0.04/0.01/0, dsn=4.4.1, status=def$
    Aug 28 12:37:58 mail postfix/smtp[9132]: connect to smtp.gmail.com[2607:f8b0:400c:c03::6d]:579: Network is unreachable
    Aug 28 12:38:28 mail postfix/smtp[9133]: connect to smtp.gmail.com[74.125.130.109]:579: Connection timed out
    Aug 28 12:38:28 mail postfix/smtp[9132]: connect to smtp.gmail.com[74.125.130.109]:579: Connection timed out
    Aug 28 12:38:28 mail postfix/smtp[9133]: connect to smtp.gmail.com[2607:f8b0:400c:c03::6d]:579: Network is unreachable
    Aug 28 12:38:58 mail postfix/smtp[9133]: connect to smtp.gmail.com[74.125.130.108]:579: Connection timed out
    Aug 28 12:38:58 mail postfix/smtp[9132]: connect to smtp.gmail.com[74.125.130.108]:579: Connection timed out
    Aug 28 12:38:59 mail postfix/smtp[9133]: 3D4AC800E67: to=<hbtousa@yahoo.com>, relay=none, delay=29494, delays=29433/0.03/60/0, dsn=4.4.1, status=deferred (c$
    Aug 28 12:38:59 mail postfix/smtp[9132]: CB0FA800EAF: to=<hbtousa@yahoo.com>, relay=none, delay=5496, delays=5436/0.02/60/0, dsn=4.4.1, status=deferred (con$
    Aug 28 12:40:01 mail dovecot: imap-login: Disconnected (no auth attempts): rip=127.0.0.1, lip=127.0.0.1, secured
    Aug 28 12:40:01 mail dovecot: pop3-login: Disconnected (no auth attempts): rip=127.0.0.1, lip=127.0.0.1, secured
    Aug 28 12:40:01 mail postfix/smtpd[9193]: connect from localhost.localdomain[127.0.0.1]
    Aug 28 12:40:01 mail postfix/smtpd[9193]: lost connection after CONNECT from localhost.localdomain[127.0.0.1]
    Aug 28 12:40:01 mail postfix/smtpd[9193]: disconnect from localhost.localdomain[127.0.0.1]
    
     

    Attached Files:

  2. till

    till Super Moderator

    Thats good, as it indicates that your mail system is working correctly. So the source of the problem is most likely outside of your server.

    Please post the output of the following commands:

    netstat -tap

    and

    iptables -L

    Regarding dns records that you added in ispconfig, as far as I see, you use the dns server of your provider as you use a dnamic dns domain. So there should be no dns records in ispconfig then.

    Most DSL and cable providers block the email port 25, so you cant run any mail servers at home. You should contact your internet access providers support and ask them if they were blocking port 25 incoming. Another possibility is a configuration problem on the router.
     
  3. hbtousa

    hbtousa New Member

    I got rid of my DNS settings in ISPCONFIG as you suggested, and just before reading your reply I blew the linux firewall.
    Since all***.gmail/yahoo emails are stuck in the mail queue. I have the feeling that the problem is on this side. I sent three mails. One from Squirrelmail to yahoo,another one from yahoo to Squirrelmail, and one internal. All of them went straight to the queue.The one I sent from Squirrelmail to yahoo is inthe queue reported as conection time out, the other two are also in the queue and reported as "mail for safeipvoice.com loops back to myself"
    I am going to compare the master.cf. posted initially with the one I am running now,just to see if it has been changed.
    Thanks for your time

    Netstat -tap
    Code:
    root@mail:~# netstat -tap
    Active Internet connections (servers and established)
    Proto Recv-Q Send-Q Local Address           Foreign Address         State       PID/Program name
    tcp        0      0 localhost.localdo:10025 *:*                     LISTEN      2329/master
    tcp        0      0 *:mysql                 *:*                     LISTEN      1353/mysqld
    tcp        0      0 *:submission            *:*                     LISTEN      2329/master
    tcp        0      0 *:netbios-ssn           *:*                     LISTEN      760/smbd
    tcp        0      0 *:pop3                  *:*                     LISTEN      1364/dovecot
    tcp        0      0 localhost.localdo:spamd *:*                     LISTEN      1800/spamd.pid
    tcp        0      0 *:imap2                 *:*                     LISTEN      1364/dovecot
    tcp        0      0 *:webmin                *:*                     LISTEN      2543/perl
    tcp        0      0 *:http-alt              *:*                     LISTEN      2433/apache2
    tcp        0      0 *:http                  *:*                     LISTEN      2433/apache2
    tcp        0      0 *:tproxy                *:*                     LISTEN      2433/apache2
    tcp        0      0 *:ftp                   *:*                     LISTEN      2349/pure-ftpd (SER
    tcp        0      0 mail.local:domain       *:*                     LISTEN      1500/dnsmasq
    tcp        0      0 mail.safeipvoice:domain *:*                     LISTEN      1319/named
    tcp        0      0 localhost.locald:domain *:*                     LISTEN      1319/named
    tcp        0      0 *:ssh                   *:*                     LISTEN      1157/sshd
    tcp        0      0 localhost.localdoma:ipp *:*                     LISTEN      1081/cupsd
    tcp        0      0 localhost.lo:postgresql *:*                     LISTEN      1765/postgres
    tcp        0      0 *:smtp                  *:*                     LISTEN      2329/master
    tcp        0      0 localhost.localdoma:953 *:*                     LISTEN      1319/named
    tcp        0      0 *:https                 *:*                     LISTEN      2433/apache2
    tcp        0      0 *:microsoft-ds          *:*                     LISTEN      760/smbd
    tcp        0      0 *:imaps                 *:*                     LISTEN      1364/dovecot
    tcp        0      0 *:pop3s                 *:*                     LISTEN      1364/dovecot
    tcp        0      0 localhost.localdom:9000 *:*                     LISTEN      2228/php-fpm.conf)
    tcp        0      0 localhost.localdo:10024 *:*                     LISTEN      1745/amavisd (maste
    tcp        0      0 localhost.localdo:33894 localhost.localdo:mysql TIME_WAIT   -
    tcp        0      0 localhost.localdo:33886 localhost.localdo:mysql TIME_WAIT   -
    tcp        0      0 mail.safeipvoice.co:ssh 192.168.13.101:3335     ESTABLISHED 3178/sshd: administ
    tcp        0      0 localhost.localdo:33841 localhost.localdo:mysql ESTABLISHED 1770/amavisd (ch1-a
    tcp        0      0 localhost.localdo:mysql localhost.localdo:33841 ESTABLISHED 1353/mysqld
    tcp        0      0 localhost.localdo:33885 localhost.localdo:mysql TIME_WAIT   -
    tcp        0      0 localhost.localdo:33889 localhost.localdo:mysql TIME_WAIT   -
    tcp       57      0 localhost.localdo:44743 localhost.localdo:10025 CLOSE_WAIT  1770/amavisd (ch1-a
    tcp        0      0 mail.safeipvoice:webmin 192.168.13.101:3410     ESTABLISHED 3906/perl
    tcp        0      0 localhost.localdo:33897 localhost.localdo:mysql TIME_WAIT   -
    tcp        0      0 localhost.localdo:33887 localhost.localdo:mysql TIME_WAIT   -
    tcp        0      0 localhost.localdo:33891 localhost.localdo:mysql TIME_WAIT   -
    tcp        0      0 localhost.localdo:33892 localhost.localdo:mysql TIME_WAIT   -
    tcp        0      0 localhost.localdo:33902 localhost.localdo:mysql TIME_WAIT   -
    tcp        0      0 localhost.localdo:33898 localhost.localdo:mysql TIME_WAIT   -
    tcp        0      0 localhost.localdo:33884 localhost.localdo:mysql TIME_WAIT   -
    tcp        0      0 localhost.localdo:33900 localhost.localdo:mysql TIME_WAIT   -
    tcp        0      0 localhost.localdo:33899 localhost.localdo:mysql TIME_WAIT   -
    tcp        0      0 localhost.localdo:33890 localhost.localdo:mysql TIME_WAIT   -
    tcp        0      0 localhost.localdo:33895 localhost.localdo:mysql TIME_WAIT   -
    tcp        0      0 localhost.localdo:33883 localhost.localdo:mysql TIME_WAIT   -
    tcp        0      0 localhost.localdo:33893 localhost.localdo:mysql TIME_WAIT   -
    tcp        0      0 localhost.localdo:33901 localhost.localdo:mysql TIME_WAIT   -
    tcp        0      0 localhost.localdo:33888 localhost.localdo:mysql TIME_WAIT   -
    tcp        0      0 localhost.localdo:mysql localhost.localdo:33903 TIME_WAIT   -
    tcp6       0      0 [::]:submission         [::]:*                  LISTEN      2329/master
    tcp6       0      0 [::]:pop3               [::]:*                  LISTEN      1364/dovecot
    tcp6       0      0 [::]:imap2              [::]:*                  LISTEN      1364/dovecot
    tcp6       0      0 [::]:ftp                [::]:*                  LISTEN      2349/pure-ftpd (SER
    tcp6       0      0 [::]:domain             [::]:*                  LISTEN      1319/named
    tcp6       0      0 [::]:ssh                [::]:*                  LISTEN      1157/sshd
    tcp6       0      0 ip6-localhost:ipp       [::]:*                  LISTEN      1081/cupsd
    tcp6       0      0 [::]:smtp               [::]:*                  LISTEN      2329/master
    tcp6       0      0 ip6-localhost:953       [::]:*                  LISTEN      1319/named
    tcp6       0      0 [::]:imaps              [::]:*                  LISTEN      1364/dovecot
    tcp6       0      0 [::]:pop3s              [::]:*                  LISTEN      1364/dovecot
    tcp6       0      0 localhost.localdom:8005 [::]:*                  LISTEN      2487/java
    root@mail:~#
    
    iptables
    Code:
    root@mail:~# iptables -L
    Chain INPUT (policy ACCEPT)
    target     prot opt source               destination
    ACCEPT     udp  --  anywhere             anywhere             udp dpt:domain
    ACCEPT     tcp  --  anywhere             anywhere             tcp dpt:domain
    ACCEPT     udp  --  anywhere             anywhere             udp dpt:bootps
    ACCEPT     tcp  --  anywhere             anywhere             tcp dpt:bootps
    
    Chain FORWARD (policy ACCEPT)
    target     prot opt source               destination
    ACCEPT     all  --  anywhere             192.168.122.0/24     state RELATED,ESTABLISHED
    ACCEPT     all  --  192.168.122.0/24     anywhere
    ACCEPT     all  --  anywhere             anywhere
    REJECT     all  --  anywhere             anywhere             reject-with 
    
    icmp-port-unreachable
    REJECT     all  --  anywhere             anywhere             reject-with 
    
    icmp-port-unreachable
    
    Chain OUTPUT (policy ACCEPT)
    target     prot opt source               destination
    root@mail:~#
    
    traceroute
    Code:
     41.495 ms
    10  12.122.155.173 (12.122.155.173)  40.779 ms  42.695 ms  45.137 ms
    11  192.205.36.254 (192.205.36.254)  54.748 ms  57.183 ms  59.597 ms
    12  ae-32-52.ebr2.Miami1.Level3.net (4.69.138.123)  52.356 ms  24.060 ms  25.416 ms
    13  ae-2-2.ebr2.Atlanta2.Level3.net (4.69.140.142)  32.057 ms  34.865 ms  36.867 ms
    14  ae-73-73.ebr3.Atlanta2.Level3.net (4.69.148.253)  39.795 ms  41.788 ms  44.196 ms
    15  ae-7-7.ebr3.Dallas1.Level3.net (4.69.134.21)  68.118 ms  70.744 ms  73.005 ms
    16  ae-3-3.ebr2.LosAngeles1.Level3.net (4.69.132.77)  105.534 ms  107.929 ms  111.891 ms
    17  ae-6-6.ebr2.SanJose5.Level3.net (4.69.148.202)  133.357 ms  126.865 ms  132.487 ms
    18  ae-1-100.ebr1.SanJose5.Level3.net (4.69.148.109)  139.564 ms ae-2-2.ebr2.SanJose1.Level3.net (4.69.148.142)  94.878 ms  94.896 ms
    19  ae-92-92.csw4.SanJose1.Level3.net (4.69.153.30)  97.062 ms ae-62-62.csw1.SanJose1.Level3.net (4.69.153.18)  102.911 ms 
    
    ae-5-5.ebr1.SanJose1.Level3.net (4.69.148.138)  103.898 ms
    20  ae-1-60.edge1.SanJose2.Level3.net (4.69.152.7)  105.841 ms ae-4-90.edge1.SanJose2.Level3.net (4.69.152.199)  108.234 ms  110.438 ms
    21  ae4.ar1.pao1.us.nlayer.net (69.22.153.214)  98.540 ms ae-3-80.edge1.SanJose2.Level3.net (4.69.152.135)  97.819 ms ae4.ar1.pao1.us.nlayer.net 
    
    (69.22.153.214)  105.141 ms
    22  ae4.ar1.pao1.us.nlayer.net (69.22.153.214)  106.625 ms  107.307 ms  109.545 ms
    23  ae1-70g.cr1.sjc1.us.nlayer.net (69.22.143.165)  111.964 ms ae0-90g.cr1.pao1.us.nlayer.net (69.22.153.18)  113.157 ms 
    
    ae1-70g.cr1.sjc1.us.nlayer.net (69.22.143.165)  97.574 ms
    24  as23352.xe-5-2-0-101.cr1.sjc1.us.nlayer.net (69.22.153.59)  98.253 ms  100.472 ms  103.368 ms
    25  as23352.xe-5-2-0-101.cr1.sjc1.us.nlayer.net (69.22.153.59)  105.305 ms ge0-27.aggr116.sjc1.us.scnet.net (64.202.104.142)  111.430 ms  113.625 ms
    26  ge0-27.aggr116.sjc1.us.scnet.net (64.202.104.142)  115.835 ms ns2.no-ip.com (204.16.254.6)  96.458 ms  98.306 ms
    root@mail:~# clear
    root@mail:~# traceroute ns2.no-ip.com
    traceroute to ns2.no-ip.com (204.16.254.6), 30 hops max, 60 byte packets
     1  192.168.13.2 (192.168.13.2)  9.816 ms  10.090 ms  10.380 ms
     2  adsl-65-9-131-1.mia.bellsouth.net (65.9.131.1)  16.105 ms  16.094 ms  16.320 ms
     3  70.159.202.117 (70.159.202.117)  31.632 ms  32.438 ms  32.671 ms
     4  70.159.202.22 (70.159.202.22)  28.071 ms  43.935 ms  33.326 ms
     5  12.81.20.2 (12.81.20.2)  36.447 ms  40.386 ms  41.048 ms
     6  12.83.6.118 (12.83.6.118)  45.075 ms  13.642 ms  12.994 ms
     7  12.81.8.65 (12.81.8.65)  13.646 ms  15.951 ms  18.340 ms
     8  74.175.192.190 (74.175.192.190)  25.247 ms  27.750 ms  37.614 ms
     9  cr81.fldfl.ip.att.net (12.122.106.94)  36.587 ms  37.333 ms  40.540 ms
    10  12.122.155.173 (12.122.155.173)  41.193 ms 12.122.155.169 (12.122.155.169)  43.342 ms  45.293 ms
    11  192.205.36.254 (192.205.36.254)  54.936 ms  57.352 ms  60.054 ms
    12  ae-32-52.ebr2.Miami1.Level3.net (4.69.138.123)  57.962 ms  22.770 ms  23.293 ms
    13  ae-2-2.ebr2.Atlanta2.Level3.net (4.69.140.142)  34.807 ms  44.731 ms  39.633 ms
    14  ae-73-73.ebr3.Atlanta2.Level3.net (4.69.148.253)  42.431 ms  45.453 ms  48.075 ms
    15  ae-7-7.ebr3.Dallas1.Level3.net (4.69.134.21)  71.182 ms  74.069 ms  76.431 ms
    16  ae-3-3.ebr2.LosAngeles1.Level3.net (4.69.132.77)  108.094 ms  111.007 ms  113.234 ms
    17  ae-6-6.ebr2.SanJose5.Level3.net (4.69.148.202)  134.166 ms  134.906 ms  140.259 ms
    18  ae-1-100.ebr1.SanJose5.Level3.net (4.69.148.109)  117.222 ms  103.513 ms ae-2-2.ebr2.SanJose1.Level3.net (4.69.148.142)  101.347 ms
    19  ae-92-92.csw4.SanJose1.Level3.net (4.69.153.30)  110.440 ms  107.929 ms ae-72-72.csw2.SanJose1.Level3.net (4.69.153.22)  105.290 ms
    20  ae-81-81.csw3.SanJose1.Level3.net (4.69.153.10)  105.260 ms  106.574 ms ae-3-80.edge1.SanJose2.Level3.net (4.69.152.135)  96.578 ms
    21  ae4.ar1.pao1.us.nlayer.net (69.22.153.214)  100.803 ms  99.216 ms  97.238 ms
    22  ae4.ar1.pao1.us.nlayer.net (69.22.153.214)  96.910 ms  98.718 ms ae0-90g.cr1.pao1.us.nlayer.net (69.22.153.18)  97.921 ms
    23  ae0-90g.cr1.pao1.us.nlayer.net (69.22.153.18)  98.464 ms ae1-70g.cr1.sjc1.us.nlayer.net (69.22.143.165)  99.144 ms ae0-90g.cr1.pao1.us.nlayer.net 
    
    (69.22.153.18)  99.860 ms
    24  as23352.xe-5-2-0-101.cr1.sjc1.us.nlayer.net (69.22.153.59)  102.874 ms  93.839 ms  95.755 ms
    25  as23352.xe-5-2-0-101.cr1.sjc1.us.nlayer.net (69.22.153.59)  98.063 ms  95.629 ms ge0-27.aggr116.sjc1.us.scnet.net (64.202.104.142)  99.535 ms
    26  ge0-27.aggr116.sjc1.us.scnet.net (64.202.104.142)  103.918 ms ns2.no-ip.com (204.16.254.6)  103.162 ms ge0-27.aggr116.sjc1.us.scnet.net 
    
    (64.202.104.142)  108.617 ms
    root@mail:~#
    
     

    Attached Files:

  4. hbtousa

    hbtousa New Member

    Is not an empty mailbox anymore

    Never been so much happy receiving an email. I got it working.
    Code:
    Aug 29 14:56:33 mail postfix/qmgr[3546]: A6F101BE198E: from=<xxx@yahoo.com>, size=3800, nrcpt=1 (queue active)
    Aug 29 14:56:33 mail postfix/smtpd[3847]: disconnect from localhost.localdomain[127.0.0.1]
    Aug 29 14:56:33 mail amavis[1580]: (01580-03) Passed CLEAN, [8.23.224.50] [65.9.131.28] <xxx@yahoo.com> -> <sebastian@safeipvoice.com>, Mess$
    Aug 29 14:56:33 mail postfix/smtp[3844]: 0DF0B1BE1989: to=<sebastian@safeipvoice.com>, relay=127.0.0.1[127.0.0.1]:10024, delay=0.72, delays=0.16$
    Aug 29 14:56:33 mail postfix/qmgr[3546]: 0DF0B1BE1989: removed
    Aug 29 14:56:33 mail dovecot: auth-worker: mysql(localhost): Connected to database dbispconfig
    Aug 29 14:56:33 mail dovecot: lda(sebastian@safeipvoice.com): sieve: msgid=<1346263842.83840.YahooMailClassic@web125903.mail.ne1.yahoo.com>: sto$
    Aug 29 14:56:33 mail postfix/pipe[3848]: A6F101BE198E: to=<sebastian@safeipvoice.com>, relay=dovecot, delay=0.19, delays=0.07/0/0/0.12, dsn=2.0.$
    Aug 29 14:56:33 mail postfix/qmgr[3546]: A6F101BE198E: [COLOR="Red"][SIZE="5"]removed[/SIZE][/COLOR]
    
    I did the entire system for the 5th time, created two email accounts in ISPCONFIG 3, configured postfix to use gmail as a relay. To open port 587 I removed the comment on master.cf "submission inet n - - - - smtpd" and set this port on my email reflector, opened the port 587 on my gateway, and I am
    happy telling you all about it.

    Thanks, TIL you gave me important clues to make it work.

    Cheer.

    BTW: I have some other issues not related to email that I will be posting soon. Have a wonderful day
     

Share This Page