The mail problem continues

Discussion in 'ISPConfig 3 Priority Support' started by bitpixel, Jan 10, 2014.

  1. bitpixel

    bitpixel New Member

    Hello

    Please do not consider this as a duplicate post. My email problem still persist and I would like to benefit from my subscription.

    Summary:

    I can't send or receive emails.

    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       -       -       -       -       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
    
    
    process 1: #smtps... updated and restart postfix
    status: no success

    Squirrel notification:
    Code:
    Message not sent. Server replied:
    Authentication required
    530 5.7.0 Must issue a STARTTLS command first 

    process 2: set the following in main.cf
    Code:
    smtpd_use_tls = yes
    smtpd_tls_auth_only = no
    status: no success

    mail log:
    Code:
    [CODE]Jan  9 23:10:02 server postfix/submission/smtpd[15376]: lost connection after CONNECT from localhost.server[127.0.0.1]
    Jan  9 23:10:02 server postfix/submission/smtpd[15376]: disconnect from localhost.server[127.0.0.1]
    Jan  9 23:10:02 server postfix/cleanup[15375]: 00D30840BDC: message-id=<20140109211002.00D30840BDC@server.abali.fi>
    Jan  9 23:10:02 server postfix/qmgr[22966]: 00D30840BDC: from=<www-data@server.abali.fi>, size=884, nrcpt=1 (queue active)
    Jan  9 23:10:02 server postfix/smtpd[15405]: warning: database /var/lib/mailman/data/virtual-mailman.db is older than source file /var/lib/mailman/data/virtual-mailman
    Jan  9 23:10:02 server postfix/smtpd[15405]: connect from localhost.server[127.0.0.1]
    Jan  9 23:10:02 server postfix/smtpd[15405]: A38B7840417: client=localhost.server[127.0.0.1]
    Jan  9 23:10:02 server postfix/cleanup[15375]: A38B7840417: message-id=<20140109211002.00D30840BDC@server.abali.fi>
    Jan  9 23:10:02 server postfix/qmgr[22966]: A38B7840417: from=<www-data@server.abali.fi>, size=1336, nrcpt=1 (queue active)
    Jan  9 23:10:02 server postfix/smtpd[15405]: disconnect from localhost.server[127.0.0.1]
    Jan  9 23:10:02 server amavis[26046]: (26046-04) Passed CLEAN, <www-data@server.abali.fi> -> <root@server.abali.fi>, Message-ID: <20140109211002.00D30840BDC@server.abali.fi>, mail_id: k8ij$
    Jan  9 23:10:02 server postfix/smtp[15397]: 00D30840BDC: to=<root@server.abali.fi>, orig_to=<root>, relay=127.0.0.1[127.0.0.1]:10024, delay=0.91, delays=0.26/0.01/0/0.64, dsn=2.0.0, status$
    Jan  9 23:10:02 server postfix/qmgr[22966]: 00D30840BDC: removed
    Jan  9 23:10:02 server postfix/local[15406]: A38B7840417: to=<root@server.abali.fi>, relay=local, delay=0.1, delays=0.04/0.01/0/0.04, dsn=2.0.0, status=sent (delivered to mailbox)
    Jan  9 23:10:02 server postfix/qmgr[22966]: A38B7840417: removed
    Jan  9 23:15:01 server postfix/postscreen[15761]: CONNECT from [127.0.0.1]:45978 to [127.0.0.1]:25
    Jan  9 23:15:01 server postfix/postscreen[15761]: WHITELISTED [127.0.0.1]:45978
    Jan  9 23:15:01 server dovecot: imap-login: Disconnected (no auth attempts): rip=127.0.0.1, lip=127.0.0.1, secured
    Jan  9 23:15:01 server postfix/submission/smtpd[15764]: warning: database /var/lib/mailman/data/virtual-mailman.db is older than source file /var/lib/mailman/data/virtual-mailman
    Jan  9 23:15:01 server postfix/submission/smtpd[15764]: connect from localhost.server[127.0.0.1]
    Jan  9 23:15:01 server postfix/submission/smtpd[15764]: lost connection after CONNECT from localhost.server[127.0.0.1]
    Jan  9 23:15:01 server postfix/submission/smtpd[15764]: disconnect from localhost.server[127.0.0.1]
    Jan  9 23:15:01 server dovecot: pop3-login: Disconnected (no auth attempts): rip=127.0.0.1, lip=127.0.0.1, secured
    Jan  9 23:16:05 server postfix/master[22962]: terminating on signal 15
    Jan  9 23:16:05 server postfix/master[15925]: daemon started -- version 2.9.6, configuration /etc/postfix
    Jan  9 23:17:32 server postfix/master[15925]: terminating on signal 15
    Jan  9 23:17:33 server postfix/master[16072]: daemon started -- version 2.9.6, configuration /etc/postfix
    Jan  9 23:17:41 server dovecot: auth-worker: mysql(localhost): Connected to database dbispconfig
    Jan  9 23:17:41 server dovecot: imap-login: Login: user=<serdar@masalaravintola.fi>, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, mpid=16081, secured
    Jan  9 23:17:41 server dovecot: imap(serdar@masalaravintola.fi): Disconnected: Logged out bytes=44/709
    Jan  9 23:17:42 server dovecot: imap-login: Login: user=<serdar@masalaravintola.fi>, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, mpid=16083, secured
    Jan  9 23:17:42 server dovecot: imap(serdar@masalaravintola.fi): Disconnected: Logged out bytes=399/1723
    Jan  9 23:17:42 server dovecot: imap-login: Login: user=<serdar@masalaravintola.fi>, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, mpid=16085, secured
    Jan  9 23:17:42 server dovecot: imap(serdar@masalaravintola.fi): Disconnected: Logged out bytes=292/1912
    Jan  9 23:17:55 server postfix/submission/smtpd[16089]: warning: database /var/lib/mailman/data/virtual-mailman.db is older than source file /var/lib/mailman/data/virtual-mailman
    Jan  9 23:17:55 server postfix/submission/smtpd[16089]: connect from localhost.server[127.0.0.1]
    Jan  9 23:17:55 server postfix/submission/smtpd[16089]: lost connection after EHLO from localhost.server[127.0.0.1]
    Jan  9 23:17:55 server postfix/submission/smtpd[16089]: disconnect from localhost.server[127.0.0.1]
    
    [/CODE]
     
    Last edited: Jan 10, 2014
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    You missed to remove the # in front of the smtps and submission lines in master.cf wrong.
     
  3. bitpixel

    bitpixel New Member

    sorry, I have it already removed but posted the old .cf.

    editing in a sec.
     
  4. till

    till Super Moderator Staff Member ISPConfig Developer

    Your issue was just caused by these two wrong lines, if you editad any others ettings, e.g. in main.cf, then undo these changes.
     
  5. till

    till Super Moderator Staff Member ISPConfig Developer


    The file is still wrong. Now you removed # in front of smtps, which is good. But you still missed to remove it in front of the submission line.
     
  6. bitpixel

    bitpixel New Member

    Yes, it was the second #submission line and apparently it's now configured somewhat correctly.

    But I'm not able to send or receive email, probably because of network problems:

    ports status:
    Code:
    PORT     STATE SERVICE
    21/tcp   open  ftp
    22/tcp   open  ssh
    25/tcp   open  smtp
    53/tcp   open  domain
    80/tcp   open  http
    110/tcp  open  pop3
    143/tcp  open  imap
    443/tcp  open  https
    465/tcp  open  smtps
    587/tcp  open  submission
    993/tcp  open  imaps
    995/tcp  open  pop3s
    8080/tcp open  http-proxy
    8081/tcp open  blackice-icecap
    
    mail.log:
    Code:
    Jan 10 18:17:57 server postfix/smtp[19068]: connect to gmail-smtp-in.l.google.com[2a00:1450:4008:c01::1a]:25: Network is unreachable
    Jan 10 18:18:03 server postfix/smtp[19049]: connect to gmail-smtp-in.l.google.com[173.194.71.26]:25: Connection timed out
    Jan 10 18:18:03 server postfix/smtp[19049]: connect to gmail-smtp-in.l.google.com[2a00:1450:4008:c01::1a]:25: Network is unreachable
    Jan 10 18:18:03 server postfix/smtp[19049]: connect to alt1.gmail-smtp-in.l.google.com[2a00:1450:4008:c01::1b]:25: Network is unreachable
    Jan 10 18:18:27 server postfix/smtp[19068]: connect to gmail-smtp-in.l.google.com[173.194.71.26]:25: Connection timed out
    Jan 10 18:18:27 server postfix/smtp[19068]: connect to alt1.gmail-smtp-in.l.google.com[2a00:1450:4008:c01::1b]:25: Network is unreachable
    Jan 10 18:18:33 server postfix/smtp[19049]: connect to alt1.gmail-smtp-in.l.google.com[173.194.64.26]:25: Connection timed out
    Jan 10 18:18:33 server postfix/smtp[19049]: connect to alt2.gmail-smtp-in.l.google.com[2a00:1450:4008:c01::1b]:25: Network is unreachable
    Jan 10 18:18:33 server postfix/smtp[19049]: 9EFF4840E3A: to=<serdarabali@gmail.com>, relay=none, delay=588, delays=527/0.03/61/0, dsn=4.4.1, status=deferred (connect to alt2.gmail-smtp-in.$
    
    
    Can it be the ISP blocking it? If yes, is there any other method to bypass that?
     
  7. till

    till Super Moderator Staff Member ISPConfig Developer

    postfix tries to connect to gmail with ipv6, maybe there is a problem with the ipv6 network of your provider. try to add this line at the end of postfix main.cf

    inet_protocols=ipv4

    and restart postfix to switch it to ipv4 only.
     
  8. bitpixel

    bitpixel New Member

    Thanks for the patiency and suggestions, but didn't help. I also tried sending to live/outlook with similay outcome:

    the most recent log

    Code:
    Jan 10 18:50:49 server postfix/master[17736]: terminating on signal 15
    Jan 10 18:50:49 server postfix/master[20180]: daemon started -- version 2.9.6, configuration /etc/postfix
    Jan 10 18:50:49 server postfix/qmgr[20184]: 7FD9C840A07: from=<serdar@masalaravintola.fi>, size=1243, nrcpt=1 (queue active)
    Jan 10 18:51:05 server dovecot: auth-worker: mysql(localhost): Connected to database dbispconfig
    Jan 10 18:51:05 server dovecot: imap-login: Login: user=<serdar@masalaravintola.fi>, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, mpid=20199, secured
    Jan 10 18:51:05 server dovecot: imap(serdar@masalaravintola.fi): Disconnected: Logged out bytes=44/709
    Jan 10 18:51:06 server dovecot: imap-login: Login: user=<serdar@masalaravintola.fi>, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, mpid=20201, secured
    Jan 10 18:51:06 server dovecot: imap(serdar@masalaravintola.fi): Disconnected: Logged out bytes=399/1723
    Jan 10 18:51:06 server dovecot: imap-login: Login: user=<serdar@masalaravintola.fi>, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, mpid=20203, secured
    Jan 10 18:51:06 server dovecot: imap(serdar@masalaravintola.fi): Disconnected: Logged out bytes=292/1912
    Jan 10 18:51:19 server dovecot: imap-login: Login: user=<serdar@masalaravintola.fi>, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, mpid=20205, secured
    Jan 10 18:51:19 server dovecot: imap(serdar@masalaravintola.fi): Disconnected: Logged out bytes=292/1912
    Jan 10 18:51:20 server postfix/smtp[20189]: connect to gmail-smtp-in.l.google.com[173.194.71.27]:25: Connection timed out
    Jan 10 18:51:50 server postfix/smtp[20189]: connect to alt1.gmail-smtp-in.l.google.com[173.194.64.27]:25: Connection timed out
    Jan 10 18:51:50 server dovecot: imap-login: Login: user=<serdar@masalaravintola.fi>, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, mpid=20207, secured
    Jan 10 18:51:50 server dovecot: imap(serdar@masalaravintola.fi): Disconnected: Logged out bytes=292/1912
    Jan 10 18:51:51 server dovecot: imap-login: Login: user=<serdar@masalaravintola.fi>, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, mpid=20209, secured
    Jan 10 18:51:51 server dovecot: imap(serdar@masalaravintola.fi): Disconnected: Logged out bytes=292/1912
    Jan 10 18:51:52 server dovecot: imap-login: Login: user=<serdar@masalaravintola.fi>, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, mpid=20211, secured
    Jan 10 18:51:52 server dovecot: imap(serdar@masalaravintola.fi): Disconnected: Logged out bytes=291/3064
    Jan 10 18:51:56 server dovecot: imap-login: Login: user=<serdar@masalaravintola.fi>, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, mpid=20213, secured
    Jan 10 18:51:56 server dovecot: imap(serdar@masalaravintola.fi): Disconnected: Logged out bytes=142/1540
    Jan 10 18:51:59 server dovecot: imap-login: Login: user=<serdar@masalaravintola.fi>, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, mpid=20215, secured
    Jan 10 18:51:59 server dovecot: imap(serdar@masalaravintola.fi): Disconnected: Logged out bytes=292/1912
    Jan 10 18:52:20 server postfix/smtp[20189]: connect to alt2.gmail-smtp-in.l.google.com[74.125.193.27]:25: Connection timed out
    Jan 10 18:52:50 server postfix/smtp[20189]: connect to alt3.gmail-smtp-in.l.google.com[74.125.137.27]:25: Connection timed out
    Jan 10 18:53:03 server dovecot: auth-worker: mysql(localhost): Connected to database dbispconfig
    Jan 10 18:53:03 server dovecot: imap-login: Login: user=<serdar@masalaravintola.fi>, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, mpid=20235, secured
    Jan 10 18:53:03 server dovecot: imap(serdar@masalaravintola.fi): Disconnected: Logged out bytes=292/1912
    Jan 10 18:53:20 server postfix/smtp[20189]: connect to alt4.gmail-smtp-in.l.google.com[173.194.74.26]:25: Connection timed out
    Jan 10 18:53:20 server postfix/smtp[20189]: 7FD9C840A07: to=<serdarabali@gmail.com>, relay=none, delay=3316, delays=3165/0.02/150/0, dsn=4.4.1, status=deferred (connect to alt4.gmail-smtp-$
    
    
     
  9. till

    till Super Moderator Staff Member ISPConfig Developer

    seems as if your provider blocks outgoing connections on port 25 then. do you have smtp server login details from your provider (from a mailbox at your provider)? Then you can try to set the smtp server of your provider as relay server under system > server config > mail.
    postfix will then try to send the emails trough the smtp server of your provider instead of contacting google / hotmail directly.
     

Share This Page