Difference between revisions of "Postfix local only problem"

From Linux-VServer

Jump to: navigation, search
(3) Restart postfix with /etc/init.d/postfix restart and check it run with "ps")
(Synopsys)
Line 1: Line 1:
 
== Synopsys ==
 
== Synopsys ==
 +
 
When you are running multiples vservers on a same physical box,
 
When you are running multiples vservers on a same physical box,
 +
 
it may be usefull to allow box daemons (like cron) to send mail
 
it may be usefull to allow box daemons (like cron) to send mail
 +
 
for debugging purpose or just seeing if a problem occurs.
 
for debugging purpose or just seeing if a problem occurs.
 +
 +
  
  
Line 8: Line 13:
  
 
You can use '# dpkg-reconfigure postfix' to start configuring
 
You can use '# dpkg-reconfigure postfix' to start configuring
 +
 
(this script is also called when installing postfix)
 
(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.
 
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)).
 
(postfix start withouth any message, but doesn't appear in proces list (ps)).
 
   
 
   

Revision as of 17:09, 23 August 2007

Contents

Synopsys

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:

Fixing

Add a line in /etc/hosts with:

nano /etc/hosts

ip.of.the.host nameofhost

You can also add :

ip.of.the.host localhost

(the "localhost" hostname is used by some other daemons and point normaly to 127.0.0.1)

Modify postfix configuration:

  1. nano /etc/postfix/main.cf

Replace

inet_interfaces = loopback-only

by

inet_interfaces = name_of_host_entered_in__etc_hosts

or

inet_interfaces = localhost

Restart postfix with /etc/init.d/postfix restart and check it run with "ps"

That's all folks ;)

Personal tools