Notmar
Posts: 1
Joined: Fri Jun 07, 2013 12:15 am

Having trouble setting up a mail server

Fri Jun 07, 2013 12:16 am

I've followed the instructions here exactly: http://ducky-pond.com/posts/9 But am having a little trouble configuring it.
I can access it from its local ip and send e-mail outwards and it will work, but when I port forward 25 and 80 on my router I still can't access it from my public ip address. Also how would I change my mx record under my domain register (hover if it matters) to go through my server? Thanks.

User avatar
DaveDriesen
Posts: 113
Joined: Sun Mar 31, 2013 8:28 pm
Location: Top of the food chain
Contact: Website

Re: Having trouble setting up a mail server

Fri Jun 07, 2013 9:07 am

Can you review or post the output of the following command:

Code: Select all

netstat -tulpn | grep ":25\b"

Should give you something like:
tcp        0      0 0.0.0.0:25              0.0.0.0:*               LISTEN      20858/master
tcp6       0      0 :::25                   :::*                    LISTEN      20858/master
Are you able to telnet into the public IP remotely at port 25?

If so, test the SMTP server by sending these commands:

Code: Select all

HELO yourclient.yourdomain.whatever
MAIL FROM: sender.email@yourdomain.something.whatever
RCPT TO: recipient.email@yourdomain.something.whatever
DATA
type some text, finish with a period on a single line
.
you might have to fidget with the latter a little, but in any case it should give you some informative replies.

Dave Driesen
Linux dev and oldskool elite

klricks
Posts: 7154
Joined: Sat Jan 12, 2013 3:01 am
Location: Grants Pass, OR, USA
Contact: Website

Re: Having trouble setting up a mail server

Fri Jun 07, 2013 1:23 pm

Are you sure the ports are not blocked by your ISP? Many ISP's will block ports 25, 80 etc.
Try this on-line port scan tool:
http://www.t1shopper.com/tools/port-scan/

If blocked you may be able to use non standard ports.
Unless specified otherwise my response is based on the latest and fully updated RPiOS Buster w/ Desktop OS.

Return to “Networking and servers”