[SOLVED] Enable smtps (465 port)

Discussion in 'Installation/Configuration' started by Andres Hocevar, Aug 29, 2015.

  1. Andres Hocevar

    Andres Hocevar New Member

    Hi there.
    I want to enable 465 port
    I'm on:
    • openSUSE 13.1 x64
    • ISPConfig-3.0.5.4p8.
    • postfix- 2.9.6-7.4.1
    • dovecot-2.1.17-2.1.2
    master.cf
    Code:
    smtp      inet  n       -       n       -       -       smtpd
    submission inet n       -       n       -       -       smtpd
    smtps     inet  n       -       n       -       -       smtpd #-o smtpd_tls_wrappermode=yes
    pickup    fifo  n       -       n       60      1       pickup
    cleanup   unix  n       -       n       -       0       cleanup
    qmgr      fifo  n       -       n       300     1       qmgr
    tlsmgr    unix  -       -       n       1000?   1       tlsmgr
    rewrite   unix  -       -       n       -       -       trivial-rewrite
    bounce    unix  -       -       n       -       0       bounce
    defer     unix  -       -       n       -       0       bounce
    trace     unix  -       -       n       -       0       bounce
    verify    unix  -       -       n       -       1       verify
    flush     unix  n       -       n       1000?   0       flush
    proxymap  unix  -       -       n       -       -       proxymap
    proxywrite unix -       -       n       -       1       proxymap
    smtp      unix  -       -       n       -       -       smtp
    relay     unix  -       -       n       -       -       smtp
    showq     unix  n       -       n       -       -       showq
    error     unix  -       -       n       -       -       error
    retry     unix  -       -       n       -       -       error
    discard   unix  -       -       n       -       -       discard
    local     unix  -       n       n       -       -       local
    virtual   unix  -       n       n       -       -       virtual
    lmtp      unix  -       -       n       -       -       lmtp
    anvil     unix  -       -       n       -       1       anvil
    scache    unix  -       -       n       -       1       scache
    dovecot   unix  -       n       n       -       -       pipe
      flags=DROhu user=vmail:vmail argv=/usr/lib/dovecot/deliver -f ${sender} -d ${user}@${nexthop}
    amavis    unix  -       -       n       -       4       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
    
    Thank's in advance
     
  2. florian030

    florian030 Well-Known Member HowtoForge Supporter

    Did you check the open port with netstat and your firewall? You have already "smtps inet n - n - - smtpd".
     
  3. Andres Hocevar

    Andres Hocevar New Member

    Hi florian
    Thank's for you answer.
    The port in the firewall is open

    nmap -p 465 localhost
    Code:
    Starting Nmap 6.40 ( http://nmap.org ) at 2015-08-29 08:17 VET
    Nmap scan report for localhost (127.0.0.1)
    Host is up (0.00014s latency).
    PORT    STATE  SERVICE
    465/tcp closed smtps
    
    Nmap done: 1 IP address (1 host up) scanned in 0.08 seconds
    lsof -i:465
    Code:
    empty
    Any idea?
     
  4. florian030

    florian030 Well-Known Member HowtoForge Supporter

    You can try "465 inet n – n – – smtpd" in the master.cf instead of "smtps inet n - n - - smtpd"
     
  5. Andres Hocevar

    Andres Hocevar New Member

    It's working now, Thanks florian!!
     
  6. florian030

    florian030 Well-Known Member HowtoForge Supporter

    You can also add something lik "ssmtp 465/tcp smtps # SMTP over SSL" to /etc/services
     
    Andres Hocevar likes this.
  7. Andres Hocevar

    Andres Hocevar New Member

    In /etc/service file that line was:
    "urd 465/tcp # URL Rendesvous Directory for SSM"
     

Share This Page