On 27 Mar 2006 20:37:49 -0800, shrini wrote:
> Friends.
>
> I configured postfix mail server in my server.
> It seems simple.
Yep, was for me. Reading the docs helped.
> I entered all the details in mail.cf
Oh, hmmm, I just append what I wanted changed to /etc/postfix/main.cf
you can use
http://groups.google.com/advanced_group_search
to see my main.cf for LAN and WAN examples.
> then strarted.
> nmap localhost shows port 25
>
> but from other system nmap mailserver wont shows port 25.
>
> i gave telnet mailserver 25
> it gives connection failed.
>
> what to do?
check /var/log/mail and /var/log/messages
If tcwrappers is running I would set up /etc/hosts.allow/deny.
Examples for my LAN's domain ".home.invalid" on all nodes.
$ cat /etc/hosts.allow
#
# hosts.allow This file describes the names of the hosts which are
# allowed to use the local INET services, as decided
# by the '/usr/sbin/tcpd' server.
#
ALL: LOCAL,.home.invalid
# End of hosts.allow.Run service xinetd reload
$ cat /etc/hosts.deny
#
# hosts.deny This file describes the names of the hosts which are
# *not* allowed to use the local INET services, as decided
# by the '/usr/sbin/tcpd' server.
#
ALL: ALL:\
spawn ( \
/bin/echo -e "\n\
TCP Wrappers\: Connection Refused\n\
By\: $(uname -n)\n\
Process\: %d (pid %p)\n\
\n\
User\: %u\n\
Host\: %c\n\
Date\: $(date)\n\
" | /bin/mail -s \"$(uname -n)\" root ) & : DENY