Postfix not sending email

Discussion in 'ISPConfig 3 Priority Support' started by toyinal, Mar 18, 2015.

  1. toyinal

    toyinal Member HowtoForge Supporter

    I've setup ISPCONFIG using till tutorial Perfect Server for Centos 7, but Postfix is not sending email from my Local Server connected to Verizon Cable company fios router. SInce the cable company has blocked port 25, I opened port 587 & 465 on the router and followed till tutorial to uncomment smtps & submission on postfix master.cf, but it looks like postfix is still using the blocked port 25 and refusing to use 587 or 465 looking at the maillog below
    Code:
    Mar 17 23:31:02 server1 postfix/smtp[4255]: 5D809415F8C1: to=<[email protected]>, relay=127.0.0.1[127.0.0.1]:10024, delay=21, delays=0.42/0.01/0/21, dsn=2.0.0, status=sent (250 2.0.0 from MTA(smtp:[127.0.0.1]:10025): 250 2.0.0 Ok: queued as 2D165415F8CA)
    Mar 17 23:31:02 server1 postfix/qmgr[4211]: 5D809415F8C1: removed
    Mar 17 23:31:21 server1 postfix/smtp[4224]: connect to mx2.hotmail.com[65.55.37.104]:25: Connection timed out
    Mar 17 23:31:21 server1 postfix/smtp[4222]: connect to alt1.gmail-smtp-in.l.google.com[64.233.186.26]:25: Connection timed out
    Mar 17 23:31:21 server1 postfix/smtp[4226]: connect to mta6.am0.yahoodns.net[66.196.118.33]:25: Connection timed out
    This is the output of traceroute to port 587 & 465
    Code:
     traceroute -n -T -p 587 alt3.gmail-smtp-in.l.google.com
    traceroute to alt3.gmail-smtp-in.l.google.com (74.125.133.26), 30 hops max, 60 byte packets
    1  192.168.1.1  2.402 ms  2.391 ms  2.947 ms
    2  71.127.152.1  10.868 ms  12.256 ms  12.348 ms
    3  100.41.197.204  16.717 ms  16.714 ms  16.688 ms
    4  130.81.151.116  27.147 ms 130.81.151.112  45.484 ms 130.81.199.2  45.546 ms
    5  152.63.8.125  16.815 ms 140.222.226.227  17.972 ms 152.63.8.121  17.773 ms
    6  152.63.41.242  17.741 ms 152.63.36.22  16.537 ms 152.63.41.246  15.706 ms
    7  * * *
    8  * * *
    9  * * *
    10  * * *
    11  * * *
    12  * * *
    13  * * *
    14  * * *
    15  * * *
    16  * * *
    17  * * *
    18  * * *
    19  * * *
    20  * * *
    
    traceroute -n -T -p 465 alt3.gmail-smtp-in.l.google.com
    traceroute to alt3.gmail-smtp-in.l.google.com (64.233.166.27), 30 hops max, 60 byte packets
    1 192.168.1.1 4.162 ms 4.134 ms 4.100 ms
    2 71.127.152.1 13.503 ms 14.325 ms 14.535 ms
    3 130.81.59.6 17.088 ms 17.256 ms 17.718 ms
    4 130.81.151.120 18.182 ms 130.81.151.124 38.990 ms 130.81.151.120 18.136 ms
    5 140.222.226.37 21.735 ms 22.492 ms 130.81.23.109 20.487 ms
    6 152.63.5.241 22.497 ms 152.63.4.145 18.630 ms 152.63.5.241 18.666 ms
    7 152.63.20.169 17.498 ms 152.63.5.1 17.899 ms 152.63.4.141 18.056 ms
    8 * * *
    9 * * *
    10 * * *
    11 * * *
    12 * * *
    13 * * *
    14 * * *
    15 * * *
    Also see my postfix master.cf
    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       -       n       -       -       smtpd
    #smtp      inet  n       -       n       -       1       postscreen
    #smtpd     pass  -       -       n       -       -       smtpd
    #dnsblog   unix  -       -       n       -       0       dnsblog
    #tlsproxy  unix  -       -       n       -       0       tlsproxy
    submission inet n       -       n       -       -       smtpd
    #  -o syslog_name=postfix/submission
    #  -o smtpd_tls_security_level=encrypt
    #  -o smtpd_sasl_auth_enable=yes
    #  -o smtpd_reject_unlisted_recipient=no
    #  -o smtpd_client_restrictions=$mua_client_restrictions
    #  -o smtpd_helo_restrictions=$mua_helo_restrictions
    #  -o smtpd_sender_restrictions=$mua_sender_restrictions
    #  -o smtpd_recipient_restrictions=permit_sasl_authenticated,reject
    #  -o milter_macro_daemon_name=ORIGINATING
    smtps     inet  n       -       n       -       -       smtpd
    #  -o syslog_name=postfix/smtps
    #  -o smtpd_tls_wrappermode=yes
    #  -o smtpd_sasl_auth_enable=yes
    #  -o smtpd_reject_unlisted_recipient=no
    
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    Port port 587 & 465 are used for incoming emails, not outgoing. If your access prvider blocks port 25, then you have to use a relayhost to send emails trough, e.g. the mailservers from verizon. You can set the relayhst and username / password (if required) in ISPConfig under System > Server config > mail. Just as a sidenote, even if verizon wont block port 25, their IP is probly listed on balcklists for as dynmic or access provider IP. These blacklists are used be the spamfilters of most mail servers, so even if you would be able to send a mail, it will get blocked on the receiver side. So the only working solution to run a mailserver at home or in office is to relay the emails trough a server that is in a datacenter with a fixed IP or trough the smtp servers of your acccess provider.
     

Share This Page