Announcement

Collapse
No announcement yet.

Email Server on Raspberry Pi: sending but not receiving

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    [SOLVED] Email Server on Raspberry Pi: sending but not receiving

    I've been tinkering with my Raspberry Pi.

    I already use it to host a WordPress website.

    The set up is:
    Raspbian
    Apache
    PHP
    MySQL
    WordPress

    I'd also like to use it as a mail server, so I have installed and configured:

    Postfix
    Dovecot
    Squirrelmail

    using the Ubuntu tutorials here.

    I must have done something wrong, because although I can send mail internally from one user to another using squirrelmail, and send mail to external email (outlook, yahoo etc), when I try to reply to the messages they do not get delivered.

    The error messages I receive from these external mail applications are all similar to:
    Unable to deliver message to the following recipients, due to being unable to connect successfully to the destination mail server
    or

    This message hasn't been delivered yet. Delivery will continue to be attempted.

    The server will keep trying to deliver this message for the next 1 days, 19 hours and 59 minutes. You'll be notified if the message can't be delivered by that time.
    I think I must have configured Postfix incorrectly.

    Any ideas?

    Feathers
    samhobbs.co.uk

    #2
    P.s.

    I have a static IP address.
    samhobbs.co.uk

    Comment


      #3
      if your behind a router have you forded the port the mail server is listening on through the router ?

      VINNY
      i7 4core HT 8MB L3 2.9GHz
      16GB RAM
      Nvidia GTX 860M 4GB RAM 1152 cuda cores

      Comment


        #4
        Hi Vinny

        I already have port forwarding set up, have I missed one?

        Click image for larger version

Name:	Port_forwarding.png
Views:	1
Size:	67.4 KB
ID:	640455

        Feathers
        samhobbs.co.uk

        Comment


          #5
          I figured it out.

          My MX record was pointing incoming emails at some other server (my ISP's server, I think).

          Code:
          feathers-mcgraw@62-West-Wallaby-Street:~$ dig samhobbs.co.uk MX
          
          ; <<>> DiG 9.9.2-P1 <<>> samhobbs.co.uk MX
          ;; global options: +cmd
          ;; Got answer:
          ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 18000
          ;; flags: qr rd ra; QUERY: 1, ANSWER: 5, AUTHORITY: 0, ADDITIONAL: 5
          
          ;; QUESTION SECTION:
          ;samhobbs.co.uk. IN MX
          
          ;; ANSWER SECTION:
          samhobbs.co.uk. 1800 IN MX 10 eforward1.registrar-servers.com.
          samhobbs.co.uk. 1800 IN MX 20 eforward5.registrar-servers.com.
          samhobbs.co.uk. 1800 IN MX 10 eforward3.registrar-servers.com.
          samhobbs.co.uk. 1800 IN MX 15 eforward4.registrar-servers.com.
          samhobbs.co.uk. 1800 IN MX 10 eforward2.registrar-servers.com.
          
          ;; ADDITIONAL SECTION:
          eforward1.registrar-servers.com. 1243 IN A 69.160.33.82
          eforward5.registrar-servers.com. 1243 IN A 38.101.213.202
          eforward3.registrar-servers.com. 1243 IN A 38.101.213.199
          eforward4.registrar-servers.com. 1243 IN A 69.160.33.74
          eforward2.registrar-servers.com. 1243 IN A 209.105.246.195
          
          ;; Query time: 120 msec
          ;; SERVER: 127.0.1.1#53(127.0.1.1)
          ;; WHEN: Sat Sep 14 11:17:51 2013
          ;; MSG SIZE rcvd: 263
          I changed the MX record on namecheap and now I get this:

          Code:
          feathers-mcgraw@62-West-Wallaby-Street:~$ dig samhobbs.co.uk MX
          
          ; <<>> DiG 9.9.2-P1 <<>> samhobbs.co.uk MX
          ;; global options: +cmd
          ;; Got answer:
          ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 46648
          ;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 1
          
          ;; QUESTION SECTION:
          ;samhobbs.co.uk.                        IN      MX
          
          ;; ANSWER SECTION:
          samhobbs.co.uk.         1800    IN      MX      10 samhobbs.co.uk.
          
          ;; ADDITIONAL SECTION:
          samhobbs.co.uk.         1800    IN      A       195.166.151.235
          
          ;; Query time: 115 msec
          ;; SERVER: 127.0.1.1#53(127.0.1.1)
          ;; WHEN: Sat Sep 14 11:45:57 2013
          ;; MSG SIZE  rcvd: 64
          Both sending and receiving now work great.

          Feathers
          samhobbs.co.uk

          Comment

          Working...
          X