You are not logged in.

#1 2010-01-24 07:05:40

ntness
Member
From: The World
Registered: 2009-12-29
Posts: 97

setting up a mail server

j

Last edited by ntness (2010-04-30 02:24:07)


transcend to the fifth abode

Offline

#2 2010-01-24 22:10:22

PirateJonno
Forum Fellow
From: New Zealand
Registered: 2009-04-13
Posts: 372

Re: setting up a mail server

your smtp/pop server will both be localhost (IP address 127.0.0.1). SMTP uses port 25 by default and POP3 is 110. Wikipedia has more information, but as for security settings it depends how you configured postfix/dovecot. anyway, afaik the mail command has no relevance to your set up, because it probably contacts the SMTP server at gmail.com directly, bypassing your setup. the way i test my setup is with telnet, like so:

$ telnet localhost 25
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
220 my.domain.name.com ESMTP Ahoy there!
HELO localhost
250 my.domain.name.com
MAIL FROM:<me@me.com>
250 2.1.0 Ok
RCPT TO:<jonno@localhost>
250 2.1.5 Ok
DATA
354 End data with <CR><LF>.<CR><LF>
hi

.
250 2.0.0 Ok: queued as 224CA60070
QUIT

you should receive an email (it might be marked as spam because me@me.com is presumably a bogus email address)

To test sending, you can do a similar thing but make the recipient someone on an external network. However, it is more secure if you use your ISP's SMTP server for sending mail and disable relay in postfix (use mynetworks_style = host). in that case you shouldn't have to test much, just check out your ISP's instructions and add their server to your mail client

Last edited by PirateJonno (2010-01-24 22:11:45)


"You can watch for your administrator to install the latest kernel with watch uname -r" - From the watch man page

Offline

#3 2010-01-25 00:57:03

ntness
Member
From: The World
Registered: 2009-12-29
Posts: 97

Re: setting up a mail server

k

Last edited by ntness (2010-04-30 02:24:32)


transcend to the fifth abode

Offline

Board footer

Powered by FluxBB