Results 1 to 3 of 3

Thread: postfix, unbound smtp from local server

  1. #1
    Join Date
    Apr 2006
    Location
    Sydney, Australia
    Beans
    259
    Distro
    Ubuntu 17.10 Artful Aardvark

    postfix, unbound smtp from local server

    Running a small web app (Nextcloud) and my home mail server on the same box with Unbound DNS Resolver.

    Webserver (can access the site), mailserver(can send and receive mail) and unbound all work.

    Found an issue when setting my mail server as the smtp server for Netxcloud. Initially thought that this was a Nextcloud issue, but it's not

    pinging my domain from the server translates to 127.0.1.1

    Issue is that nothing for that ip address listens on the required port
    Code:
    sudo netstat -tulpn | grep 587
    tcp        0      0 127.0.0.1:587           0.0.0.0:*               LISTEN      20957/master        
    tcp        0      0 173.212.231.229:587     0.0.0.0:*               LISTEN      20957/master        
    tcp6       0      0 ::1:587                 :::*                    LISTEN      20957/master
    Code:
    telnet smtp.myserver.com 587
    Trying 127.0.1.1...
    telnet: Unable to connect to remote host: Connection refused
    Do I need to add something to the postfix config?

    Thanks

  2. #2
    Join Date
    Nov 2008
    Location
    Metro Boston
    Beans
    14,219
    Distro
    Kubuntu 19.04 Disco Dingo

    Re: postfix, unbound smtp from local server

    Postfix is bound to 127.0.0.1, the traditional localhost address. Ubuntu has taken to assigning the host's own name to 127.0.1.1 (confusing to old hands like me). What if you try to connect to 127.0.0.1 instead?

    If that works, I would edit /etc/hosts to assign your external address the name "smtp.myserver.com" since I assume telnet connections to 173.212.231.229 work correctly, yes?

    Code:
    173.212.231.229     smtp.myserver.com
    Last edited by SeijiSensei; January 31st, 2019 at 05:43 PM.
    If you ask for help, do not abandon your request. Please have the courtesy to check for responses and thank the people who helped you.

    Blog · Linode System Administration Guides · Android Apps for Ubuntu Users

  3. #3
    Join Date
    Apr 2006
    Location
    Sydney, Australia
    Beans
    259
    Distro
    Ubuntu 17.10 Artful Aardvark

    Re: postfix, unbound smtp from local server

    Thanks for your help.
    That works

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •