Almost there (Mail Delivery)

Discussion in 'Installation/Configuration' started by seangee, Jun 19, 2007.

  1. seangee

    seangee New Member

    Hi all

    I am almost there. Last night I (briefly) switched my router to deliver SMTP traffic to the new server.

    My mail delivery works as follows.
    1. mydomain.co.uk is hosted by one company who also manage the DNS entries.
    2. I have created an entry for mail.mydomain.co.uk which points at my external static ip address.
    3. I have set an auto forward for all mail to the domain to an address hosted by my ISP ([email protected]) - this is to give me an effective backup server.
    4. My ISP then delivers all mail for %@myisp.co.uk to my static IP address by SMTP.

    This works fine on my current server and I have compared the postfix settings between the two. The mail hits my server but then fails to get delivered. In this log entry the ip address is the external address for my router - i.e the static address for mail.mydomain.co.uk. I have set ispconfig to not publish DNS info. I have also created an entry in my hosts file 192.168.0.202 mail.mydomain.co.uk

    Code:
    Jun 19 09:09:57 deb-server postfix/qmgr[3453]: 39841E7D11: from=<[email protected]>, size=1433, nrcpt=1 (queue active)
    Jun 19 09:09:58 deb-server postfix/smtp[14025]: connect to mail.mydomain.co.uk[nnn.nn.nnn.nnn]: Connection refused (port 25)
    Jun 19 09:09:58 deb-server postfix/smtp[14025]: 39841E7D11: to=<[email protected]>, orig_to=<[email protected]>, relay=none, delay=35124, delays=35124/0.08/0.04/0, dsn=4.4.1, status=deferred (connect to mail.mydomain.co.uk[nnn.nn.nnn.nnn]: Connection refused)
    
    I would appreciate any pointers on where to go from here.
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    Please make sure that mail.mydomain.co.uk is listed in /etc/postfix/local-host-names and that the IP for mail.mydomain.co.uk is the IP of your server.
     
  3. seangee

    seangee New Member

    Thanks Tim.

    I have added the entry to /etc/postfix/local-host-names. I assume that when you say "the IP for mail.mydomain.co.uk is the IP of your server." you mean the external IP of the router.

    I'll give it a test late tonight to minimize potentially lost mails ...
     
  4. seangee

    seangee New Member

    Cool - everything is working now - so will probably migrate to the new server later in the week, so that I can rebuild the physical server.

    Unless of course I just move the VM off my Vista PC onto a standard Linux installation ;)

    Thanks for the help along the way - hopefully I can start contributing soon
     

Share This Page