Postfix local only problem: Difference between revisions

From Linix VServer
Jump to navigationJump to search
(New page: ===== Postfix "local only" installation on a vserver ===== ==== Synopsys ==== When you are running multiples vservers on a same physical box, it may be usefull to allow box daemons (like ...)
 
imported>Glenn
 
(13 intermediate revisions by 2 users not shown)
Line 1: Line 1:
===== Postfix "local only" installation on a vserver =====
== Synopsis ==


==== Synopsys ====
When you are running multiples vservers on a same physical box, it may be useful to allow box daemons (like cron) to send mail for debugging purpose or just seeing if a problem occurs. Debian GNU/Linux provides a good way to configure packages like Postfix. You can use
When you are running multiples vservers on a same physical box,
# dpkg-reconfigure postfix
it may be usefull to allow box daemons (like cron) to send mail
to start configuring (this script is also called when installing Postfix)
for debugging purpose or just seeing if a problem occurs.


 
The problem is that, the local-only mode (which in this instance is the most useful) doesn't work 'out of the box' (Postfix starts without any messages, but doesn't appear in process list (ps)).
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:
A few fixes are needed for Postfix to run properly:


==== Fixing ====
== /etc/hosts additions ==
Add a line in /etc/hosts with:
nano /etc/hosts


1) Add a line in /etc/hosts with:
ip.of.the.host nameofhost


# nano /etc/hosts
You can also add:


ip.of.the.host nameofhost
ip.of.the.host localhost


You can also add :
(the "localhost" hostname is used by some other daemons and normally points to 127.0.0.1.)


ip.of.the.host localhost
== Modify postfix configuration ==


(the "localhost" hostname is used by some other daemons and point normaly to 127.0.0.1)
# nano /etc/postfix/main.cf
 
2) Modify postfix configuration:
 
# nano /etc/postfix/main.cf


Replace
Replace
inet_interfaces = loopback-only
with
inet_interfaces = name_of_host_entered_in__etc_hosts
or
inet_interfaces = localhost


inet_interfaces = loopback-only
== Restart Postfix ==
 
Restart Postfix with
by
/etc/init.d/postfix restart
 
and check it run with "ps".
inet_interfaces = name_of_host_entered_in__etc_hosts
 
or


inet_interfaces = localhost
That's all folks ;)


3) Restart postfix with /etc/init.d/postfix restart and check it run with "ps"
[[Category:Documentation]]

Latest revision as of 19:41, 21 October 2011

Synopsis[edit]

When you are running multiples vservers on a same physical box, it may be useful to allow box daemons (like cron) to send mail for debugging purpose or just seeing if a problem occurs. Debian GNU/Linux provides 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 (which in this instance is the most useful) doesn't work 'out of the box' (Postfix starts without any messages, but doesn't appear in process list (ps)).

A few fixes are needed for Postfix to run properly:

/etc/hosts additions[edit]

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 normally points to 127.0.0.1.)

Modify postfix configuration[edit]

# nano /etc/postfix/main.cf

Replace

inet_interfaces = loopback-only

with

inet_interfaces = name_of_host_entered_in__etc_hosts

or

inet_interfaces = localhost

Restart Postfix[edit]

Restart Postfix with

/etc/init.d/postfix restart

and check it run with "ps".

That's all folks ;)