[Ilugc] telnet to postfix by ip address is refused
- From: 0@xxxxxxxxxxx (0)
- Date: Thu, 29 Sep 2011 13:30:19 +0530
In general, listening only on localhost is done for security reasons.
It
looks like sendmail binds only to 127.0.0.1:25
yes. Any idea which file I need to edit to change this?
I don't have any experience with postfix but looking at their
documentation, here is what I would try.
1. In main.cf, set "inet_interfaces = 192.168.1.2, 127.0.0.1"
2. sudo postfix stop
3. sudo postfix -vvv start #-vvv enables verbose mode.
4. sudo lsof -i :25 -n #check whether it listens on 192.168.1.2
4. ifconfig | grep 192.168.1.2 #check whether the interface is up
5. check /var/log/maillog #check for clues to listening on 25
The default file for mail.* syslog messages is usually /var/log/maillog
but you should check your config ie., /etc/syslog.conf or
/etc/rsyslog.conf or something similar for "mail.*" line.
If you couldn't get it to work, it will help if you share the postfix
debug log messages from /var/log/maillog and /var/log/messages (if any).
--
0
Other related posts: