Postfix local only problem
When you are running multiples vservers on a same physical box, it may be usefull to allow box daemons (like cron) to send mail for debugging purpose or just seeing if a problem occurs.
Debian Gnu/Linux provide a good way to configure packages like postfix.
You can use '# dpkg-reconfigure postfix' to start configuring (this script is also called when installing postfix)
The problem is that, the local-only mode, witch is here the most useful don't work out of box. (postfix start withouth any message, but doesn't appear in proces list (ps)).
Few fix are needed for postfix run good:
1) Add a line in /etc/hosts with:
- nano /etc/hosts
You can also add :
(the "localhost" hostname is used by some other daemons and point normaly to 127.0.0.1)
2) Modify postfix configuration:
- nano /etc/postfix/main.cf
inet_interfaces = loopback-only
inet_interfaces = name_of_host_entered_in__etc_hosts
inet_interfaces = localhost