Page 1 of 1

Having trouble setting up a mail server

Posted: Fri Jun 07, 2013 12:16 am
by Notmar
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.

Re: Having trouble setting up a mail server

Posted: Fri Jun 07, 2013 9:07 am
by DaveDriesen
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

Re: Having trouble setting up a mail server

Posted: Fri Jun 07, 2013 1:23 pm
by klricks
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.