OpenVZ Forum


Home » General » Support » *SOLVED* Q: Postfix Kills Interface of VirtualHost .. Install Hints?
*SOLVED* Q: Postfix Kills Interface of VirtualHost .. Install Hints? [message #5658] Fri, 25 August 2006 15:57 Go to previous message
tchipman is currently offline  tchipman
Messages: 28
Registered: June 2006
Junior Member
I wanted to ask if anyone has hints about how to install Postfix such that grief doesn't ensue.

Currently, my config / issue is thus:

-CentOS 4.3 32-bit Hardware host platform
-Latest OpenVZ Stable kernel installed, running
-CentOS "Default" 32-bit (or "minimal") Virtual Host Environment

If I create a clean virtual machine, then install postfix and use "system-switch-mail" to disable sendmail / enable postfix..

Postfix seems to be having trouble because in the config is an option which specifies what interface to listen on. By default it is "localhost". I've tried changing it to

lo
venet0
venet0:0

and also tried adding entries to /etc/hosts for the above .. to reduce complaint from postfix when I do a "service postfix stop ; service postfix start" in the VZHost.

Alas, I get interesting results:

(1) Postfix is pissed off
(2) My interface falls off the map, ie:

BEFORE postfix is running:

---paste---
root@nema log]# ifconfig -a
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:28 errors:0 dropped:0 overruns:0 frame:0
TX packets:28 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:3344 (3.2 KiB) TX bytes:3344 (3.2 KiB)

venet0 Link encap:UNSPEC HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00
inet addr:127.0.0.1 P-t-P:127.0.0.1 Bcast:0.0.0.0 Mask:255.255.255.255
UP BROADCAST POINTOPOINT RUNNING NOARP MTU:1500 Metric:1
RX packets:488 errors:0 dropped:0 overruns:0 frame:0
TX packets:287 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:36797 (35.9 KiB) TX bytes:41549 (40.5 KiB)

venet0:0 Link encap:UNSPEC HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00
inet addr:1X9.1X3.X3.2X9 P-t-P:1X9.1X3.X3.2X9 Bcast:1X9.1X3.X3.2X9 Mask:255.255.255.255
UP BROADCAST POINTOPOINT RUNNING NOARP MTU:1500 Metric:1

--end-paste--
(note "X" is added to make my IP private here in the posting, it is a regular number "for real"...


AFTER postfix is running:

--paste---


[root@hydra cache]# vzctl enter 239
entered into VPS 239
-bash-3.00# ifconfig -a
lo Link encap:Local Loopback
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:28 errors:0 dropped:0 overruns:0 frame:0
TX packets:28 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:3344 (3.2 KiB) TX bytes:3344 (3.2 KiB)

venet0 Link encap:UNSPEC HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00
UP BROADCAST POINTOPOINT RUNNING NOARP MTU:1500 Metric:1
RX packets:4 errors:0 dropped:0 overruns:0 frame:0
TX packets:3 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:216 (216.0 b) TX bytes:164 (164.0 b)

venet0:0 Link encap:UNSPEC HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00
UP BROADCAST POINTOPOINT RUNNING NOARP MTU:1500 Metric:1

-bash-3.00#

ie, no IP associated for venet0:0.

Ugh!


It strikes me as particularly interesting that postfix not only chokes, but kills the interface as well.

If anyone has comments on this, it would be greatly appreciated.



Many thanks,


--Tim

[Updated on: Fri, 25 August 2006 19:21] by Moderator

Report message to a moderator

 
Read Message
Read Message
Read Message
Previous Topic: *SOLVED* : in entered ve, shows me all veth devices of hardware node
Next Topic: *SOLVED* Can't SSH into VE from HN
Goto Forum:
  


Current Time: Sun Jul 27 15:04:26 GMT 2025

Total time taken to generate the page: 0.32488 seconds